Sha256: cd91cb565ecd0e801a32b1d3621e90e72f91dad664250f51aaae8e4372ccfe79

Contents?: true

Size: 509 Bytes

Versions: 9

Compression:

Stored size: 509 Bytes

Contents

class CreateLogisticsCurrencyRates < ActiveRecord::Migration[5.0]
  def change
    create_table :logistics_core_currency_rates do |t|
      t.float :rate_to_base_selling, null: false
      t.float :rate_to_base_buying
      t.date :rate_date, null: false, default: Date.today
      t.references :currency, index: { name: 'currency_on_currency_rate_indx' }, null: false

      t.timestamps
    end

    add_foreign_key :logistics_core_currency_rates, :logistics_core_lookups, :column => :currency_id
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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