rails-identity 0.1.0 → 0.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 590384d746665388fa8126851e55135acc00de54
4
- data.tar.gz: b2c1f6f8134e45eefb14e5fcf6a874cc36b7ac93
3
+ metadata.gz: 73ee9ca625c79cde909e5dad17211d8febda7ec2
4
+ data.tar.gz: e22109dae72bca678d67da152a4a2dac193e86b8
5
5
  SHA512:
6
- metadata.gz: d2636fa96b1e4a71021db9aac848bdd275072d329fd8fc87ab2c69b7823f1d7555bc08e4874eaf6dea08f549467ff432b0fe6cce74692c498c0f785ffd8ac39c
7
- data.tar.gz: 15ef4bf086fe6f7a601943b91f9c2c3ee94d88ba1f333508d6b8c1a2a616171735b298d593bcc0cec6255c3815eae7d8ebb246aeaf3e72a6995fbd76d67be240
6
+ metadata.gz: 3270540e0b4a5a9cbbeedb591a057950ab30a36578ee0484fdc140dbc7ce8a5e3f4ef3b01e44ff2941c0cfe6ac78ed097ebefbd2f41c4ae20bc02e7bd6e5e14b
7
+ data.tar.gz: 88d8c4cf1150e617423d786fa4aae2bf6586f441303c41d360fe18b85c017e601653fe3d312e62666e6f33c9a33dd9df13b91998aaede6e4eb76dd0a53343796
@@ -0,0 +1,8 @@
1
+ class AddTypeToUsers < ActiveRecord::Migration
2
+ def change
3
+ add_column :rails_identity_users, :type, :string
4
+
5
+ # Change the type if necessary!
6
+ RailsIdentity::User.update_all(type: "User")
7
+ end
8
+ end
@@ -1,3 +1,3 @@
1
1
  module RailsIdentity
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
Binary file
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20160411215917) do
14
+ ActiveRecord::Schema.define(version: 20160420012342) do
15
15
 
16
16
  create_table "rails_identity_sessions", force: :cascade do |t|
17
17
  t.string "uuid"
@@ -35,6 +35,7 @@ ActiveRecord::Schema.define(version: 20160411215917) do
35
35
  t.string "reset_token"
36
36
  t.string "verification_token"
37
37
  t.boolean "verified", default: false
38
+ t.string "type"
38
39
  end
39
40
 
40
41
  add_index "rails_identity_users", ["deleted_at"], name: "index_rails_identity_users_on_deleted_at"
Binary file
@@ -249,3 +249,19 @@ Migrating to AddVerificationTokenToUsers (20160411215917)
249
249
  FROM sqlite_temp_master
250
250
  WHERE name='index_rails_identity_users_on_deleted_at' AND type='index'
251
251
  
252
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
253
+ Migrating to AddTypeToUsers (20160420012342)
254
+  (0.1ms) begin transaction
255
+  (0.4ms) ALTER TABLE "rails_identity_users" ADD "type" varchar
256
+ SQL (0.4ms) UPDATE "rails_identity_users" SET "type" = 'User' WHERE "rails_identity_users"."deleted_at" IS NULL
257
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160420012342"]]
258
+  (0.7ms) commit transaction
259
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
260
+  (0.1ms) SELECT sql
261
+ FROM sqlite_master
262
+ WHERE name='index_rails_identity_users_on_deleted_at' AND type='index'
263
+ UNION ALL
264
+ SELECT sql
265
+ FROM sqlite_temp_master
266
+ WHERE name='index_rails_identity_users_on_deleted_at' AND type='index'
267
+