Sha256: 07c757f9d817d81f57b388445f441362ce3011160b1b0764faa1e7d25bd99fd8

Contents?: true

Size: 645 Bytes

Versions: 14

Compression:

Stored size: 645 Bytes

Contents

class CreateEcomCoreAttendanceSheets < ActiveRecord::Migration[6.0]
  def change
    create_table :ecom_core_attendance_sheets do |t|
      t.date :date, null: false
      t.datetime :opened_at, null: false
      t.datetime :submitted_at
      t.datetime :approved_at
      t.string :remark
      t.string :status, null: false, default: 'Open'
      t.references :project,
                   null: false,
                   index: { name: 'as_on_project_indx' },
                   foreign_key: { to_table: :ecom_core_projects }

      t.timestamps
    end
    add_index :ecom_core_attendance_sheets, %i[date project_id], unique: true
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
ecom_core-1.2.34 db/migrate/20191225140433_create_ecom_core_attendance_sheets.rb
ecom_core-1.2.33 db/migrate/20191225140433_create_ecom_core_attendance_sheets.rb
ecom_core-1.2.32 db/migrate/20191225140433_create_ecom_core_attendance_sheets.rb
ecom_core-1.2.31 db/migrate/20191225140433_create_ecom_core_attendance_sheets.rb
ecom_core-1.2.30 db/migrate/20191225140433_create_ecom_core_attendance_sheets.rb
ecom_core-1.2.29 db/migrate/20191225140433_create_ecom_core_attendance_sheets.rb
ecom_core-1.2.28 db/migrate/20191225140433_create_ecom_core_attendance_sheets.rb
ecom_core-1.2.27 db/migrate/20191225140433_create_ecom_core_attendance_sheets.rb
ecom_core-1.2.26 db/migrate/20191225140433_create_ecom_core_attendance_sheets.rb
ecom_core-1.2.25 db/migrate/20191225140433_create_ecom_core_attendance_sheets.rb
ecom_core-1.2.24 db/migrate/20191225140433_create_ecom_core_attendance_sheets.rb
ecom_core-1.2.23 db/migrate/20191225140433_create_ecom_core_attendance_sheets.rb
ecom_core-1.2.22 db/migrate/20191225140433_create_ecom_core_attendance_sheets.rb
ecom_core-1.2.21 db/migrate/20191225140433_create_ecom_core_attendance_sheets.rb