has_vcards 0.12.5 → 0.12.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,50 @@
1
+ class CreateHasVcards < ActiveRecord::Migration
2
+ def self.up
3
+ create_table 'addresses', :force => true do |t|
4
+ t.string 'post_office_box', :limit => 50
5
+ t.string 'extended_address', :limit => 50
6
+ t.string 'street_address', :limit => 50
7
+ t.string 'locality', :limit => 50
8
+ t.string 'region', :limit => 50
9
+ t.string 'postal_code', :limit => 50
10
+ t.string 'country_name', :limit => 50
11
+ t.integer 'vcard_id'
12
+ t.string 'address_type'
13
+ end
14
+
15
+ add_index 'addresses', ['vcard_id'], :name => 'addresses_vcard_id_index'
16
+
17
+ create_table 'phone_numbers', :force => true do |t|
18
+ t.string 'number', :limit => 50
19
+ t.string 'phone_number_type', :limit => 50
20
+ t.integer 'vcard_id'
21
+ t.integer 'object_id'
22
+ t.string 'object_type'
23
+ end
24
+
25
+ add_index 'phone_numbers', ['object_id', 'object_type'], :name => 'index_phone_numbers_on_object_id_and_object_type'
26
+ add_index 'phone_numbers', ['phone_number_type'], :name => 'index_phone_numbers_on_phone_number_type'
27
+ add_index 'phone_numbers', ['vcard_id'], :name => 'phone_numbers_vcard_id_index'
28
+
29
+ create_table 'vcards', :force => true do |t|
30
+ t.string 'full_name', :limit => 50
31
+ t.string 'nickname', :limit => 50
32
+ t.string 'family_name', :limit => 50
33
+ t.string 'given_name', :limit => 50
34
+ t.string 'additional_name', :limit => 50
35
+ t.string 'honorific_prefix', :limit => 50
36
+ t.string 'honorific_suffix', :limit => 50
37
+ t.boolean 'active', :default => true
38
+ t.string 'type'
39
+ t.integer 'object_id'
40
+ t.string 'object_type'
41
+ end
42
+
43
+ add_index 'vcards', ['object_id', 'object_type'], :name => 'index_vcards_on_object_id_and_object_type'
44
+ end
45
+
46
+ def self.down
47
+ drop_table :vcards, :phone_numbers, :addresses
48
+ end
49
+ end
50
+
@@ -0,0 +1,5 @@
1
+ class AddIndexToVcards < ActiveRecord::Migration
2
+ def change
3
+ add_index :has_vcards, :type
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module HasVcards
2
- VERSION = '0.12.5'
2
+ VERSION = '0.12.6'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_vcards
3
3
  version: !ruby/object:Gem::Version
4
- hash: 37
4
+ hash: 35
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 12
9
- - 5
10
- version: 0.12.5
9
+ - 6
10
+ version: 0.12.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Simon H\xC3\xBCrlimann (CyT)"
@@ -43,6 +43,8 @@ files:
43
43
  - config/boot.rb
44
44
  - config/locales/has_vcards.de.yml
45
45
  - config/routes.rb
46
+ - db/migrate/000_create_vcard_tables.rb
47
+ - db/migrate/20120119091225_add_index_to_vcards.rb
46
48
  - lib/has_vcards.rb
47
49
  - lib/has_vcards/railtie.rb
48
50
  - lib/has_vcards/version.rb