Skip to content

Commit

Permalink
Merge pull request #116 from wtag/vcards-db-migrations
Browse files Browse the repository at this point in the history
add drop length limits migration from has_vcards
  • Loading branch information
huerlisi committed May 1, 2016
2 parents 3443792 + e3c5d8b commit 7929a90
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 18 deletions.
23 changes: 23 additions & 0 deletions db/migrate/20160421185126_drop_lengh_limits.has_vcards.rb
@@ -0,0 +1,23 @@
# This migration comes from has_vcards (originally 20141107181915)
class DropLenghLimits < ActiveRecord::Migration
def change
change_column :has_vcards_addresses, :post_office_box, :string, limit: nil
change_column :has_vcards_addresses, :extended_address, :string, limit: nil
change_column :has_vcards_addresses, :street_address, :string, limit: nil
change_column :has_vcards_addresses, :locality, :string, limit: nil
change_column :has_vcards_addresses, :region, :string, limit: nil
change_column :has_vcards_addresses, :postal_code, :string, limit: nil
change_column :has_vcards_addresses, :country_name, :string, limit: nil

change_column :has_vcards_phone_numbers, :number, :string, limit: nil
change_column :has_vcards_phone_numbers, :phone_number_type, :string, limit: nil

change_column :has_vcards_vcards, :full_name, :string, limit: nil
change_column :has_vcards_vcards, :nickname, :string, limit: nil
change_column :has_vcards_vcards, :family_name, :string, limit: nil
change_column :has_vcards_vcards, :given_name, :string, limit: nil
change_column :has_vcards_vcards, :additional_name, :string, limit: nil
change_column :has_vcards_vcards, :honorific_prefix, :string, limit: nil
change_column :has_vcards_vcards, :honorific_suffix, :string, limit: nil
end
end
36 changes: 18 additions & 18 deletions db/schema.rb
Expand Up @@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.

ActiveRecord::Schema.define(:version => 20160308215619) do
ActiveRecord::Schema.define(:version => 20160421185126) do

create_table "account_types", :force => true do |t|
t.string "name", :limit => 100
Expand Down Expand Up @@ -253,13 +253,13 @@
add_index "esr_records", ["invoice_id"], :name => "index_esr_records_on_invoice_id"

create_table "has_vcards_addresses", :force => true do |t|
t.string "post_office_box", :limit => 50
t.string "extended_address", :limit => 50
t.string "street_address", :limit => 50
t.string "locality", :limit => 50
t.string "region", :limit => 50
t.string "postal_code", :limit => 50
t.string "country_name", :limit => 50
t.string "post_office_box"
t.string "extended_address"
t.string "street_address"
t.string "locality"
t.string "region"
t.string "postal_code"
t.string "country_name"
t.integer "vcard_id"
t.string "address_type"
t.datetime "created_at"
Expand All @@ -269,8 +269,8 @@
add_index "has_vcards_addresses", ["vcard_id"], :name => "addresses_vcard_id_index"

create_table "has_vcards_phone_numbers", :force => true do |t|
t.string "number", :limit => 50
t.string "phone_number_type", :limit => 50
t.string "number"
t.string "phone_number_type"
t.integer "vcard_id"
t.datetime "created_at"
t.datetime "updated_at"
Expand All @@ -280,14 +280,14 @@
add_index "has_vcards_phone_numbers", ["vcard_id"], :name => "phone_numbers_vcard_id_index"

create_table "has_vcards_vcards", :force => true do |t|
t.string "full_name", :limit => 50
t.string "nickname", :limit => 50
t.string "family_name", :limit => 50
t.string "given_name", :limit => 50
t.string "additional_name", :limit => 50
t.string "honorific_prefix", :limit => 50
t.string "honorific_suffix", :limit => 50
t.boolean "active", :default => true
t.string "full_name"
t.string "nickname"
t.string "family_name"
t.string "given_name"
t.string "additional_name"
t.string "honorific_prefix"
t.string "honorific_suffix"
t.boolean "active", :default => true
t.integer "reference_id"
t.string "reference_type"
t.datetime "created_at"
Expand Down

0 comments on commit 7929a90

Please sign in to comment.