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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9cfe548346bce79f1501dda84697e97799804cc
|
4
|
+
data.tar.gz: eb5e9441b73c85ec6ac68bfec0a37879df96288b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82ee65bd87b6afc8172c5cb53a2a70d88cab5672a063ab7a0b42e923fecb1858d98f485ec93eed6c003f38033343a2899a9a78c7415aecee92b592afc69a4906
|
7
|
+
data.tar.gz: 37e2447fbdec42a67db79eb73710a323c50dbcf85701c48b928fdd8108dca6b94b0b82f11072d9547089f0ac62f60f88c7e4ae4f2542dc942e2c44ffc67c8185
|
data/lib/contact_sync/version.rb
CHANGED
@@ -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
|