mirror of
https://github.com/internetee/registry.git
synced 2025-05-30 09:30:03 +02:00
Migration: added contact code index and ident country code
This commit is contained in:
parent
645d475522
commit
915ac3162f
3 changed files with 14 additions and 1 deletions
5
db/migrate/20150217133755_add_country_code_ident.rb
Normal file
5
db/migrate/20150217133755_add_country_code_ident.rb
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
class AddCountryCodeIdent < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
add_column :contacts, :ident_country_code, :string
|
||||||
|
end
|
||||||
|
end
|
5
db/migrate/20150217133937_add_index_for_contact_code.rb
Normal file
5
db/migrate/20150217133937_add_index_for_contact_code.rb
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
class AddIndexForContactCode < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
add_index :contacts, :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: 20150213104014) do
|
ActiveRecord::Schema.define(version: 20150217133937) 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"
|
||||||
|
@ -96,8 +96,11 @@ ActiveRecord::Schema.define(version: 20150213104014) do
|
||||||
t.integer "registrar_id"
|
t.integer "registrar_id"
|
||||||
t.string "creator_str"
|
t.string "creator_str"
|
||||||
t.string "updator_str"
|
t.string "updator_str"
|
||||||
|
t.string "ident_country_code"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
add_index "contacts", ["code"], name: "index_contacts_on_code", using: :btree
|
||||||
|
|
||||||
create_table "countries", force: :cascade do |t|
|
create_table "countries", force: :cascade do |t|
|
||||||
t.string "iso"
|
t.string "iso"
|
||||||
t.string "name"
|
t.string "name"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue