Class: CreateHighLows
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateHighLows
- Defined in:
- lib/generators/barchart_data/install/templates/highlow_migration.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/generators/barchart_data/install/templates/highlow_migration.rb', line 2 def change create_table :high_lows, :force => true do |t| t.integer :one_month_high t.integer :one_month_low t.integer :three_month_high t.integer :three_month_low t.integer :six_month_high t.integer :six_month_low t.integer :twelve_month_high t.integer :twelve_month_low t.integer :ytd_high t.integer :ytd_low t.datetime :saved_on t. null: false end end |