Registrars import

This commit is contained in:
Martin Lensment 2015-02-26 18:04:24 +02:00 committed by Priit Tark
parent 6b0e155bc1
commit 7cb0a4bdd3
8 changed files with 105 additions and 38 deletions

View 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

View file

@ -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