class CreateAttendanceRegularizations < ActiveRecord::Migration
  def change
    create_table :attendance_regularizations do |t|
      t.references :employee, index: true, foreign_key: true
      t.date :date
      t.string :status
      t.references :regularization_reason, index: true, foreign_key: true
      t.text :justification
      t.integer :manager_id

      t.timestamps null: false
    end
  end
end
