class CreateCrossRatesTable
Public Class Methods
down()
click to toggle source
# File lib/generators/tcmb_currency/migration/templates/migration.rb, line 13 def self.down drop_table :cross_rates end
up()
click to toggle source
# File lib/generators/tcmb_currency/migration/templates/migration.rb, line 2 def self.up create_table :cross_rates do |t| t.string :code t.string :name t.string :rate t.date :date t.timestamps end add_index :cross_rates, :code end