Add survey replies.

This commit is contained in:
Shyukri Shyukriev 2016-06-30 12:05:00 +02:00
parent 03168b4efe
commit 157a16d8f2
6 changed files with 29 additions and 2 deletions

View file

@ -0,0 +1,11 @@
class CreateSurveyReplies < ActiveRecord::Migration
def change
create_table :survey_replies do |t|
t.integer :survey_question_id
t.integer :user_id
t.text :text
t.timestamps null: false
end
end
end

View file

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20160629145954) do
ActiveRecord::Schema.define(version: 20160630094850) do
create_table "ahoy_events", force: :cascade do |t|
t.uuid "visit_id", limit: 16
@ -385,6 +385,14 @@ ActiveRecord::Schema.define(version: 20160629145954) do
t.boolean "mandatory", default: false
end
create_table "survey_replies", force: :cascade do |t|
t.integer "survey_question_id"
t.integer "user_id"
t.text "text"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
create_table "surveys", force: :cascade do |t|
t.datetime "start_date"
t.datetime "end_date"