From cff349fc27b104ded2df6bb5665132dc24dab09c Mon Sep 17 00:00:00 2001 From: noellabo Date: Tue, 18 Oct 2022 16:53:54 +0900 Subject: [PATCH] Add featured_tags_collection_url to Account --- app/models/account.rb | 1 + .../20221014111931_add_featured_tags_url_to_account.rb | 5 +++++ db/schema.rb | 3 ++- 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20221014111931_add_featured_tags_url_to_account.rb diff --git a/app/models/account.rb b/app/models/account.rb index 1be7b4d12c..32ce6a44f5 100644 --- a/app/models/account.rb +++ b/app/models/account.rb @@ -49,6 +49,7 @@ # trendable :boolean # reviewed_at :datetime # requested_review_at :datetime +# featured_tags_collection_url :string # class Account < ApplicationRecord diff --git a/db/migrate/20221014111931_add_featured_tags_url_to_account.rb b/db/migrate/20221014111931_add_featured_tags_url_to_account.rb new file mode 100644 index 0000000000..c1b8710410 --- /dev/null +++ b/db/migrate/20221014111931_add_featured_tags_url_to_account.rb @@ -0,0 +1,5 @@ +class AddFeaturedTagsURLToAccount < ActiveRecord::Migration[6.1] + def change + add_column :accounts, :featured_tags_collection_url, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index 3972f777ad..2a8fbacd63 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: 2022_10_12_181003) do +ActiveRecord::Schema.define(version: 2022_10_14_111931) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -186,6 +186,7 @@ ActiveRecord::Schema.define(version: 2022_10_12_181003) do t.boolean "trendable" t.datetime "reviewed_at" t.datetime "requested_review_at" + t.string "featured_tags_collection_url" t.index "(((setweight(to_tsvector('simple'::regconfig, (display_name)::text), 'A'::\"char\") || setweight(to_tsvector('simple'::regconfig, (username)::text), 'B'::\"char\")) || setweight(to_tsvector('simple'::regconfig, (COALESCE(domain, ''::character varying))::text), 'C'::\"char\")))", name: "search_index", using: :gin t.index "lower((username)::text), COALESCE(lower((domain)::text), ''::text)", name: "index_accounts_on_username_and_domain_lower", unique: true t.index ["moved_to_account_id"], name: "index_accounts_on_moved_to_account_id", where: "(moved_to_account_id IS NOT NULL)"