mirror of
https://github.com/SrIzan10/hc-harbor.git
synced 2026-05-01 10:45:21 +00:00
Merge branch 'main' into timeline-page
This commit is contained in:
14
db/migrate/20250512205858_create_wakatime_mirrors.rb
Normal file
14
db/migrate/20250512205858_create_wakatime_mirrors.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
class CreateWakatimeMirrors < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
create_table :wakatime_mirrors do |t|
|
||||
t.references :user, null: false, foreign_key: true
|
||||
t.string :endpoint_url, null: false, default: "https://wakatime.com/api/v1"
|
||||
t.string :encrypted_api_key, null: false
|
||||
t.datetime :last_synced_at
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :wakatime_mirrors, [ :user_id, :endpoint_url ], unique: true
|
||||
end
|
||||
end
|
||||
10
db/migrate/20250513183739_create_raw_heartbeat_uploads.rb
Normal file
10
db/migrate/20250513183739_create_raw_heartbeat_uploads.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
class CreateRawHeartbeatUploads < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
create_table :raw_heartbeat_uploads do |t|
|
||||
t.jsonb :request_headers, null: false
|
||||
t.jsonb :request_body, null: false
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
class AddRawHeartbeatUploadToHeartbeats < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
add_reference :heartbeats, :raw_heartbeat_upload, null: true, foreign_key: true
|
||||
end
|
||||
end
|
||||
12
db/migrate/20250514150404_create_physical_mails.rb
Normal file
12
db/migrate/20250514150404_create_physical_mails.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
class CreatePhysicalMails < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
create_table :physical_mails do |t|
|
||||
t.references :user, null: false, foreign_key: true
|
||||
t.integer :mission_type, null: false
|
||||
t.integer :status, null: false, default: 0
|
||||
t.string :theseus_id
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user