diff --git a/db/migrate/20150217133755_add_country_code_ident.rb b/db/migrate/20150217133755_add_country_code_ident.rb new file mode 100644 index 000000000..a45abd2aa --- /dev/null +++ b/db/migrate/20150217133755_add_country_code_ident.rb @@ -0,0 +1,5 @@ +class AddCountryCodeIdent < ActiveRecord::Migration + def change + add_column :contacts, :ident_country_code, :string + end +end diff --git a/db/migrate/20150217133937_add_index_for_contact_code.rb b/db/migrate/20150217133937_add_index_for_contact_code.rb new file mode 100644 index 000000000..ff5a4a94b --- /dev/null +++ b/db/migrate/20150217133937_add_index_for_contact_code.rb @@ -0,0 +1,5 @@ +class AddIndexForContactCode < ActiveRecord::Migration + def change + add_index :contacts, :code + end +end diff --git a/db/schema.rb b/db/schema.rb index 6a889a676..f245f12ff 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -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"