Sha256: e90dcbc97e5b0c70ddf13a6307901d899529b30a22b344767ca1e4c2fed4e7f9
Contents?: true
Size: 398 Bytes
Versions: 9
Compression:
Stored size: 398 Bytes
Contents
class CreateLogisticsCoreUnits < ActiveRecord::Migration[5.0] def change create_table :logistics_core_units do |t| t.string :name t.string :abbreviation t.references :unit_type, index: { name: 'units_on_ut_indx' } t.float :rate_to_base t.timestamps end add_foreign_key :logistics_core_units, :logistics_core_lookups, :column => :unit_type_id end end
Version data entries
9 entries across 9 versions & 1 rubygems