Sha256: 8656ade827535cc669a0dbc110ceb320597191ab23e8a9e127a171eb36819107
Contents?: true
Size: 863 Bytes
Versions: 9
Compression:
Stored size: 863 Bytes
Contents
class CreateLogisticsCoreCustomsTransportTariffs < ActiveRecord::Migration[5.0] def change create_table :logistics_core_customs_transport_tariffs do |t| t.references :route, index: { name: 'ctt_on_route_indx' }, null: false t.references :entry_point, index: { name: 'ctt_on_ep_indx' }, null: false t.float :total_distance, null: false t.float :distance_to_entry_point, null: false t.float :proportion, null: false t.timestamps end add_index :logistics_core_customs_transport_tariffs, [:route_id, :entry_point_id], :unique => true, :name => 'route_entry_point_uniq_indx' add_foreign_key :logistics_core_customs_transport_tariffs, :logistics_core_routes, :column => :route_id add_foreign_key :logistics_core_customs_transport_tariffs, :logistics_core_extended_lookups, :column => :entry_point_id end end
Version data entries
9 entries across 9 versions & 1 rubygems