mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
add index
This commit is contained in:
1 parent
9bfa6f7f4a
commit
7ee648dacb
3 files changed
+10
-1
No files matched your search
@@ -15,6 +15,7 @@
|
|||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
# index_accounts_on_created_at (created_at)
|
||||||
# index_accounts_on_uuid (uuid) UNIQUE
|
# index_accounts_on_uuid (uuid) UNIQUE
|
||||||
#
|
#
|
||||||
class Account < ApplicationRecord
|
class Account < ApplicationRecord
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
class AddAccountsCreatedAtIndex < ActiveRecord::Migration[8.1]
|
||||||
|
def change
|
||||||
|
add_index :accounts, :created_at, if_not_exists: true
|
||||||
|
end
|
||||||
|
end
|
||||||
+2
-1
@@ -10,7 +10,7 @@
|
|||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema[8.1].define(version: 2026_10_25_120002) do
|
ActiveRecord::Schema[8.1].define(version: 2026_11_01_120000) do
|
||||||
# These are extensions that must be enabled in order to support this database
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "btree_gin"
|
enable_extension "btree_gin"
|
||||||
enable_extension "pg_catalog.plpgsql"
|
enable_extension "pg_catalog.plpgsql"
|
||||||
@@ -62,6 +62,7 @@ ActiveRecord::Schema[8.1].define(version: 2026_10_25_120002) do
|
|||||||
t.string "timezone", null: false
|
t.string "timezone", null: false
|
||||||
t.datetime "updated_at", null: false
|
t.datetime "updated_at", null: false
|
||||||
t.string "uuid", null: false
|
t.string "uuid", null: false
|
||||||
|
t.index ["created_at"], name: "index_accounts_on_created_at"
|
||||||
t.index ["uuid"], name: "index_accounts_on_uuid", unique: true
|
t.index ["uuid"], name: "index_accounts_on_uuid", unique: true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user