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

Version Path
logistics_core-21.11.2 db/migrate/20161030174722_create_logistics_core_units.rb
logistics_core-21.11.1 db/migrate/20161030174722_create_logistics_core_units.rb
logistics_core-21.08.1 db/migrate/20161030174722_create_logistics_core_units.rb
logistics_core-21.03.1 db/migrate/20161030174722_create_logistics_core_units.rb
logistics_core-20.10.3 db/migrate/20161030174722_create_logistics_core_units.rb
logistics_core-20.10.2 db/migrate/20161030174722_create_logistics_core_units.rb
logistics_core-20.10.1 db/migrate/20161030174722_create_logistics_core_units.rb
logistics_core-20.9.1 db/migrate/20161030174722_create_logistics_core_units.rb
logistics_core-20.8.1 db/migrate/20161030174722_create_logistics_core_units.rb