분 추가 (스케쥴 new 추가 필요)

This commit is contained in:
2025-04-18 15:54:19 +09:00
parent cd7620672f
commit eb3bc33509
10 changed files with 127 additions and 48 deletions

View File

@@ -2,9 +2,12 @@ class CreateSchedules < ActiveRecord::Migration[8.0]
def change
create_table :schedules do |t|
t.integer :hour
t.integer :minute
t.boolean :is_active
t.float :temperature
t.timestamps
end
add_index :schedules, [ :hour, :minute ], unique: true
end
end