mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 10:16:01 +02:00
Added user identity index
This commit is contained in:
parent
45bed63cad
commit
29f092cb70
2 changed files with 8 additions and 1 deletions
5
db/migrate/20150413140933_add_identity_code_index.rb
Normal file
5
db/migrate/20150413140933_add_identity_code_index.rb
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
class AddIdentityCodeIndex < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
add_index :users, :identity_code
|
||||||
|
end
|
||||||
|
end
|
|
@ -11,7 +11,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.define(version: 20150402114712) do
|
ActiveRecord::Schema.define(version: 20150413140933) 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 "plpgsql"
|
enable_extension "plpgsql"
|
||||||
|
@ -634,6 +634,8 @@ ActiveRecord::Schema.define(version: 20150402114712) do
|
||||||
t.string "type"
|
t.string "type"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
add_index "users", ["identity_code"], name: "index_users_on_identity_code", using: :btree
|
||||||
|
|
||||||
create_table "versions", force: :cascade do |t|
|
create_table "versions", force: :cascade do |t|
|
||||||
t.text "depricated_table_but_somehow_paper_trail_tests_fails_without_it"
|
t.text "depricated_table_but_somehow_paper_trail_tests_fails_without_it"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue