contact_sync 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c19a1bb9c8bd2a8e82e9c3c09f8f5d5718891fc2
4
- data.tar.gz: a9d45d8546aa474d32458287d0c341821544b455
3
+ metadata.gz: f9cfe548346bce79f1501dda84697e97799804cc
4
+ data.tar.gz: eb5e9441b73c85ec6ac68bfec0a37879df96288b
5
5
  SHA512:
6
- metadata.gz: 6bfc87a641c89c5868c137d65af6a4243ca43903a23bf7f11b50e7c494c484bbbf2de225d76ac3ff4edc8954dcee8f54e03015470a289d9b20dfbcf29c5eddb9
7
- data.tar.gz: 253bb569a4a1338b2a4414e65317868be32e77a89b7c96a272d5ee283f9a4794573af0e7b168ac0a3f295e27927b14d44533c314c37d0471d5b83e1df189151c
6
+ metadata.gz: 82ee65bd87b6afc8172c5cb53a2a70d88cab5672a063ab7a0b42e923fecb1858d98f485ec93eed6c003f38033343a2899a9a78c7415aecee92b592afc69a4906
7
+ data.tar.gz: 37e2447fbdec42a67db79eb73710a323c50dbcf85701c48b928fdd8108dca6b94b0b82f11072d9547089f0ac62f60f88c7e4ae4f2542dc942e2c44ffc67c8185
@@ -1,3 +1,3 @@
1
1
  module ContactSync
2
- VERSION = "1.4.0"
2
+ VERSION = "1.4.1"
3
3
  end
@@ -10,11 +10,9 @@ class InstallContactSyncGenerator < Rails::Generators::Base
10
10
  source_root File.expand_path('../templates', __FILE__)
11
11
 
12
12
  def generate_migration
13
- binding.pry
14
13
  if !self.class.migration_exists?('db/migrate', 'create_contact_sync_schema')
15
14
  migration_template "create_contact_sync_schema.rb", "db/migrate/create_contact_sync_schema.rb"
16
15
  end
17
- binding.pry
18
16
 
19
17
  if !self.class.migration_exists?('db/migrate', 'remove_device_id_from_contacts')
20
18
  migration_template "remove_device_id_from_contacts.rb", "db/migrate/remove_device_id_from_contacts.rb"
@@ -2,6 +2,6 @@ class RemoveDeviceIdFromContacts < ActiveRecord::Migration
2
2
  def change
3
3
  remove_column :contacts, :device_id, :string, default: ""
4
4
  remove_index :contacts, name: "unique_device_contact"
5
- add_index :contacts, [:user_id, :record_id]
5
+ add_index :contacts, [:user_id, :record_id], unique: true
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contact_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Saad Masood