mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-16 22:25:30 +08:00
11 lines
361 B
Ruby
11 lines
361 B
Ruby
class AddDefaultColumnsToSamples < ActiveRecord::Migration[4.2]
|
|
def change
|
|
add_column :samples, :sample_group_id, :integer
|
|
add_column :samples, :sample_type_id, :integer
|
|
|
|
add_foreign_key :samples, :sample_groups
|
|
add_foreign_key :samples, :sample_types
|
|
add_index :samples, :sample_group_id
|
|
add_index :samples, :sample_type_id
|
|
end
|
|
end
|