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.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/coverage/.last_run.json +1 -1
- data/coverage/.resultset.json +1431 -237
- data/lib/paid_up/mixins/paid_for.rb +3 -5
- data/paid_up.gemspec +3 -3
- data/spec/dummy/config/routes.rb +1 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +446 -0
- metadata +2 -2
@@ -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
|
-
|
30
|
-
|
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.
|
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.
|
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-
|
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 = [
|
data/spec/dummy/config/routes.rb
CHANGED
Binary file
|
data/spec/dummy/db/test.sqlite3
CHANGED
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
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6064
|
+
Migrating to AddTimestampsToUsersRoles (20150710160830)
|
6065
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "users_roles" ADD "created_at" datetime[0m
|
6068
|
+
[1m[35m (0.1ms)[0m ALTER TABLE "users_roles" ADD "updated_at" datetime
|
6069
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150710160830"]]
|
6070
|
+
[1m[35m (92.8ms)[0m commit transaction
|
6071
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6072
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6088
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6104
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6120
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6136
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6152
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6153
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
6154
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6162
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6178
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6194
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6210
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6226
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (101.5ms)[0m [1mCREATE TABLE "doodads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" varchar, "name" varchar, "description" text) [0m
|
6235
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
6236
|
+
[1m[36m (98.5ms)[0m [1mCREATE INDEX "index_doodads_on_user_id" ON "doodads" ("user_id")[0m
|
6237
|
+
[1m[35m (98.7ms)[0m CREATE TABLE "groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "description" text, "created_at" datetime, "updated_at" datetime)
|
6238
|
+
[1m[36m (98.1ms)[0m [1mCREATE TABLE "paid_up_plan_feature_settings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_id" integer, "feature" varchar, "setting" integer) [0m
|
6239
|
+
[1m[35m (98.0ms)[0m CREATE INDEX "index_paid_up_plan_feature_settings_on_feature" ON "paid_up_plan_feature_settings" ("feature")
|
6240
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
6248
|
+
[1m[35m (114.7ms)[0m CREATE INDEX "index_paid_up_plan_feature_settings_on_plan_id" ON "paid_up_plan_feature_settings" ("plan_id")
|
6249
|
+
[1m[36m (131.6ms)[0m [1mCREATE 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) [0m
|
6250
|
+
[1m[35m (131.0ms)[0m CREATE UNIQUE INDEX "index_paid_up_plans_on_stripe_id" ON "paid_up_plans" ("stripe_id")
|
6251
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
6259
|
+
[1m[35m (131.8ms)[0m CREATE UNIQUE INDEX "index_paid_up_plans_on_title" ON "paid_up_plans" ("title")
|
6260
|
+
[1m[36m (131.6ms)[0m [1mCREATE TABLE "roles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "resource_id" integer, "resource_type" varchar, "created_at" datetime, "updated_at" datetime) [0m
|
6261
|
+
[1m[35m (131.5ms)[0m CREATE INDEX "index_roles_on_name_and_resource_type_and_resource_id" ON "roles" ("name", "resource_type", "resource_id")
|
6262
|
+
[1m[36m (0.3ms)[0m [1m 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
|
+
[0m
|
6270
|
+
[1m[35m (105.7ms)[0m CREATE INDEX "index_roles_on_name" ON "roles" ("name")
|
6271
|
+
[1m[36m (110.2ms)[0m [1mCREATE 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) [0m
|
6272
|
+
[1m[35m (98.6ms)[0m CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
|
6273
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
6281
|
+
[1m[35m (106.3ms)[0m CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
|
6282
|
+
[1m[36m (106.6ms)[0m [1mCREATE TABLE "users_roles" ("user_id" integer, "role_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
6283
|
+
[1m[35m (106.3ms)[0m CREATE INDEX "index_users_roles_on_user_id_and_role_id" ON "users_roles" ("user_id", "role_id")
|
6284
|
+
[1m[36m (123.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
6285
|
+
[1m[35m (107.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
6286
|
+
[1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
6287
|
+
[1m[35m (123.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150710160830')
|
6288
|
+
[1m[36m (125.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150523010838')[0m
|
6289
|
+
[1m[35m (124.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150523010839')
|
6290
|
+
[1m[36m (99.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150517175136')[0m
|
6291
|
+
[1m[35m (99.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150517175135')
|
6292
|
+
[1m[36m (99.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150406154440')[0m
|
6293
|
+
[1m[35m (107.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150523010837')
|
6294
|
+
[1m[36m (181.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150523010840')[0m
|
6295
|
+
[1m[35m (124.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150523010827')
|
6296
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6297
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
6298
|
+
Migrating to AddTimestampsToUsersRoles (20150710160830)
|
6299
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6300
|
+
[1m[35m (0.6ms)[0m CREATE TEMPORARY TABLE "ausers_roles" ("user_id" integer, "role_id" integer, "created_at" datetime, "updated_at" datetime)
|
6301
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
6309
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
6310
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_ausers_roles_on_user_id_and_role_id" ON "ausers_roles" ("user_id", "role_id")[0m
|
6311
|
+
[1m[35m (0.1ms)[0m SELECT * FROM "users_roles"
|
6312
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "ausers_roles" ("user_id","role_id","created_at","updated_at") VALUES (3, 1, NULL, NULL)[0m
|
6313
|
+
[1m[35m (0.0ms)[0m INSERT INTO "ausers_roles" ("user_id","role_id","created_at","updated_at") VALUES (4, 2, NULL, NULL)
|
6314
|
+
[1m[36m (0.0ms)[0m [1mINSERT INTO "ausers_roles" ("user_id","role_id","created_at","updated_at") VALUES (4, 3, NULL, NULL)[0m
|
6315
|
+
[1m[35m (0.0ms)[0m INSERT INTO "ausers_roles" ("user_id","role_id","created_at","updated_at") VALUES (3, 4, NULL, NULL)
|
6316
|
+
[1m[36m (0.2ms)[0m [1mDROP TABLE "users_roles"[0m
|
6317
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "users_roles" ("user_id" integer, "role_id" integer, "created_at" datetime)
|
6318
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6326
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_users_roles_on_user_id_and_role_id" ON "users_roles" ("user_id", "role_id")
|
6327
|
+
[1m[36m (0.1ms)[0m [1mSELECT * FROM "ausers_roles"[0m
|
6328
|
+
[1m[35m (0.1ms)[0m INSERT INTO "users_roles" ("user_id","role_id","created_at") VALUES (3, 1, NULL)
|
6329
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "users_roles" ("user_id","role_id","created_at") VALUES (4, 2, NULL)[0m
|
6330
|
+
[1m[35m (0.1ms)[0m INSERT INTO "users_roles" ("user_id","role_id","created_at") VALUES (4, 3, NULL)
|
6331
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "users_roles" ("user_id","role_id","created_at") VALUES (3, 4, NULL)[0m
|
6332
|
+
[1m[35m (0.2ms)[0m DROP TABLE "ausers_roles"
|
6333
|
+
[1m[36m (0.2ms)[0m [1mCREATE TEMPORARY TABLE "ausers_roles" ("user_id" integer, "role_id" integer, "created_at" datetime) [0m
|
6334
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "tindex_ausers_roles_on_user_id_and_role_id" ON "ausers_roles" ("user_id", "role_id")[0m
|
6343
|
+
[1m[35m (0.1ms)[0m SELECT * FROM "users_roles"
|
6344
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "ausers_roles" ("user_id","role_id","created_at") VALUES (3, 1, NULL)[0m
|
6345
|
+
[1m[35m (0.1ms)[0m INSERT INTO "ausers_roles" ("user_id","role_id","created_at") VALUES (4, 2, NULL)
|
6346
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "ausers_roles" ("user_id","role_id","created_at") VALUES (4, 3, NULL)[0m
|
6347
|
+
[1m[35m (0.1ms)[0m INSERT INTO "ausers_roles" ("user_id","role_id","created_at") VALUES (3, 4, NULL)
|
6348
|
+
[1m[36m (0.2ms)[0m [1mDROP TABLE "users_roles"[0m
|
6349
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "users_roles" ("user_id" integer, "role_id" integer)
|
6350
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6358
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_users_roles_on_user_id_and_role_id" ON "users_roles" ("user_id", "role_id")
|
6359
|
+
[1m[36m (0.1ms)[0m [1mSELECT * FROM "ausers_roles"[0m
|
6360
|
+
[1m[35m (0.1ms)[0m INSERT INTO "users_roles" ("user_id","role_id") VALUES (3, 1)
|
6361
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "users_roles" ("user_id","role_id") VALUES (4, 2)[0m
|
6362
|
+
[1m[35m (0.0ms)[0m INSERT INTO "users_roles" ("user_id","role_id") VALUES (4, 3)
|
6363
|
+
[1m[36m (0.0ms)[0m [1mINSERT INTO "users_roles" ("user_id","role_id") VALUES (3, 4)[0m
|
6364
|
+
[1m[35m (0.1ms)[0m DROP TABLE "ausers_roles"
|
6365
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ?[0m [["version", "20150710160830"]]
|
6366
|
+
[1m[35m (113.9ms)[0m commit transaction
|
6367
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6368
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
6384
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
6400
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
6416
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6432
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6448
|
+
[1m[36m (95.5ms)[0m [1mCREATE TABLE "doodads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" varchar, "name" varchar, "description" text) [0m
|
6449
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
6450
|
+
[1m[36m (98.6ms)[0m [1mCREATE INDEX "index_doodads_on_user_id" ON "doodads" ("user_id")[0m
|
6451
|
+
[1m[35m (98.4ms)[0m CREATE TABLE "groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "description" text, "created_at" datetime, "updated_at" datetime)
|
6452
|
+
[1m[36m (124.7ms)[0m [1mCREATE TABLE "paid_up_plan_feature_settings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_id" integer, "feature" varchar, "setting" integer) [0m
|
6453
|
+
[1m[35m (114.5ms)[0m CREATE INDEX "index_paid_up_plan_feature_settings_on_feature" ON "paid_up_plan_feature_settings" ("feature")
|
6454
|
+
[1m[36m (0.3ms)[0m [1m 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
|
+
[0m
|
6462
|
+
[1m[35m (130.3ms)[0m CREATE INDEX "index_paid_up_plan_feature_settings_on_plan_id" ON "paid_up_plan_feature_settings" ("plan_id")
|
6463
|
+
[1m[36m (131.1ms)[0m [1mCREATE 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) [0m
|
6464
|
+
[1m[35m (131.6ms)[0m CREATE UNIQUE INDEX "index_paid_up_plans_on_stripe_id" ON "paid_up_plans" ("stripe_id")
|
6465
|
+
[1m[36m (0.4ms)[0m [1m 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
|
+
[0m
|
6473
|
+
[1m[35m (113.8ms)[0m CREATE UNIQUE INDEX "index_paid_up_plans_on_title" ON "paid_up_plans" ("title")
|
6474
|
+
[1m[36m (98.3ms)[0m [1mCREATE TABLE "roles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "resource_id" integer, "resource_type" varchar, "created_at" datetime, "updated_at" datetime) [0m
|
6475
|
+
[1m[35m (106.3ms)[0m CREATE INDEX "index_roles_on_name_and_resource_type_and_resource_id" ON "roles" ("name", "resource_type", "resource_id")
|
6476
|
+
[1m[36m (0.3ms)[0m [1m 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
|
+
[0m
|
6484
|
+
[1m[35m (122.4ms)[0m CREATE INDEX "index_roles_on_name" ON "roles" ("name")
|
6485
|
+
[1m[36m (134.9ms)[0m [1mCREATE 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) [0m
|
6486
|
+
[1m[35m (106.1ms)[0m CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
|
6487
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6495
|
+
[1m[35m (140.7ms)[0m CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
|
6496
|
+
[1m[36m (123.1ms)[0m [1mCREATE TABLE "users_roles" ("user_id" integer, "role_id" integer) [0m
|
6497
|
+
[1m[35m (790.9ms)[0m CREATE INDEX "index_users_roles_on_user_id_and_role_id" ON "users_roles" ("user_id", "role_id")
|
6498
|
+
[1m[36m (106.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
6499
|
+
[1m[35m (123.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
6500
|
+
[1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
6501
|
+
[1m[35m (122.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150523010840')
|
6502
|
+
[1m[36m (91.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150523010838')[0m
|
6503
|
+
[1m[35m (82.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150523010839')
|
6504
|
+
[1m[36m (99.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150517175136')[0m
|
6505
|
+
[1m[35m (107.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150517175135')
|
6506
|
+
[1m[36m (124.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150406154440')[0m
|
6507
|
+
[1m[35m (117.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150523010837')
|
6508
|
+
[1m[36m (124.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150523010827')[0m
|
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.
|
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-
|
11
|
+
date: 2015-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|