Farmbot-Web-App/db/migrate/20180215171709_create_senso...

16 lines
292 B
Ruby
Raw Permalink Normal View History

2018-02-15 10:26:31 -07:00
class CreateSensorReadings < ActiveRecord::Migration[5.1]
2019-11-07 12:35:10 -07:00
2018-02-15 10:26:31 -07:00
def change
create_table :sensor_readings do |t|
t.references :device, foreign_key: true
t.float :x
t.float :y
t.float :z
t.integer :value
t.integer :pin
t.timestamps
end
end
end