16 lines
426 B
Ruby
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
|