Sha256: 03d7ea30b01f75bae9123547219fb88645650131ba8c519501c4c2f33f781f7d
Contents?: true
Size: 1.02 KB
Versions: 18
Compression:
Stored size: 1.02 KB
Contents
class CreateEcomCoreCrewOvertimes < ActiveRecord::Migration[6.0] def change create_table :ecom_core_crew_overtimes do |t| t.float :hours, null: false t.float :converted_hours, null: false, default: 0 t.string :remark t.references :overtime_type, null: false, index: { name: 'ot_on_co_indx' } t.references :overtime_sheet_entry, null: false, index: { name: 'ose_on_co_indx' } t.boolean :revised, null: false, default: false t.references :revision_to, null: true t.references :created_by, null: false, index: { name: 'cb_on_co_indx' } t.timestamps end add_foreign_key :ecom_core_crew_overtimes, :ecom_core_overtime_types, column: :overtime_type_id add_foreign_key :ecom_core_crew_overtimes, :ecom_core_overtime_sheet_entries, column: :overtime_sheet_entry_id add_foreign_key :ecom_core_crew_overtimes, :ecom_core_crew_overtimes, column: :revision_to_id add_foreign_key :ecom_core_crew_overtimes, :ecom_core_users, column: :created_by_id end end
Version data entries
18 entries across 18 versions & 1 rubygems