Model for reading created
State pattern implemented
This commit is contained in:
15
db/migrate/001_creates_readings.rb
Normal file
15
db/migrate/001_creates_readings.rb
Normal 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
|
||||
Reference in New Issue
Block a user