scinote-web/db/migrate/20150717084645_create_result_texts.rb

11 lines
277 B
Ruby
Raw Normal View History

2016-02-12 23:52:43 +08:00
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