Sha256: 74b24dc118621c15aed60715e5a9166346a525b890eae0a1639aac40ce5c4e79

Contents?: true

Size: 599 Bytes

Versions: 51

Compression:

Stored size: 599 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.float :converted_hours, null: false, default: 0
      t.references :crew, index: { name: 'ct_on_crew_indx' }
      t.string :remark
      t.boolean :overtime, null: false, default: false
      t.integer :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

51 entries across 51 versions & 1 rubygems

Version Path
ecom_core-1.0.20 db/migrate/20191225211712_create_ecom_core_crew_times.rb
ecom_core-1.0.19 db/migrate/20191225211712_create_ecom_core_crew_times.rb
ecom_core-1.0.18 db/migrate/20191225211712_create_ecom_core_crew_times.rb
ecom_core-1.0.17 db/migrate/20191225211712_create_ecom_core_crew_times.rb
ecom_core-1.0.16 db/migrate/20191225211712_create_ecom_core_crew_times.rb
ecom_core-1.0.15 db/migrate/20191225211712_create_ecom_core_crew_times.rb
ecom_core-1.0.14 db/migrate/20191225211712_create_ecom_core_crew_times.rb
ecom_core-1.0.13 db/migrate/20191225211712_create_ecom_core_crew_times.rb
ecom_core-1.0.12 db/migrate/20191225211712_create_ecom_core_crew_times.rb
ecom_core-1.0.11 db/migrate/20191225211712_create_ecom_core_crew_times.rb
ecom_core-1.0.10 db/migrate/20191225211712_create_ecom_core_crew_times.rb