mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 17:01:44 +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
|
Loading…
Add table
Add a link
Reference in a new issue