mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 11:16:00 +02:00
Replaced address with local and international addr
This commit is contained in:
parent
fe54f327d9
commit
2655da4555
16 changed files with 208 additions and 57 deletions
10
db/migrate/20140822122938_add_postal_info_to_address.rb
Normal file
10
db/migrate/20140822122938_add_postal_info_to_address.rb
Normal file
|
@ -0,0 +1,10 @@
|
|||
class AddPostalInfoToAddress < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :addresses, :name, :string
|
||||
add_column :addresses, :org_name, :string
|
||||
add_column :addresses, :type, :string
|
||||
|
||||
remove_column :contacts, :name, :string
|
||||
remove_column :contacts, :org_name, :string
|
||||
end
|
||||
end
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20140819103517) do
|
||||
ActiveRecord::Schema.define(version: 20140822122938) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
@ -26,11 +26,13 @@ ActiveRecord::Schema.define(version: 20140819103517) do
|
|||
t.datetime "updated_at"
|
||||
t.string "street2"
|
||||
t.string "street3"
|
||||
t.string "name"
|
||||
t.string "org_name"
|
||||
t.string "type"
|
||||
end
|
||||
|
||||
create_table "contacts", force: true do |t|
|
||||
t.string "code"
|
||||
t.string "name"
|
||||
t.string "type"
|
||||
t.string "reg_no"
|
||||
t.string "phone"
|
||||
|
@ -40,7 +42,6 @@ ActiveRecord::Schema.define(version: 20140819103517) do
|
|||
t.datetime "updated_at"
|
||||
t.string "ident"
|
||||
t.string "ident_type"
|
||||
t.string "org_name"
|
||||
t.integer "created_by_id"
|
||||
t.integer "updated_by_id"
|
||||
t.string "auth_info"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue