panda_pal 3.0.5 → 3.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/db/migrate/{30171205183457_encrypt_organization_settings.rb → 20171205183457_encrypt_organization_settings.rb} +6 -0
- data/db/migrate/{30171205194657_remove_old_organization_settings.rb → 20171205194657_remove_old_organization_settings.rb} +6 -0
- data/lib/panda_pal/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c38a7afd039d915750f999bee5efe9e3488774d9
|
4
|
+
data.tar.gz: 572830d2056df59130c23ef0af1234b3325e02f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1445c0ece71144a12fd669f589f83e235b24c71265991a7c759b7cb2168008465163e8277dfa3548ec081048e52f8d3252c8af028a0a560de8c67d6e057cbed
|
7
|
+
data.tar.gz: 1cbdbd147db6e443642518c7a0949cc40f921b90909a0a936e9bfdcc882ddb0a5de124957259273a931d9ed702fd678a9196ec47a8a20fdc063213913eb38574
|
@@ -1,5 +1,11 @@
|
|
1
1
|
class EncryptOrganizationSettings < ActiveRecord::Migration[5.1]
|
2
2
|
def up
|
3
|
+
# don't rerun this if it was already run before we renamed the migration.
|
4
|
+
existing_versions = execute ("SELECT * from schema_migrations where version = '30171205183457'")
|
5
|
+
if (existing_versions.count > 0)
|
6
|
+
execute "DELETE from schema_migrations where version = '30171205183457'"
|
7
|
+
return
|
8
|
+
end
|
3
9
|
rename_column :panda_pal_organizations, :settings, :old_settings
|
4
10
|
add_column :panda_pal_organizations, :encrypted_settings, :text
|
5
11
|
add_column :panda_pal_organizations, :encrypted_settings_iv, :string
|
@@ -4,6 +4,12 @@ class RemoveOldOrganizationSettings < ActiveRecord::Migration[5.1]
|
|
4
4
|
end
|
5
5
|
|
6
6
|
def up
|
7
|
+
# don't rerun this if it was already run before we renamed the migration.
|
8
|
+
existing_versions = execute ("SELECT * from schema_migrations where version = '30171205194657'")
|
9
|
+
if (existing_versions.count > 0)
|
10
|
+
execute "DELETE from schema_migrations where version = '30171205194657'"
|
11
|
+
return
|
12
|
+
end
|
7
13
|
# migrations run for public and local tenants. However, PandaPal::Organization
|
8
14
|
# is going to always go to public tenant. So don't do this active record
|
9
15
|
# stuff unless we are on the public tenant.
|
data/lib/panda_pal/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: panda_pal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Instructure ProServe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -153,8 +153,8 @@ files:
|
|
153
153
|
- db/migrate/20160413135653_create_panda_pal_sessions.rb
|
154
154
|
- db/migrate/20160425130344_add_panda_pal_organization_to_session.rb
|
155
155
|
- db/migrate/20170106165533_add_salesforce_id_to_organizations.rb
|
156
|
-
- db/migrate/
|
157
|
-
- db/migrate/
|
156
|
+
- db/migrate/20171205183457_encrypt_organization_settings.rb
|
157
|
+
- db/migrate/20171205194657_remove_old_organization_settings.rb
|
158
158
|
- lib/panda_pal.rb
|
159
159
|
- lib/panda_pal/engine.rb
|
160
160
|
- lib/panda_pal/helpers.rb
|