class CreateTimeoffs < ActiveRecord::Migration def change create_table :timeoffs do |t| t.integer :day_of_week t.string :reason t.boolean :all_day, :default => false t.time :start_time t.time :end_time t.string :status, :default => 'pending' t.integer :user_id t.date :off_date t.datetime :approved_date t.integer :approved_by t.datetime :cancelled_date t.boolean :vacation, :default => false t.timestamps end end end