Adds timezone to Entsoe prices

This commit is contained in:
Aart van Halteren
2022-01-19 15:52:20 +01:00
parent fca3fd401d
commit 99337c6045
2 changed files with 30 additions and 9 deletions

View 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