12 lines
218 B
Ruby
12 lines
218 B
Ruby
class CreatesPrices < ActiveRecord::Migration[4.2]
|
|
def change
|
|
create_table :prices do |t|
|
|
t.datetime :hour
|
|
t.float :usage_kwh
|
|
t.timestamps
|
|
end
|
|
|
|
add_index :prices, :hour
|
|
end
|
|
end
|