Adds timezone to Entsoe prices
This commit is contained in:
10
db/migrate/003_creates_prices.rb
Normal file
10
db/migrate/003_creates_prices.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
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
|
||||
Reference in New Issue
Block a user