Feeds::Import: add index to users.feed_fetched_at (#12201)
This commit is contained in:
parent
202053cf96
commit
3c78c66f7d
2 changed files with 9 additions and 1 deletions
|
|
@ -0,0 +1,7 @@
|
|||
class AddIndexToUsersFeedFetchedAt < ActiveRecord::Migration[6.0]
|
||||
disable_ddl_transaction!
|
||||
|
||||
def change
|
||||
add_index :users, :feed_fetched_at, algorithm: :concurrently
|
||||
end
|
||||
end
|
||||
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 2021_01_08_031718) do
|
||||
ActiveRecord::Schema.define(version: 2021_01_11_151630) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "citext"
|
||||
|
|
@ -1338,6 +1338,7 @@ ActiveRecord::Schema.define(version: 2021_01_08_031718) do
|
|||
t.index ["created_at"], name: "index_users_on_created_at"
|
||||
t.index ["email"], name: "index_users_on_email", unique: true
|
||||
t.index ["facebook_username"], name: "index_users_on_facebook_username"
|
||||
t.index ["feed_fetched_at"], name: "index_users_on_feed_fetched_at"
|
||||
t.index ["feed_url"], name: "index_users_on_feed_url", where: "((COALESCE(feed_url, ''::character varying))::text <> ''::text)"
|
||||
t.index ["github_username"], name: "index_users_on_github_username", unique: true
|
||||
t.index ["invitation_token"], name: "index_users_on_invitation_token", unique: true
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue