Sha256: c6814f5bd5dd9926b02f5a718e5aa0aacbeb4273adea786f49b333c332ad8fe9

Contents?: true

Size: 588 Bytes

Versions: 45

Compression:

Stored size: 588 Bytes

Contents

class CreateEcomCoreAttendanceSheetEntries < ActiveRecord::Migration[6.0]
  def change
    create_table :ecom_core_attendance_sheet_entries do |t|
      t.references :attendance_sheet,
                   null: false,
                   index: { name: 'ase_on_as_indx' },
                   foreign_key: { to_table: :ecom_core_attendance_sheets }
      t.references :crew,
                   null: false,
                   index: { name: 'ase_on_crew_indx' },
                   foreign_key: { to_table: :ecom_core_crews }
      t.float :total_hours

      t.timestamps
    end
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
ecom_core-1.2.11 db/migrate/20191225162539_create_ecom_core_attendance_sheet_entries.rb
ecom_core-1.2.10 db/migrate/20191225162539_create_ecom_core_attendance_sheet_entries.rb
ecom_core-1.2.9 db/migrate/20191225162539_create_ecom_core_attendance_sheet_entries.rb
ecom_core-1.2.7 db/migrate/20191225162539_create_ecom_core_attendance_sheet_entries.rb
ecom_core-1.2.6 db/migrate/20191225162539_create_ecom_core_attendance_sheet_entries.rb