Generated model Answer with migration
This commit is contained in:
1 parent
575b6b5b7e
commit
de46fe4065
4 files changed
+29
No files matched your search
@@ -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