Sha256: aac9227ef146422c1304392e9b392fcdd87d0033cbd2477081d8688a5c9ac32b

Contents?: true

Size: 543 Bytes

Versions: 3

Compression:

Stored size: 543 Bytes

Contents

class CreateEcomCoreCrewTimes < ActiveRecord::Migration[6.0]
  def change
    create_table :ecom_core_crew_times do |t|
      t.date :date, null: false
      t.time :checkin_time
      t.time :checkout_time
      t.float :hours, null: false
      t.references :crew, index: { name: 'ct_on_crew_indx' }
      t.string :remark
      t.boolean :overtime, null: false, default: false
      t.boolean :overtime_type_id, null: true

      t.timestamps
    end

    add_foreign_key :ecom_core_crew_times, :ecom_core_crews, column: :crew_id
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ecom_core-1.0.8 db/migrate/20191225211712_create_ecom_core_crew_times.rb
ecom_core-1.0.7 db/migrate/20191225211712_create_ecom_core_crew_times.rb
ecom_core-1.0.6 db/migrate/20191225211712_create_ecom_core_crew_times.rb