mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 03:06:14 +02:00
Registrars import
This commit is contained in:
parent
6b0e155bc1
commit
7cb0a4bdd3
8 changed files with 105 additions and 38 deletions
7
db/migrate/20150226121252_remove_country_id_columns.rb
Normal file
7
db/migrate/20150226121252_remove_country_id_columns.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
class RemoveCountryIdColumns < ActiveRecord::Migration
|
||||
def change
|
||||
remove_column :registrars, :country_id, :integer
|
||||
remove_column :users, :country_id, :integer
|
||||
remove_column :addresses, :country_id, :integer
|
||||
end
|
||||
end
|
|
@ -0,0 +1,8 @@
|
|||
class AddLegacyColumnsForRegistrar < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :registrars, :url, :string
|
||||
add_column :registrars, :directo_handle, :string
|
||||
add_column :registrars, :vat, :boolean
|
||||
add_column :registrars, :legacy_id, :integer
|
||||
end
|
||||
end
|
|
@ -18,7 +18,6 @@ ActiveRecord::Schema.define(version: 20150330083700) do
|
|||
|
||||
create_table "addresses", force: :cascade do |t|
|
||||
t.integer "contact_id"
|
||||
t.integer "country_id"
|
||||
t.string "city"
|
||||
t.string "street"
|
||||
t.string "zip"
|
||||
|
@ -579,7 +578,6 @@ ActiveRecord::Schema.define(version: 20150330083700) do
|
|||
t.string "name"
|
||||
t.string "reg_no"
|
||||
t.string "vat_no"
|
||||
t.integer "country_id"
|
||||
t.string "billing_address"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
|
@ -594,6 +592,10 @@ ActiveRecord::Schema.define(version: 20150330083700) do
|
|||
t.string "street"
|
||||
t.string "zip"
|
||||
t.string "code"
|
||||
t.string "url"
|
||||
t.string "directo_handle"
|
||||
t.boolean "vat"
|
||||
t.integer "legacy_id"
|
||||
end
|
||||
|
||||
add_index "registrars", ["code"], name: "index_registrars_on_code", using: :btree
|
||||
|
@ -631,8 +633,6 @@ ActiveRecord::Schema.define(version: 20150330083700) do
|
|||
t.inet "current_sign_in_ip"
|
||||
t.inet "last_sign_in_ip"
|
||||
t.string "identity_code"
|
||||
t.integer "country_id"
|
||||
t.string "roles", array: true
|
||||
t.string "creator_str"
|
||||
t.string "updator_str"
|
||||
t.string "country_code"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue