Refactor registrar address to smaller pieces

This commit is contained in:
Martin Lensment 2015-02-03 17:09:10 +02:00
parent 107767e241
commit 39ea06ab17
8 changed files with 57 additions and 22 deletions

View file

@ -0,0 +1,10 @@
class AddNewAddressFieldsToRegistrar < ActiveRecord::Migration
def change
# get rid of old addresses, we will be migrating from the old db soon anyway
remove_column :registrars, :address, :string
add_column :registrars, :state, :string
add_column :registrars, :city, :string
add_column :registrars, :street, :string
add_column :registrars, :zip, :string
end
end