Files
smartmeter/db/migrate/001_creates_readings.rb
Aart van Halteren 625fd06a0f Dockerized
2018-03-19 16:18:56 +01:00

16 lines
426 B
Ruby

class CreatesReadings < ActiveRecord::Migration[4.2]
def change
create_table :readings do |t|
t.float :total_kwh_consumed_high
t.float :total_kwh_consumed_low
t.float :total_kwh_produced_high
t.float :total_kwh_produced_low
t.float :current_kw_consumed
t.float :current_kw_produced
t.float :total_m3_gas_consumed
t.boolean :high_tarif
t.timestamps
end
end
end