Generated model Survey with migration
This commit is contained in:
1 parent
f3c0c64477
commit
cdbba426dd
4 files changed
+32
No files matched your search
@@ -0,0 +1,11 @@
|
||||
class CreateSurveys < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :surveys do |t|
|
||||
t.string :title
|
||||
t.text :description
|
||||
t.references :user, index: true
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user