mirror of
https://github.com/SrIzan10/hc-harbor.git
synced 2026-05-01 10:45:21 +00:00
14 lines
332 B
Ruby
14 lines
332 B
Ruby
class Heartbeat < ApplicationRecord
|
|
end
|
|
|
|
class AddSourceToHeartbeats < ActiveRecord::Migration[8.0]
|
|
def change
|
|
add_column :heartbeats, :source_type, :integer
|
|
|
|
Heartbeat.update_all(source_type: 1)
|
|
|
|
change_column_null :heartbeats, :source_type, false
|
|
change_column_default :heartbeats, :source_type, to: 0
|
|
end
|
|
end
|