mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-08 00:23:01 +08:00
12 lines
356 B
Ruby
12 lines
356 B
Ruby
|
class AddDefaultColumnsToSamples < ActiveRecord::Migration
|
||
|
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
|