Added Submission model
This commit is contained in:
parent
5ca234c8fc
commit
933e14673c
9 changed files with 49 additions and 31 deletions
10
db/migrate/20160630130731_create_survey_submissions.rb
Normal file
10
db/migrate/20160630130731_create_survey_submissions.rb
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
class CreateSurveySubmissions < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :survey_submissions do |t|
|
||||
t.integer :user_id
|
||||
t.integer :survey_id
|
||||
|
||||
t.timestamps null: false
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue