mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-14 21:24:54 +08:00
11 lines
277 B
Ruby
11 lines
277 B
Ruby
|
class CreateResultTexts < ActiveRecord::Migration
|
||
|
def change
|
||
|
create_table :result_texts do |t|
|
||
|
t.string :text, null: false
|
||
|
t.integer :result_id, null: false
|
||
|
end
|
||
|
add_foreign_key :result_texts, :results
|
||
|
add_index :result_texts, :result_id
|
||
|
end
|
||
|
end
|