Generated model Survey with migration

This commit is contained in:
Prelang Builder
2014-02-27 23:58:52 +00:00
committed by u7482
parent f3c0c64477
commit cdbba426dd
4 changed files with 32 additions and 0 deletions
@@ -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