class CreateMeasurement < ActiveRecord::Migration[6.1] def change create_table :measurements do |t| t.decimal :temperature t.decimal :level t.decimal :ph t.decimal :turbidity t.decimal :conductivity t.decimal :flow t.belongs_to :sensor, index: true t.timestamps end end end