From c29176577786c48b718eb4f5fcaf087ea9193fe8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Sat, 17 May 2025 16:44:13 +0400 Subject: [PATCH] Add mastodon_id to users --- db/migrate/20250517105755_add_mastodon_id_to_users.rb | 5 +++++ db/schema.rb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20250517105755_add_mastodon_id_to_users.rb diff --git a/db/migrate/20250517105755_add_mastodon_id_to_users.rb b/db/migrate/20250517105755_add_mastodon_id_to_users.rb new file mode 100644 index 0000000..b6160c2 --- /dev/null +++ b/db/migrate/20250517105755_add_mastodon_id_to_users.rb @@ -0,0 +1,5 @@ +class AddMastodonIdToUsers < ActiveRecord::Migration[8.0] + def change + add_column :users, :mastodon_id, :bigint + end +end diff --git a/db/schema.rb b/db/schema.rb index 32ff099..1140431 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[8.0].define(version: 2025_05_06_154628) do +ActiveRecord::Schema[8.0].define(version: 2025_05_17_105755) do create_table "active_storage_attachments", force: :cascade do |t| t.string "name", null: false t.string "record_type", null: false @@ -133,6 +133,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_05_06_154628) do t.string "pgp_fpr" t.string "lndhub_username" t.text "lndhub_password" + t.bigint "mastodon_id" t.index ["email"], name: "index_users_on_email", unique: true t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true end