Sha256: 155b4526c68c43e3eee0141750fa06f9ddbe28c8dc7f29cf2c42063fef4b87b4

Contents?: true

Size: 604 Bytes

Versions: 12

Compression:

Stored size: 604 Bytes

Contents

class CreateEcomCoreAttendanceSheets < ActiveRecord::Migration[6.0]
  def change
    create_table :ecom_core_attendance_sheets do |t|
      t.date :date, null: false
      t.time :opened_at, null: false
      t.time :closed_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

12 entries across 12 versions & 1 rubygems

Version Path
ecom_core-1.2.20 db/migrate/20191225140433_create_ecom_core_attendance_sheets.rb
ecom_core-1.2.19 db/migrate/20191225140433_create_ecom_core_attendance_sheets.rb
ecom_core-1.2.18 db/migrate/20191225140433_create_ecom_core_attendance_sheets.rb
ecom_core-1.2.17 db/migrate/20191225140433_create_ecom_core_attendance_sheets.rb
ecom_core-1.2.16 db/migrate/20191225140433_create_ecom_core_attendance_sheets.rb
ecom_core-1.2.15 db/migrate/20191225140433_create_ecom_core_attendance_sheets.rb
ecom_core-1.2.14 db/migrate/20191225140433_create_ecom_core_attendance_sheets.rb
ecom_core-1.2.13 db/migrate/20191225140433_create_ecom_core_attendance_sheets.rb
ecom_core-1.2.12 db/migrate/20191225140433_create_ecom_core_attendance_sheets.rb
ecom_core-1.2.11 db/migrate/20191225140433_create_ecom_core_attendance_sheets.rb
ecom_core-1.2.10 db/migrate/20191225140433_create_ecom_core_attendance_sheets.rb
ecom_core-1.2.9 db/migrate/20191225140433_create_ecom_core_attendance_sheets.rb