class CreateMembers < ActiveRecord::Migration def change create_table :members do |t| t.belongs_to :user, index: true t.belongs_to :organization, index: true t.boolean :email_notify, default: true t.boolean :sms_notify, default: true t.integer :vacation_id t.integer :time_off_limit t.boolean :in_train t.integer :reminder_time t.date :termination_date t.integer :request_weekly_hours t.integer :priority, default: 0 t.boolean :show_email, default: true t.boolean :show_number, default: true t.integer :invited_by_id t.datetime :invitation_sent_at t.datetime :invitation_accepted_at t.timestamps end end def down drop_table :members end end