Sha256: 660cbd9a299cdec2833bf69945a4e6b8191d6011fdff690f375280d0c36af872
Contents?: true
Size: 702 Bytes
Versions: 9
Compression:
Stored size: 702 Bytes
Contents
class CreateLogisticsCoreChargeableServices < ActiveRecord::Migration[5.0] def change create_table :logistics_core_chargeable_services do |t| t.string :code, null: false, unique: true t.string :name, null: false, unique: true t.integer :order t.references :chargeable_service_type, index: { name: 'cs_on_cst_indx' } t.references :transport_service_type, index: {name: 'cs_on_tst_indx'} t.timestamps end add_foreign_key :logistics_core_chargeable_services, :logistics_core_lookups, :column => :chargeable_service_type_id add_foreign_key :logistics_core_chargeable_services, :logistics_core_lookups, :column => :transport_service_type_id end end
Version data entries
9 entries across 9 versions & 1 rubygems