examples/galena/spec/seed.rb
def migrate(row, migrated)
      super
      self.title ||= Galena.administrative_objects.protocol.title
      self.principal_investigator ||= Galena.administrative_objects.protocol.principal_investigator
      sites << Galena.administrative_objects.tissue_bank if sites.empty?
      coordinators << Galena.administrative_objects.tissue_bank.coordinator if coordinators.empty?
    end
def migrate(row, migrated)
      super
      self.title ||= Galena.administrative_objects.protocol.title
      self.principal_investigator ||= Galena.administrative_objects.protocol.principal_investigator
      sites << Galena.administrative_objects.tissue_bank if sites.empty?
      coordinators << Galena.administrative_objects.tissue_bank.coordinator if coordinators.empty?
    end
def migrate ( row , migrated ) super self . title ||= Galena . administrative_objects . protocol . title self . principal_investigator ||= Galena . administrative_objects . protocol . principal_investigator sites << Galena . administrative_objects . tissue_bank if sites . empty? coordinators << Galena . administrative_objects . tissue_bank . coordinator if coordinators . empty? end
Augments +Jinx::Migratable.migrate+ for the Galena example by adding the following defaults:
 * the CP principal_investigator defaults to the {Galena::Seed#protocol} PI
 * if the sites is empty, then the {Galena::Seed#tissue_bank} is added
   to the CP sites

 @param (see Jinx::Migratable#migrate)
Augments + Jinx :: Migratable . migrate + for the Galena example by adding the following defaults : * the CP principal_investigator defaults to the { Galena :: Seed#protocol } PI * if the sites is empty then the { Galena :: Seed#tissue_bank } is added to the CP sites