Sha256: b0a6abfc5da1c45edd1a6f2fe77cef78a6a24e3bbe51bfb3b8c65a791fd3152d
Contents?: true
Size: 708 Bytes
Versions: 9
Compression:
Stored size: 708 Bytes
Contents
class CreateLogisticsCoreItemRates < ActiveRecord::Migration[5.0] def change create_table :logistics_core_item_rates do |t| t.references :chargeable_service_unit_of_charge, index: { name: 'ir_on_csuoc_indx' } t.date :effective_date t.float :margin t.float :minimum_quantity t.float :rate t.references :transaction_type, index: { name: 'ir_on_tt_indx' } t.timestamps end add_foreign_key :logistics_core_item_rates, :logistics_core_chargeable_service_unit_of_charges, :column => :chargeable_service_unit_of_charge_id add_foreign_key :logistics_core_item_rates, :logistics_core_lookups, :column => :transaction_type_id end end
Version data entries
9 entries across 9 versions & 1 rubygems