공조기 두개 연결

This commit is contained in:
2025-04-23 09:53:54 +09:00
parent fbf93e80ae
commit 9291a5d1db
6 changed files with 40 additions and 10 deletions

View File

@@ -0,0 +1,7 @@
class CreateControllers < ActiveRecord::Migration[8.0]
def change
create_table :controllers do |t|
t.timestamps
end
end
end

11
db/schema.rb generated
View File

@@ -10,14 +10,5 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[8.0].define(version: 2025_04_16_131440) do
create_table "schedules", force: :cascade do |t|
t.integer "hour"
t.integer "minute"
t.boolean "is_active"
t.float "temperature"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["hour", "minute"], name: "index_schedules_on_hour_and_minute", unique: true
end
ActiveRecord::Schema[8.0].define(version: 0) do
end