class CreateSurveys < ActiveRecord::Migration def change create_table :surveys do |t| t.string :title, length: { maximum: 25 } t.string :description, length: { maximum: 125 } t.integer :visibility, default: 0 t.string :creator_uid t.datetime :limit_date t.boolean :definitive_answer, default: false t.boolean :accepted_after, default: true t.boolean :promo2018, default: false t.boolean :promo2017, default: false t.boolean :promo2016, default: false t.timestamps null: false end end end