scinote-web/db/migrate/20150717084645_create_result_texts.rb
2017-06-30 10:23:28 +02:00

10 lines
282 B
Ruby

class CreateResultTexts < ActiveRecord::Migration[4.2]
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