Sha256: acf3bd4c43db4acf3b85052a2e26d4a216fda7b86967780698b9131ff9f8e8a2
Contents?: true
Size: 771 Bytes
Versions: 9
Compression:
Stored size: 771 Bytes
Contents
class CreateLogisticsCoreServiceDeliveryUnits < ActiveRecord::Migration[5.0] def change create_table :logistics_core_service_delivery_units do |t| t.string :code, null: false, unique: true t.string :name, null: false, unique: true t.references :currency, index: { name: 'currency_on_sdu_indx' }, null: false t.string :address t.integer :parent_id, null: true t.references :service_delivery_unit_type, index: { name: 'sdu_type_on_sdu_indx' }, null: false t.timestamps end add_foreign_key :logistics_core_service_delivery_units, :logistics_core_lookups, :column => :currency_id add_foreign_key :logistics_core_service_delivery_units, :logistics_core_lookups, :column => :service_delivery_unit_type_id end end
Version data entries
9 entries across 9 versions & 1 rubygems