mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 08:52:04 +02:00
Refactor registrar address to smaller pieces
This commit is contained in:
parent
107767e241
commit
39ea06ab17
8 changed files with 57 additions and 22 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue