Generated model Answer with migration
This commit is contained in:
10
db/migrate/20140227235843_create_answers.rb
Normal file
10
db/migrate/20140227235843_create_answers.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
class CreateAnswers < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :answers do |t|
|
||||
t.text :response
|
||||
t.references :question, index: true
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user