Class: CreateAllTimeLows

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/barchart_data/install/templates/alltimelow_migration.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
# File 'lib/generators/barchart_data/install/templates/alltimelow_migration.rb', line 2

def change
  create_table :all_time_lows, :force => true do |t|
    t.string :symbol
    t.datetime :saved_on
    t.timestamps null: false
  end
end