Class: CreateFxRateTable
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateFxRateTable
- Defined in:
- lib/generators/fx_rate/migration/templates/create_fx_rate_table.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
11 12 13 |
# File 'lib/generators/fx_rate/migration/templates/create_fx_rate_table.rb', line 11 def self.down drop_tabel :fx_rates end |
.up ⇒ Object
2 3 4 5 6 7 8 9 |
# File 'lib/generators/fx_rate/migration/templates/create_fx_rate_table.rb', line 2 def self.up create_table :fx_rates, :force => true do |t| t.string :currency t.float :rate t.string :downloaded_at t. end end |