Files
smartmeter/db/migrate/001_creates_readings.rb
Aart van Halteren 58eee12fb5 Model for reading created
State pattern implemented
2013-06-26 15:05:20 +02:00

16 lines
421 B
Ruby

class CreatesReadings < ActiveRecord::Migration
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