Model for reading created

State pattern implemented
This commit is contained in:
Aart van Halteren
2013-06-26 15:05:20 +02:00
parent e6fc705e6a
commit 58eee12fb5
13 changed files with 236 additions and 18 deletions

View File

@@ -0,0 +1,15 @@
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