2018-02-09 19:07:10 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
2016-06-28 18:16:06 +03:00
|
|
|
class CreateSurveys < ActiveRecord::Migration
|
|
|
|
|
def change
|
|
|
|
|
create_table :surveys do |t|
|
|
|
|
|
t.datetime :start_date
|
|
|
|
|
t.datetime :end_date
|
|
|
|
|
t.string :title
|
|
|
|
|
t.text :description
|
|
|
|
|
t.references :surveyable, polymorphic: true, index: true
|
|
|
|
|
|
|
|
|
|
t.timestamps null: false
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|