Sha256: 9f4a9f3dbb3b41acf26aeee70c782dce9d2f9bebf5ae242351b27b250688cdd6

Contents?: true

Size: 662 Bytes

Versions: 24

Compression:

Stored size: 662 Bytes

Contents

class CreateEcomCoreMaintenanceCosts < ActiveRecord::Migration[6.0]
  def change
    create_table :ecom_core_maintenance_costs do |t|
      t.references :job_card,
                   null: false,
                   index: { name: 'mc_on_jc_indx' },
                   foreign_key: { to_table: :ecom_core_job_cards }
      t.references :cost_type,
                   null: false,
                   index: { name: 'mc_on_ct_indx' },
                   foreign_key: { to_table: :ecom_core_cost_types }
      t.jsonb :cost_detail, null: false
      t.string :remark
      t.boolean :costs_approved, null: false, default: false

      t.timestamps
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
ecom_core-1.2.31 db/migrate/20200919102802_create_ecom_core_maintenance_costs.rb
ecom_core-1.2.30 db/migrate/20200919102802_create_ecom_core_maintenance_costs.rb
ecom_core-1.2.29 db/migrate/20200919102802_create_ecom_core_maintenance_costs.rb
ecom_core-1.2.28 db/migrate/20200919102802_create_ecom_core_maintenance_costs.rb