From 9246148db41a8eedf8860e117d10eb80ad84dac8 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 5 Feb 2023 18:01:21 +0100 Subject: [PATCH] Add migration to drop services table --- .../20230205162800_drop_services_table.rb | 11 +++++++++++ db/schema.rb | 18 ++++-------------- 2 files changed, 15 insertions(+), 14 deletions(-) create mode 100644 db/migrate/20230205162800_drop_services_table.rb diff --git a/db/migrate/20230205162800_drop_services_table.rb b/db/migrate/20230205162800_drop_services_table.rb new file mode 100644 index 00000000..6bb783df --- /dev/null +++ b/db/migrate/20230205162800_drop_services_table.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +class DropServicesTable < ActiveRecord::Migration[6.1] + def up + drop_table :services + end + + def down + raise ActiveRecord::IrreversibleMigration + end +end diff --git a/db/schema.rb b/db/schema.rb index 82edbdda..79160ab2 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.define(version: 2023_01_29_194809) do +ActiveRecord::Schema.define(version: 2023_02_05_162800) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -253,19 +253,6 @@ ActiveRecord::Schema.define(version: 2023_01_29_194809) do t.index ["delivered", "failed", "processing", "deliver_after", "created_at"], name: "index_rpush_notifications_multi", where: "((NOT delivered) AND (NOT failed))" end - create_table "services", id: :serial, force: :cascade do |t| - t.string "type", null: false - t.bigint "user_id", null: false - t.string "uid" - t.string "access_token" - t.string "access_secret" - t.string "nickname" - t.datetime "created_at" - t.datetime "updated_at" - t.string "post_tag", limit: 20 - t.index ["user_id"], name: "index_services_on_user_id" - end - create_table "subscriptions", id: :serial, force: :cascade do |t| t.bigint "user_id", null: false t.bigint "answer_id", null: false @@ -371,6 +358,9 @@ ActiveRecord::Schema.define(version: 2023_01_29_194809) do t.boolean "privacy_require_user", default: false t.boolean "privacy_hide_social_graph", default: false t.boolean "privacy_noindex", default: false + t.boolean "sharing_enabled", default: false + t.boolean "sharing_autoclose", default: false + t.string "sharing_custom_url" t.index ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true t.index ["email"], name: "index_users_on_email", unique: true t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true