paid_up 0.7.6 → 0.7.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,6 +14,7 @@ module PaidUp::Mixins
14
14
  # Nothing needs doing
15
15
  when 'rolify_rows'
16
16
  resourcify
17
+ attr_accessor :owner
17
18
  when 'table_rows'
18
19
  belongs_to :user
19
20
  else
@@ -26,11 +27,8 @@ module PaidUp::Mixins
26
27
  end
27
28
 
28
29
  send(:define_method, :save_with_owner) do |owner|
29
- result = save
30
- if result
31
- owner.add_role :owner, self
32
- result
33
- end
30
+ owner.add_role(:owner, self)
31
+ save
34
32
  end
35
33
 
36
34
  send(:define_method, :owners_enabled_count) do
data/paid_up.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: paid_up 0.7.6 ruby lib
5
+ # stub: paid_up 0.7.7 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "paid_up"
9
- s.version = "0.7.6"
9
+ s.version = "0.7.7"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Karen Lundgren"]
14
- s.date = "2015-06-24"
14
+ s.date = "2015-07-10"
15
15
  s.description = "Allows a model of your choosing (such as users) to subscribe to a plan, which enables features."
16
16
  s.email = "karen.e.lundgren@gmail.com"
17
17
  s.extra_rdoc_files = [
@@ -1,4 +1,5 @@
1
1
  Rails.application.routes.draw do
2
+
2
3
  mount PaidUp::Engine => '/', :as => 'paid_up'
3
4
  devise_for :users
4
5
 
Binary file
Binary file
@@ -6060,3 +6060,449 @@ Migrating to AddStripeIdColumnToUsers (20150523010840)
6060
6060
  FROM sqlite_temp_master
6061
6061
  WHERE name='index_users_roles_on_user_id_and_role_id' AND type='index'
6062
6062
 
6063
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
6064
+ Migrating to AddTimestampsToUsersRoles (20150710160830)
6065
+  (0.1ms) begin transaction
6066
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/work/Gems/paid_up/spec/dummy/db/migrate/20150710160830_add_timestamps_to_users_roles.paid_up.rb:5)
6067
+  (0.3ms) ALTER TABLE "users_roles" ADD "created_at" datetime
6068
+  (0.1ms) ALTER TABLE "users_roles" ADD "updated_at" datetime
6069
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150710160830"]]
6070
+  (92.8ms) commit transaction
6071
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
6072
+  (0.1ms) SELECT sql
6073
+ FROM sqlite_master
6074
+ WHERE name='index_doodads_on_user_id' AND type='index'
6075
+ UNION ALL
6076
+ SELECT sql
6077
+ FROM sqlite_temp_master
6078
+ WHERE name='index_doodads_on_user_id' AND type='index'
6079
+
6080
+  (0.1ms)  SELECT sql
6081
+ FROM sqlite_master
6082
+ WHERE name='index_paid_up_plan_feature_settings_on_plan_id' AND type='index'
6083
+ UNION ALL
6084
+ SELECT sql
6085
+ FROM sqlite_temp_master
6086
+ WHERE name='index_paid_up_plan_feature_settings_on_plan_id' AND type='index'
6087
+ 
6088
+  (0.1ms) SELECT sql
6089
+ FROM sqlite_master
6090
+ WHERE name='index_paid_up_plan_feature_settings_on_feature' AND type='index'
6091
+ UNION ALL
6092
+ SELECT sql
6093
+ FROM sqlite_temp_master
6094
+ WHERE name='index_paid_up_plan_feature_settings_on_feature' AND type='index'
6095
+
6096
+  (0.1ms)  SELECT sql
6097
+ FROM sqlite_master
6098
+ WHERE name='index_paid_up_plans_on_title' AND type='index'
6099
+ UNION ALL
6100
+ SELECT sql
6101
+ FROM sqlite_temp_master
6102
+ WHERE name='index_paid_up_plans_on_title' AND type='index'
6103
+ 
6104
+  (0.1ms) SELECT sql
6105
+ FROM sqlite_master
6106
+ WHERE name='index_paid_up_plans_on_stripe_id' AND type='index'
6107
+ UNION ALL
6108
+ SELECT sql
6109
+ FROM sqlite_temp_master
6110
+ WHERE name='index_paid_up_plans_on_stripe_id' AND type='index'
6111
+
6112
+  (0.1ms)  SELECT sql
6113
+ FROM sqlite_master
6114
+ WHERE name='index_roles_on_name' AND type='index'
6115
+ UNION ALL
6116
+ SELECT sql
6117
+ FROM sqlite_temp_master
6118
+ WHERE name='index_roles_on_name' AND type='index'
6119
+ 
6120
+  (0.1ms) SELECT sql
6121
+ FROM sqlite_master
6122
+ WHERE name='index_roles_on_name_and_resource_type_and_resource_id' AND type='index'
6123
+ UNION ALL
6124
+ SELECT sql
6125
+ FROM sqlite_temp_master
6126
+ WHERE name='index_roles_on_name_and_resource_type_and_resource_id' AND type='index'
6127
+
6128
+  (0.1ms)  SELECT sql
6129
+ FROM sqlite_master
6130
+ WHERE name='index_users_on_reset_password_token' AND type='index'
6131
+ UNION ALL
6132
+ SELECT sql
6133
+ FROM sqlite_temp_master
6134
+ WHERE name='index_users_on_reset_password_token' AND type='index'
6135
+ 
6136
+  (0.1ms) SELECT sql
6137
+ FROM sqlite_master
6138
+ WHERE name='index_users_on_email' AND type='index'
6139
+ UNION ALL
6140
+ SELECT sql
6141
+ FROM sqlite_temp_master
6142
+ WHERE name='index_users_on_email' AND type='index'
6143
+
6144
+  (0.1ms)  SELECT sql
6145
+ FROM sqlite_master
6146
+ WHERE name='index_users_roles_on_user_id_and_role_id' AND type='index'
6147
+ UNION ALL
6148
+ SELECT sql
6149
+ FROM sqlite_temp_master
6150
+ WHERE name='index_users_roles_on_user_id_and_role_id' AND type='index'
6151
+ 
6152
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
6153
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
6154
+  (0.1ms)  SELECT sql
6155
+ FROM sqlite_master
6156
+ WHERE name='index_doodads_on_user_id' AND type='index'
6157
+ UNION ALL
6158
+ SELECT sql
6159
+ FROM sqlite_temp_master
6160
+ WHERE name='index_doodads_on_user_id' AND type='index'
6161
+ 
6162
+  (0.1ms) SELECT sql
6163
+ FROM sqlite_master
6164
+ WHERE name='index_paid_up_plan_feature_settings_on_plan_id' AND type='index'
6165
+ UNION ALL
6166
+ SELECT sql
6167
+ FROM sqlite_temp_master
6168
+ WHERE name='index_paid_up_plan_feature_settings_on_plan_id' AND type='index'
6169
+
6170
+  (0.1ms)  SELECT sql
6171
+ FROM sqlite_master
6172
+ WHERE name='index_paid_up_plan_feature_settings_on_feature' AND type='index'
6173
+ UNION ALL
6174
+ SELECT sql
6175
+ FROM sqlite_temp_master
6176
+ WHERE name='index_paid_up_plan_feature_settings_on_feature' AND type='index'
6177
+ 
6178
+  (0.1ms) SELECT sql
6179
+ FROM sqlite_master
6180
+ WHERE name='index_paid_up_plans_on_title' AND type='index'
6181
+ UNION ALL
6182
+ SELECT sql
6183
+ FROM sqlite_temp_master
6184
+ WHERE name='index_paid_up_plans_on_title' AND type='index'
6185
+
6186
+  (0.1ms)  SELECT sql
6187
+ FROM sqlite_master
6188
+ WHERE name='index_paid_up_plans_on_stripe_id' AND type='index'
6189
+ UNION ALL
6190
+ SELECT sql
6191
+ FROM sqlite_temp_master
6192
+ WHERE name='index_paid_up_plans_on_stripe_id' AND type='index'
6193
+ 
6194
+  (0.1ms) SELECT sql
6195
+ FROM sqlite_master
6196
+ WHERE name='index_roles_on_name' AND type='index'
6197
+ UNION ALL
6198
+ SELECT sql
6199
+ FROM sqlite_temp_master
6200
+ WHERE name='index_roles_on_name' AND type='index'
6201
+
6202
+  (0.1ms)  SELECT sql
6203
+ FROM sqlite_master
6204
+ WHERE name='index_roles_on_name_and_resource_type_and_resource_id' AND type='index'
6205
+ UNION ALL
6206
+ SELECT sql
6207
+ FROM sqlite_temp_master
6208
+ WHERE name='index_roles_on_name_and_resource_type_and_resource_id' AND type='index'
6209
+ 
6210
+  (0.1ms) SELECT sql
6211
+ FROM sqlite_master
6212
+ WHERE name='index_users_on_reset_password_token' AND type='index'
6213
+ UNION ALL
6214
+ SELECT sql
6215
+ FROM sqlite_temp_master
6216
+ WHERE name='index_users_on_reset_password_token' AND type='index'
6217
+
6218
+  (0.1ms)  SELECT sql
6219
+ FROM sqlite_master
6220
+ WHERE name='index_users_on_email' AND type='index'
6221
+ UNION ALL
6222
+ SELECT sql
6223
+ FROM sqlite_temp_master
6224
+ WHERE name='index_users_on_email' AND type='index'
6225
+ 
6226
+  (0.1ms) SELECT sql
6227
+ FROM sqlite_master
6228
+ WHERE name='index_users_roles_on_user_id_and_role_id' AND type='index'
6229
+ UNION ALL
6230
+ SELECT sql
6231
+ FROM sqlite_temp_master
6232
+ WHERE name='index_users_roles_on_user_id_and_role_id' AND type='index'
6233
+
6234
+  (101.5ms) CREATE TABLE "doodads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" varchar, "name" varchar, "description" text) 
6235
+  (0.1ms) select sqlite_version(*)
6236
+  (98.5ms) CREATE INDEX "index_doodads_on_user_id" ON "doodads" ("user_id")
6237
+  (98.7ms) CREATE TABLE "groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "description" text, "created_at" datetime, "updated_at" datetime)
6238
+  (98.1ms) CREATE TABLE "paid_up_plan_feature_settings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_id" integer, "feature" varchar, "setting" integer) 
6239
+  (98.0ms) CREATE INDEX "index_paid_up_plan_feature_settings_on_feature" ON "paid_up_plan_feature_settings" ("feature")
6240
+  (0.2ms)  SELECT sql
6241
+ FROM sqlite_master
6242
+ WHERE name='index_paid_up_plan_feature_settings_on_feature' AND type='index'
6243
+ UNION ALL
6244
+ SELECT sql
6245
+ FROM sqlite_temp_master
6246
+ WHERE name='index_paid_up_plan_feature_settings_on_feature' AND type='index'
6247
+ 
6248
+  (114.7ms) CREATE INDEX "index_paid_up_plan_feature_settings_on_plan_id" ON "paid_up_plan_feature_settings" ("plan_id")
6249
+  (131.6ms) CREATE TABLE "paid_up_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stripe_id" varchar, "title" varchar, "description" text, "sort_order" integer, "created_at" datetime, "updated_at" datetime) 
6250
+  (131.0ms) CREATE UNIQUE INDEX "index_paid_up_plans_on_stripe_id" ON "paid_up_plans" ("stripe_id")
6251
+  (0.2ms)  SELECT sql
6252
+ FROM sqlite_master
6253
+ WHERE name='index_paid_up_plans_on_stripe_id' AND type='index'
6254
+ UNION ALL
6255
+ SELECT sql
6256
+ FROM sqlite_temp_master
6257
+ WHERE name='index_paid_up_plans_on_stripe_id' AND type='index'
6258
+ 
6259
+  (131.8ms) CREATE UNIQUE INDEX "index_paid_up_plans_on_title" ON "paid_up_plans" ("title")
6260
+  (131.6ms) CREATE TABLE "roles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "resource_id" integer, "resource_type" varchar, "created_at" datetime, "updated_at" datetime) 
6261
+  (131.5ms) CREATE INDEX "index_roles_on_name_and_resource_type_and_resource_id" ON "roles" ("name", "resource_type", "resource_id")
6262
+  (0.3ms)  SELECT sql
6263
+ FROM sqlite_master
6264
+ WHERE name='index_roles_on_name_and_resource_type_and_resource_id' AND type='index'
6265
+ UNION ALL
6266
+ SELECT sql
6267
+ FROM sqlite_temp_master
6268
+ WHERE name='index_roles_on_name_and_resource_type_and_resource_id' AND type='index'
6269
+ 
6270
+  (105.7ms) CREATE INDEX "index_roles_on_name" ON "roles" ("name")
6271
+  (110.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "stripe_id" varchar) 
6272
+  (98.6ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
6273
+  (0.2ms)  SELECT sql
6274
+ FROM sqlite_master
6275
+ WHERE name='index_users_on_email' AND type='index'
6276
+ UNION ALL
6277
+ SELECT sql
6278
+ FROM sqlite_temp_master
6279
+ WHERE name='index_users_on_email' AND type='index'
6280
+ 
6281
+  (106.3ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
6282
+  (106.6ms) CREATE TABLE "users_roles" ("user_id" integer, "role_id" integer, "created_at" datetime, "updated_at" datetime) 
6283
+  (106.3ms) CREATE INDEX "index_users_roles_on_user_id_and_role_id" ON "users_roles" ("user_id", "role_id")
6284
+  (123.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
6285
+  (107.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6286
+  (0.3ms) SELECT version FROM "schema_migrations"
6287
+  (123.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150710160830')
6288
+  (125.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150523010838')
6289
+  (124.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150523010839')
6290
+  (99.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150517175136')
6291
+  (99.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150517175135')
6292
+  (99.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150406154440')
6293
+  (107.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150523010837')
6294
+  (181.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150523010840')
6295
+  (124.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150523010827')
6296
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
6297
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
6298
+ Migrating to AddTimestampsToUsersRoles (20150710160830)
6299
+  (0.1ms) begin transaction
6300
+  (0.6ms) CREATE TEMPORARY TABLE "ausers_roles" ("user_id" integer, "role_id" integer, "created_at" datetime, "updated_at" datetime)
6301
+  (0.2ms)  SELECT sql
6302
+ FROM sqlite_master
6303
+ WHERE name='index_users_roles_on_user_id_and_role_id' AND type='index'
6304
+ UNION ALL
6305
+ SELECT sql
6306
+ FROM sqlite_temp_master
6307
+ WHERE name='index_users_roles_on_user_id_and_role_id' AND type='index'
6308
+ 
6309
+  (0.0ms) select sqlite_version(*)
6310
+  (0.1ms) CREATE INDEX "tindex_ausers_roles_on_user_id_and_role_id" ON "ausers_roles" ("user_id", "role_id")
6311
+  (0.1ms) SELECT * FROM "users_roles"
6312
+  (0.1ms) INSERT INTO "ausers_roles" ("user_id","role_id","created_at","updated_at") VALUES (3, 1, NULL, NULL)
6313
+  (0.0ms) INSERT INTO "ausers_roles" ("user_id","role_id","created_at","updated_at") VALUES (4, 2, NULL, NULL)
6314
+  (0.0ms) INSERT INTO "ausers_roles" ("user_id","role_id","created_at","updated_at") VALUES (4, 3, NULL, NULL)
6315
+  (0.0ms) INSERT INTO "ausers_roles" ("user_id","role_id","created_at","updated_at") VALUES (3, 4, NULL, NULL)
6316
+  (0.2ms) DROP TABLE "users_roles"
6317
+  (0.1ms) CREATE TABLE "users_roles" ("user_id" integer, "role_id" integer, "created_at" datetime)
6318
+  (0.1ms)  SELECT sql
6319
+ FROM sqlite_master
6320
+ WHERE name='tindex_ausers_roles_on_user_id_and_role_id' AND type='index'
6321
+ UNION ALL
6322
+ SELECT sql
6323
+ FROM sqlite_temp_master
6324
+ WHERE name='tindex_ausers_roles_on_user_id_and_role_id' AND type='index'
6325
+ 
6326
+  (0.1ms) CREATE INDEX "index_users_roles_on_user_id_and_role_id" ON "users_roles" ("user_id", "role_id")
6327
+  (0.1ms) SELECT * FROM "ausers_roles"
6328
+  (0.1ms) INSERT INTO "users_roles" ("user_id","role_id","created_at") VALUES (3, 1, NULL)
6329
+  (0.1ms) INSERT INTO "users_roles" ("user_id","role_id","created_at") VALUES (4, 2, NULL)
6330
+  (0.1ms) INSERT INTO "users_roles" ("user_id","role_id","created_at") VALUES (4, 3, NULL)
6331
+  (0.1ms) INSERT INTO "users_roles" ("user_id","role_id","created_at") VALUES (3, 4, NULL)
6332
+  (0.2ms) DROP TABLE "ausers_roles"
6333
+  (0.2ms) CREATE TEMPORARY TABLE "ausers_roles" ("user_id" integer, "role_id" integer, "created_at" datetime) 
6334
+  (0.2ms) SELECT sql
6335
+ FROM sqlite_master
6336
+ WHERE name='index_users_roles_on_user_id_and_role_id' AND type='index'
6337
+ UNION ALL
6338
+ SELECT sql
6339
+ FROM sqlite_temp_master
6340
+ WHERE name='index_users_roles_on_user_id_and_role_id' AND type='index'
6341
+
6342
+  (0.1ms) CREATE INDEX "tindex_ausers_roles_on_user_id_and_role_id" ON "ausers_roles" ("user_id", "role_id")
6343
+  (0.1ms) SELECT * FROM "users_roles"
6344
+  (0.1ms) INSERT INTO "ausers_roles" ("user_id","role_id","created_at") VALUES (3, 1, NULL)
6345
+  (0.1ms) INSERT INTO "ausers_roles" ("user_id","role_id","created_at") VALUES (4, 2, NULL)
6346
+  (0.1ms) INSERT INTO "ausers_roles" ("user_id","role_id","created_at") VALUES (4, 3, NULL)
6347
+  (0.1ms) INSERT INTO "ausers_roles" ("user_id","role_id","created_at") VALUES (3, 4, NULL)
6348
+  (0.2ms) DROP TABLE "users_roles"
6349
+  (0.1ms) CREATE TABLE "users_roles" ("user_id" integer, "role_id" integer)
6350
+  (0.1ms)  SELECT sql
6351
+ FROM sqlite_master
6352
+ WHERE name='tindex_ausers_roles_on_user_id_and_role_id' AND type='index'
6353
+ UNION ALL
6354
+ SELECT sql
6355
+ FROM sqlite_temp_master
6356
+ WHERE name='tindex_ausers_roles_on_user_id_and_role_id' AND type='index'
6357
+ 
6358
+  (0.1ms) CREATE INDEX "index_users_roles_on_user_id_and_role_id" ON "users_roles" ("user_id", "role_id")
6359
+  (0.1ms) SELECT * FROM "ausers_roles"
6360
+  (0.1ms) INSERT INTO "users_roles" ("user_id","role_id") VALUES (3, 1)
6361
+  (0.1ms) INSERT INTO "users_roles" ("user_id","role_id") VALUES (4, 2)
6362
+  (0.0ms) INSERT INTO "users_roles" ("user_id","role_id") VALUES (4, 3)
6363
+  (0.0ms) INSERT INTO "users_roles" ("user_id","role_id") VALUES (3, 4)
6364
+  (0.1ms) DROP TABLE "ausers_roles"
6365
+ SQL (0.1ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ? [["version", "20150710160830"]]
6366
+  (113.9ms) commit transaction
6367
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
6368
+  (0.2ms) SELECT sql
6369
+ FROM sqlite_master
6370
+ WHERE name='index_doodads_on_user_id' AND type='index'
6371
+ UNION ALL
6372
+ SELECT sql
6373
+ FROM sqlite_temp_master
6374
+ WHERE name='index_doodads_on_user_id' AND type='index'
6375
+
6376
+  (0.2ms)  SELECT sql
6377
+ FROM sqlite_master
6378
+ WHERE name='index_paid_up_plan_feature_settings_on_plan_id' AND type='index'
6379
+ UNION ALL
6380
+ SELECT sql
6381
+ FROM sqlite_temp_master
6382
+ WHERE name='index_paid_up_plan_feature_settings_on_plan_id' AND type='index'
6383
+ 
6384
+  (0.2ms) SELECT sql
6385
+ FROM sqlite_master
6386
+ WHERE name='index_paid_up_plan_feature_settings_on_feature' AND type='index'
6387
+ UNION ALL
6388
+ SELECT sql
6389
+ FROM sqlite_temp_master
6390
+ WHERE name='index_paid_up_plan_feature_settings_on_feature' AND type='index'
6391
+
6392
+  (0.2ms)  SELECT sql
6393
+ FROM sqlite_master
6394
+ WHERE name='index_paid_up_plans_on_title' AND type='index'
6395
+ UNION ALL
6396
+ SELECT sql
6397
+ FROM sqlite_temp_master
6398
+ WHERE name='index_paid_up_plans_on_title' AND type='index'
6399
+ 
6400
+  (0.2ms) SELECT sql
6401
+ FROM sqlite_master
6402
+ WHERE name='index_paid_up_plans_on_stripe_id' AND type='index'
6403
+ UNION ALL
6404
+ SELECT sql
6405
+ FROM sqlite_temp_master
6406
+ WHERE name='index_paid_up_plans_on_stripe_id' AND type='index'
6407
+
6408
+  (0.2ms)  SELECT sql
6409
+ FROM sqlite_master
6410
+ WHERE name='index_roles_on_name' AND type='index'
6411
+ UNION ALL
6412
+ SELECT sql
6413
+ FROM sqlite_temp_master
6414
+ WHERE name='index_roles_on_name' AND type='index'
6415
+ 
6416
+  (0.2ms) SELECT sql
6417
+ FROM sqlite_master
6418
+ WHERE name='index_roles_on_name_and_resource_type_and_resource_id' AND type='index'
6419
+ UNION ALL
6420
+ SELECT sql
6421
+ FROM sqlite_temp_master
6422
+ WHERE name='index_roles_on_name_and_resource_type_and_resource_id' AND type='index'
6423
+
6424
+  (0.1ms)  SELECT sql
6425
+ FROM sqlite_master
6426
+ WHERE name='index_users_on_reset_password_token' AND type='index'
6427
+ UNION ALL
6428
+ SELECT sql
6429
+ FROM sqlite_temp_master
6430
+ WHERE name='index_users_on_reset_password_token' AND type='index'
6431
+ 
6432
+  (0.1ms) SELECT sql
6433
+ FROM sqlite_master
6434
+ WHERE name='index_users_on_email' AND type='index'
6435
+ UNION ALL
6436
+ SELECT sql
6437
+ FROM sqlite_temp_master
6438
+ WHERE name='index_users_on_email' AND type='index'
6439
+
6440
+  (0.1ms)  SELECT sql
6441
+ FROM sqlite_master
6442
+ WHERE name='index_users_roles_on_user_id_and_role_id' AND type='index'
6443
+ UNION ALL
6444
+ SELECT sql
6445
+ FROM sqlite_temp_master
6446
+ WHERE name='index_users_roles_on_user_id_and_role_id' AND type='index'
6447
+ 
6448
+  (95.5ms) CREATE TABLE "doodads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" varchar, "name" varchar, "description" text) 
6449
+  (0.1ms) select sqlite_version(*)
6450
+  (98.6ms) CREATE INDEX "index_doodads_on_user_id" ON "doodads" ("user_id")
6451
+  (98.4ms) CREATE TABLE "groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "description" text, "created_at" datetime, "updated_at" datetime)
6452
+  (124.7ms) CREATE TABLE "paid_up_plan_feature_settings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_id" integer, "feature" varchar, "setting" integer) 
6453
+  (114.5ms) CREATE INDEX "index_paid_up_plan_feature_settings_on_feature" ON "paid_up_plan_feature_settings" ("feature")
6454
+  (0.3ms)  SELECT sql
6455
+ FROM sqlite_master
6456
+ WHERE name='index_paid_up_plan_feature_settings_on_feature' AND type='index'
6457
+ UNION ALL
6458
+ SELECT sql
6459
+ FROM sqlite_temp_master
6460
+ WHERE name='index_paid_up_plan_feature_settings_on_feature' AND type='index'
6461
+ 
6462
+  (130.3ms) CREATE INDEX "index_paid_up_plan_feature_settings_on_plan_id" ON "paid_up_plan_feature_settings" ("plan_id")
6463
+  (131.1ms) CREATE TABLE "paid_up_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stripe_id" varchar, "title" varchar, "description" text, "sort_order" integer, "created_at" datetime, "updated_at" datetime) 
6464
+  (131.6ms) CREATE UNIQUE INDEX "index_paid_up_plans_on_stripe_id" ON "paid_up_plans" ("stripe_id")
6465
+  (0.4ms)  SELECT sql
6466
+ FROM sqlite_master
6467
+ WHERE name='index_paid_up_plans_on_stripe_id' AND type='index'
6468
+ UNION ALL
6469
+ SELECT sql
6470
+ FROM sqlite_temp_master
6471
+ WHERE name='index_paid_up_plans_on_stripe_id' AND type='index'
6472
+ 
6473
+  (113.8ms) CREATE UNIQUE INDEX "index_paid_up_plans_on_title" ON "paid_up_plans" ("title")
6474
+  (98.3ms) CREATE TABLE "roles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "resource_id" integer, "resource_type" varchar, "created_at" datetime, "updated_at" datetime) 
6475
+  (106.3ms) CREATE INDEX "index_roles_on_name_and_resource_type_and_resource_id" ON "roles" ("name", "resource_type", "resource_id")
6476
+  (0.3ms)  SELECT sql
6477
+ FROM sqlite_master
6478
+ WHERE name='index_roles_on_name_and_resource_type_and_resource_id' AND type='index'
6479
+ UNION ALL
6480
+ SELECT sql
6481
+ FROM sqlite_temp_master
6482
+ WHERE name='index_roles_on_name_and_resource_type_and_resource_id' AND type='index'
6483
+ 
6484
+  (122.4ms) CREATE INDEX "index_roles_on_name" ON "roles" ("name")
6485
+  (134.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "stripe_id" varchar) 
6486
+  (106.1ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
6487
+  (0.1ms)  SELECT sql
6488
+ FROM sqlite_master
6489
+ WHERE name='index_users_on_email' AND type='index'
6490
+ UNION ALL
6491
+ SELECT sql
6492
+ FROM sqlite_temp_master
6493
+ WHERE name='index_users_on_email' AND type='index'
6494
+ 
6495
+  (140.7ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
6496
+  (123.1ms) CREATE TABLE "users_roles" ("user_id" integer, "role_id" integer) 
6497
+  (790.9ms) CREATE INDEX "index_users_roles_on_user_id_and_role_id" ON "users_roles" ("user_id", "role_id")
6498
+  (106.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
6499
+  (123.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6500
+  (0.3ms) SELECT version FROM "schema_migrations"
6501
+  (122.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150523010840')
6502
+  (91.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150523010838')
6503
+  (82.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150523010839')
6504
+  (99.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150517175136')
6505
+  (107.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150517175135')
6506
+  (124.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150406154440')
6507
+  (117.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150523010837')
6508
+  (124.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150523010827')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paid_up
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.6
4
+ version: 0.7.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karen Lundgren
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-24 00:00:00.000000000 Z
11
+ date: 2015-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails