Sha256: 5cbbe18cf240cb03b7e69e7fe957a85d47d12d40a6929b3ebd3bb702bc4ed3bf
Contents?: true
Size: 1.02 KB
Versions: 36
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 :raw_hours, null: false t.float :hours, null: false, default: 0 t.string :remark t.references :overtime_type, null: false, index: { name: 'ot_on_co_indx' }, foreign_key: { to_table: :ecom_core_overtime_types } t.references :overtime_sheet_entry, null: false, index: { name: 'ose_on_co_indx' }, foreign_key: { to_table: :ecom_core_overtime_sheet_entries } t.boolean :revised, null: false, default: false t.references :revision_to, null: true, foreign_key: { to_table: :ecom_core_crew_overtimes } t.references :created_by, null: false, index: { name: 'cb_on_co_indx' }, foreign_key: { to_table: :ecom_core_users } t.timestamps end end end
Version data entries
36 entries across 36 versions & 1 rubygems