Migration: added contact code index and ident country code

This commit is contained in:
Priit Tark 2015-02-17 15:40:20 +02:00
parent 645d475522
commit 915ac3162f
3 changed files with 14 additions and 1 deletions

View file

@ -0,0 +1,5 @@
class AddCountryCodeIdent < ActiveRecord::Migration
def change
add_column :contacts, :ident_country_code, :string
end
end

View file

@ -0,0 +1,5 @@
class AddIndexForContactCode < ActiveRecord::Migration
def change
add_index :contacts, :code
end
end

View file

@ -11,7 +11,7 @@
#
# 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
enable_extension "plpgsql"
@ -96,8 +96,11 @@ ActiveRecord::Schema.define(version: 20150213104014) do
t.integer "registrar_id"
t.string "creator_str"
t.string "updator_str"
t.string "ident_country_code"
end
add_index "contacts", ["code"], name: "index_contacts_on_code", using: :btree
create_table "countries", force: :cascade do |t|
t.string "iso"
t.string "name"