Sha256: 67296886b582ec393331b3d24880abd516ccb7800973a50a804e75b423ad020d

Contents?: true

Size: 291 Bytes

Versions: 2

Compression:

Stored size: 291 Bytes

Contents

class CreateCurrenciesExchangesRates < ActiveRecord::Migration
  def self.up
    create_table :currencies_exchanges_rates do |t|
      t.belongs_to :from_currency,
        :to_currency
      t.float :rate
    end  
  end

  def self.down
    drop_table :currencies_exchanges_rates
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
forgeos_commerce-1.9.1.rc1 db/migrate/20091009134624_create_currencies_exchanges_rates.rb
forgeos_commerce-1.9.0 db/migrate/20091009134624_create_currencies_exchanges_rates.rb