ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 500 Internal Server Error in 17ms (Views: 16.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 500 Internal Server Error in 13ms (Views: 12.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 500 Internal Server Error in 13ms (Views: 12.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 500 Internal Server Error in 18ms (Views: 17.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 500 Internal Server Error in 13ms (Views: 12.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.5ms) Completed 500 Internal Server Error in 16ms (Views: 14.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (5.5ms) BEGIN  (6.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.4ms) Completed 500 Internal Server Error in 20ms (Views: 18.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.4ms) Completed 500 Internal Server Error in 16ms (Views: 15.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.4ms) Completed 500 Internal Server Error in 18ms (Views: 17.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 500 Internal Server Error in 18ms (Views: 17.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.5ms) Completed 500 Internal Server Error in 19ms (Views: 18.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.4ms) Completed 500 Internal Server Error in 18ms (Views: 17.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.5ms) Completed 500 Internal Server Error in 20ms (Views: 19.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.7ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.5ms) Completed 500 Internal Server Error in 19ms (Views: 18.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.4ms) Completed 500 Internal Server Error in 19ms (Views: 18.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb within layouts/tang/application (0.3ms) Completed 200 OK in 70ms (Views: 23.4ms | ActiveRecord: 31.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 12ms (Views: 11.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb within layouts/tang/application (0.4ms) Completed 200 OK in 40ms (Views: 26.0ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 13ms (Views: 11.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb within layouts/tang/application (0.4ms) Completed 200 OK in 32ms (Views: 18.7ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb within layouts/tang/application (0.4ms) Completed 200 OK in 32ms (Views: 18.8ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (1.4ms) SAVEPOINT active_record_1 Tang::Plan Exists (26.6ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 SQL (5.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "MyString"], ["amount", 1], ["currency", "MyString"], ["interval", "MyString"], ["interval_count", 1], ["name", "MyString"], ["statement_descriptor", "MyString"], ["trial_period_days", 1], ["created_at", "2016-09-28 23:50:10.291826"], ["updated_at", "2016-09-28 23:50:10.291826"]] SQL (18.4ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-28 23:50:10.291826"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-28 23:50:10.375046"], ["updated_at", "2016-09-28 23:50:10.375046"]] SQL (5.5ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-28 23:50:10.375046"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (6.6ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1  (11.5ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-28 23:50:10.447963"], ["updated_at", "2016-09-28 23:50:10.447963"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-28 23:50:10.447963"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb within layouts/tang/application (0.3ms) Completed 200 OK in 37ms (Views: 23.7ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 10ms (Views: 9.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "MyString"], ["amount", 1], ["currency", "MyString"], ["interval", "MyString"], ["interval_count", 1], ["name", "MyString"], ["statement_descriptor", "MyString"], ["trial_period_days", 1], ["created_at", "2016-09-28 23:51:34.473206"], ["updated_at", "2016-09-28 23:51:34.473206"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-28 23:51:34.473206"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/plans/_form.html.erb (60.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/plans/edit.html.erb (114.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.1ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-28 23:51:34.639959"], ["updated_at", "2016-09-28 23:51:34.639959"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-28 23:51:34.639959"], ["item_id", 5], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-28 23:51:34.685889"], ["updated_at", "2016-09-28 23:51:34.685889"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-28 23:51:34.685889"], ["item_id", 6], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb within layouts/tang/application (0.3ms) Completed 200 OK in 34ms (Views: 19.3ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "MyString"], ["amount", 1], ["currency", "MyString"], ["interval", "MyString"], ["interval_count", 1], ["name", "MyString"], ["statement_descriptor", "MyString"], ["trial_period_days", 1], ["created_at", "2016-09-28 23:53:05.467913"], ["updated_at", "2016-09-28 23:53:05.467913"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-28 23:53:05.467913"], ["item_id", 7], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/plans/_form.html.erb (59.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/plans/edit.html.erb (104.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-28 23:53:05.623380"], ["updated_at", "2016-09-28 23:53:05.623380"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-28 23:53:05.623380"], ["item_id", 8], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-28 23:53:05.664678"], ["updated_at", "2016-09-28 23:53:05.664678"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-28 23:53:05.664678"], ["item_id", 9], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb within layouts/tang/application (0.4ms) Completed 200 OK in 40ms (Views: 23.9ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 11ms (Views: 10.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "MyString"], ["amount", 1], ["currency", "MyString"], ["interval", "MyString"], ["interval_count", 1], ["name", "MyString"], ["statement_descriptor", "MyString"], ["trial_period_days", 1], ["created_at", "2016-09-28 23:57:20.569894"], ["updated_at", "2016-09-28 23:57:20.569894"]] SQL (0.4ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-28 23:57:20.569894"], ["item_id", 10], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/plans/_form.html.erb (63.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/plans/edit.html.erb (108.3ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-28 23:57:20.734140"], ["updated_at", "2016-09-28 23:57:20.734140"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-28 23:57:20.734140"], ["item_id", 11], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.1ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-28 23:57:20.779878"], ["updated_at", "2016-09-28 23:57:20.779878"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-28 23:57:20.779878"], ["item_id", 12], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb within layouts/tang/application (0.4ms) Completed 200 OK in 40ms (Views: 23.3ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 12ms (Views: 11.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.6ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "MyString"], ["amount", 1], ["currency", "MyString"], ["interval", "MyString"], ["interval_count", 1], ["name", "MyString"], ["statement_descriptor", "MyString"], ["trial_period_days", 1], ["created_at", "2016-09-28 23:59:27.439976"], ["updated_at", "2016-09-28 23:59:27.439976"]] SQL (0.4ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-28 23:59:27.439976"], ["item_id", 13], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/plans/_form.html.erb (64.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/plans/edit.html.erb (112.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-28 23:59:27.608911"], ["updated_at", "2016-09-28 23:59:27.608911"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-28 23:59:27.608911"], ["item_id", 14], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-28 23:59:27.657685"], ["updated_at", "2016-09-28 23:59:27.657685"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-28 23:59:27.657685"], ["item_id", 15], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb within layouts/tang/application (0.3ms) Completed 200 OK in 43ms (Views: 24.1ms | ActiveRecord: 3.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 14ms (Views: 13.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "MyString"], ["amount", 1], ["currency", "MyString"], ["interval", "MyString"], ["interval_count", 1], ["name", "MyString"], ["statement_descriptor", "MyString"], ["trial_period_days", 1], ["created_at", "2016-09-29 00:11:04.118955"], ["updated_at", "2016-09-29 00:11:04.118955"]] SQL (0.4ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 00:11:04.118955"], ["item_id", 16], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 00:11:04.176188"], ["updated_at", "2016-09-29 00:11:04.176188"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 00:11:04.176188"], ["item_id", 17], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 00:11:04.222473"], ["updated_at", "2016-09-29 00:11:04.222473"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 00:11:04.222473"], ["item_id", 18], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb within layouts/tang/application (0.4ms) Completed 200 OK in 36ms (Views: 21.5ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 12ms (Views: 11.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "MyString"], ["amount", 1], ["currency", "MyString"], ["interval", "MyString"], ["interval_count", 1], ["name", "MyString"], ["statement_descriptor", "MyString"], ["trial_period_days", 1], ["created_at", "2016-09-29 00:11:50.728230"], ["updated_at", "2016-09-29 00:11:50.728230"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 00:11:50.728230"], ["item_id", 19], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 00:11:50.779108"], ["updated_at", "2016-09-29 00:11:50.779108"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 00:11:50.779108"], ["item_id", 20], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 00:11:50.824056"], ["updated_at", "2016-09-29 00:11:50.824056"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 00:11:50.824056"], ["item_id", 21], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb within layouts/tang/application (0.3ms) Completed 200 OK in 39ms (Views: 25.8ms | ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 13ms (Views: 12.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "MyString"], ["amount", 1], ["currency", "MyString"], ["interval", "MyString"], ["interval_count", 1], ["name", "MyString"], ["statement_descriptor", "MyString"], ["trial_period_days", 1], ["created_at", "2016-09-29 00:14:46.493806"], ["updated_at", "2016-09-29 00:14:46.493806"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 00:14:46.493806"], ["item_id", 22], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 00:14:46.548079"], ["updated_at", "2016-09-29 00:14:46.548079"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 00:14:46.548079"], ["item_id", 23], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 00:14:46.594417"], ["updated_at", "2016-09-29 00:14:46.594417"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 00:14:46.594417"], ["item_id", 24], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb within layouts/tang/application (0.3ms) Completed 200 OK in 39ms (Views: 22.8ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 11ms (Views: 10.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.6ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (6.7ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 00:23:27.375729"], ["updated_at", "2016-09-29 00:23:27.375729"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 00:23:27.375729"], ["item_id", 25], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 00:23:27.450655"], ["updated_at", "2016-09-29 00:23:27.450655"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 00:23:27.450655"], ["item_id", 26], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb within layouts/tang/application (0.3ms) Completed 200 OK in 34ms (Views: 19.9ms | ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "MyString"], ["amount", 1], ["currency", "MyString"], ["interval", "MyString"], ["interval_count", 1], ["name", "MyString"], ["statement_descriptor", "MyString"], ["trial_period_days", 1], ["created_at", "2016-09-29 00:24:45.618003"], ["updated_at", "2016-09-29 00:24:45.618003"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 00:24:45.618003"], ["item_id", 27], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 00:24:45.645918"], ["updated_at", "2016-09-29 00:24:45.645918"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 00:24:45.645918"], ["item_id", 28], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 00:24:45.690630"], ["updated_at", "2016-09-29 00:24:45.690630"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 00:24:45.690630"], ["item_id", 29], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb within layouts/tang/application (0.3ms) Completed 200 OK in 38ms (Views: 20.9ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 11ms (Views: 10.7ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 SQL (6.1ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "MyString"], ["amount", 1], ["currency", "MyString"], ["interval", "MyString"], ["interval_count", 1], ["name", "MyString"], ["statement_descriptor", "MyString"], ["trial_period_days", 1], ["created_at", "2016-09-29 00:29:06.768877"], ["updated_at", "2016-09-29 00:29:06.768877"]] SQL (0.4ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 00:29:06.768877"], ["item_id", 30], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 00:29:06.832232"], ["updated_at", "2016-09-29 00:29:06.832232"]] SQL (11.7ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 00:29:06.832232"], ["item_id", 31], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 00:29:06.893712"], ["updated_at", "2016-09-29 00:29:06.893712"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 00:29:06.893712"], ["item_id", 32], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb within layouts/tang/application (0.3ms) Completed 200 OK in 34ms (Views: 18.5ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 10ms (Views: 9.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.7ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "MyString"], ["amount", 1], ["currency", "MyString"], ["interval", "MyString"], ["interval_count", 1], ["name", "MyString"], ["statement_descriptor", "MyString"], ["trial_period_days", 1], ["created_at", "2016-09-29 00:29:31.415842"], ["updated_at", "2016-09-29 00:29:31.415842"]] SQL (0.4ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 00:29:31.415842"], ["item_id", 33], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/plans/_form.html.erb (57.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/plans/edit.html.erb (105.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 00:29:31.572640"], ["updated_at", "2016-09-29 00:29:31.572640"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 00:29:31.572640"], ["item_id", 34], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 00:29:31.617880"], ["updated_at", "2016-09-29 00:29:31.617880"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 00:29:31.617880"], ["item_id", 35], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb within layouts/tang/application (0.3ms) Completed 200 OK in 31ms (Views: 18.4ms | ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 10ms (Views: 9.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "MyString"], ["amount", 1], ["currency", "MyString"], ["interval", "MyString"], ["interval_count", 1], ["name", "MyString"], ["statement_descriptor", "MyString"], ["trial_period_days", 1], ["created_at", "2016-09-29 00:30:01.069575"], ["updated_at", "2016-09-29 00:30:01.069575"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 00:30:01.069575"], ["item_id", 36], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/plans/_form.html.erb (52.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/plans/edit.html.erb (94.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 00:30:01.209781"], ["updated_at", "2016-09-29 00:30:01.209781"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 00:30:01.209781"], ["item_id", 37], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 00:30:01.250947"], ["updated_at", "2016-09-29 00:30:01.250947"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 00:30:01.250947"], ["item_id", 38], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb within layouts/tang/application (0.3ms) Completed 200 OK in 34ms (Views: 20.7ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 10ms (Views: 9.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (6.6ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 00:45:28.943030"], ["updated_at", "2016-09-29 00:45:28.943030"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 00:45:28.943030"], ["item_id", 39], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 00:45:29.016382"], ["updated_at", "2016-09-29 00:45:29.016382"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 00:45:29.016382"], ["item_id", 40], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb within layouts/tang/application (0.3ms) Completed 200 OK in 36ms (Views: 22.2ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 13ms (Views: 12.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "MyString"], ["amount", 1], ["currency", "MyString"], ["interval", "MyString"], ["interval_count", 1], ["name", "MyString"], ["statement_descriptor", "MyString"], ["trial_period_days", 1], ["created_at", "2016-09-29 00:56:24.639229"], ["updated_at", "2016-09-29 00:56:24.639229"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 00:56:24.639229"], ["item_id", 41], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/plans/_form.html.erb (59.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/plans/edit.html.erb (105.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 00:56:24.800955"], ["updated_at", "2016-09-29 00:56:24.800955"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 00:56:24.800955"], ["item_id", 42], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 00:56:24.846987"], ["updated_at", "2016-09-29 00:56:24.846987"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 00:56:24.846987"], ["item_id", 43], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb within layouts/tang/application (0.3ms) Completed 200 OK in 37ms (Views: 22.4ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 9ms (Views: 8.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.6ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "MyString"], ["amount", 1], ["currency", "MyString"], ["interval", "MyString"], ["interval_count", 1], ["name", "MyString"], ["statement_descriptor", "MyString"], ["trial_period_days", 1], ["created_at", "2016-09-29 00:57:41.043420"], ["updated_at", "2016-09-29 00:57:41.043420"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 00:57:41.043420"], ["item_id", 44], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/plans/_form.html.erb (60.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/plans/edit.html.erb (111.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 00:57:41.201850"], ["updated_at", "2016-09-29 00:57:41.201850"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 00:57:41.201850"], ["item_id", 45], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 00:57:41.248693"], ["updated_at", "2016-09-29 00:57:41.248693"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 00:57:41.248693"], ["item_id", 46], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb within layouts/tang/application (0.3ms) Completed 200 OK in 36ms (Views: 22.1ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 10ms (Views: 9.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "MyString"], ["amount", 1], ["currency", "MyString"], ["interval", "MyString"], ["interval_count", 1], ["name", "MyString"], ["statement_descriptor", "MyString"], ["trial_period_days", 1], ["created_at", "2016-09-29 00:58:45.155089"], ["updated_at", "2016-09-29 00:58:45.155089"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 00:58:45.155089"], ["item_id", 47], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/plans/_form.html.erb (51.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/plans/edit.html.erb (94.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 00:58:45.299025"], ["updated_at", "2016-09-29 00:58:45.299025"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 00:58:45.299025"], ["item_id", 48], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 00:58:45.338558"], ["updated_at", "2016-09-29 00:58:45.338558"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 00:58:45.338558"], ["item_id", 49], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb within layouts/tang/application (0.3ms) Completed 200 OK in 35ms (Views: 20.6ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 11ms (Views: 10.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (1.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "MyString"], ["amount", 1], ["currency", "MyString"], ["interval", "MyString"], ["interval_count", 1], ["name", "MyString"], ["statement_descriptor", "MyString"], ["trial_period_days", 1], ["created_at", "2016-09-29 00:59:39.986839"], ["updated_at", "2016-09-29 00:59:39.986839"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 00:59:39.986839"], ["item_id", 50], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/plans/_form.html.erb (63.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/plans/edit.html.erb (116.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 00:59:40.154186"], ["updated_at", "2016-09-29 00:59:40.154186"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 00:59:40.154186"], ["item_id", 51], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 00:59:40.199516"], ["updated_at", "2016-09-29 00:59:40.199516"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 00:59:40.199516"], ["item_id", 52], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb within layouts/tang/application (0.3ms) Completed 200 OK in 33ms (Views: 19.7ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "MyString"], ["amount", 1], ["currency", "MyString"], ["interval", "MyString"], ["interval_count", 1], ["name", "MyString"], ["statement_descriptor", "MyString"], ["trial_period_days", 1], ["created_at", "2016-09-29 01:02:06.152112"], ["updated_at", "2016-09-29 01:02:06.152112"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:02:06.152112"], ["item_id", 53], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/plans/_form.html.erb (52.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/plans/edit.html.erb (96.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:02:06.295709"], ["updated_at", "2016-09-29 01:02:06.295709"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:02:06.295709"], ["item_id", 54], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:02:06.338225"], ["updated_at", "2016-09-29 01:02:06.338225"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:02:06.338225"], ["item_id", 55], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb within layouts/tang/application (0.4ms) Completed 200 OK in 38ms (Views: 24.1ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 11ms (Views: 10.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "MyString"], ["amount", 1], ["currency", "MyString"], ["interval", "MyString"], ["interval_count", 1], ["name", "MyString"], ["statement_descriptor", "MyString"], ["trial_period_days", 1], ["created_at", "2016-09-29 01:10:47.379309"], ["updated_at", "2016-09-29 01:10:47.379309"]] SQL (12.5ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:10:47.379309"], ["item_id", 56], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/plans/_form.html.erb (62.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/plans/edit.html.erb (111.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:10:47.553322"], ["updated_at", "2016-09-29 01:10:47.553322"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:10:47.553322"], ["item_id", 57], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:10:47.596174"], ["updated_at", "2016-09-29 01:10:47.596174"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:10:47.596174"], ["item_id", 58], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb within layouts/tang/application (0.4ms) Completed 200 OK in 40ms (Views: 25.9ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 11ms (Views: 10.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.8ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "MyString"], ["amount", 1], ["currency", "MyString"], ["interval", "MyString"], ["interval_count", 1], ["name", "MyString"], ["statement_descriptor", "MyString"], ["trial_period_days", 1], ["created_at", "2016-09-29 01:17:35.713092"], ["updated_at", "2016-09-29 01:17:35.713092"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:17:35.713092"], ["item_id", 59], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/plans/_form.html.erb (64.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/plans/edit.html.erb (110.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:17:35.879474"], ["updated_at", "2016-09-29 01:17:35.879474"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:17:35.879474"], ["item_id", 60], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:17:35.923012"], ["updated_at", "2016-09-29 01:17:35.923012"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:17:35.923012"], ["item_id", 61], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb within layouts/tang/application (0.3ms) Completed 200 OK in 37ms (Views: 22.5ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 10ms (Views: 9.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.6ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "MyString"], ["amount", 1], ["currency", "MyString"], ["interval", "MyString"], ["interval_count", 1], ["name", "MyString"], ["statement_descriptor", "MyString"], ["trial_period_days", 1], ["created_at", "2016-09-29 01:18:01.422637"], ["updated_at", "2016-09-29 01:18:01.422637"]] SQL (4.0ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:18:01.422637"], ["item_id", 62], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/plans/_form.html.erb (62.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/plans/edit.html.erb (113.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:18:01.595788"], ["updated_at", "2016-09-29 01:18:01.595788"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:18:01.595788"], ["item_id", 63], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:18:01.639772"], ["updated_at", "2016-09-29 01:18:01.639772"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:18:01.639772"], ["item_id", 64], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb within layouts/tang/application (0.3ms) Completed 200 OK in 35ms (Views: 21.7ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 10ms (Views: 9.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "MyString"], ["amount", 1], ["currency", "MyString"], ["interval", "MyString"], ["interval_count", 1], ["name", "MyString"], ["statement_descriptor", "MyString"], ["trial_period_days", 1], ["created_at", "2016-09-29 01:24:17.380785"], ["updated_at", "2016-09-29 01:24:17.380785"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:24:17.380785"], ["item_id", 65], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/plans/_form.html.erb (0.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/plans/edit.html.erb (50.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:24:17.484118"], ["updated_at", "2016-09-29 01:24:17.484118"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:24:17.484118"], ["item_id", 66], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:24:17.535174"], ["updated_at", "2016-09-29 01:24:17.535174"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:24:17.535174"], ["item_id", 67], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb within layouts/tang/application (0.4ms) Completed 200 OK in 39ms (Views: 25.0ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 11ms (Views: 10.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "MyString"], ["amount", 1], ["currency", "MyString"], ["interval", "MyString"], ["interval_count", 1], ["name", "MyString"], ["statement_descriptor", "MyString"], ["trial_period_days", 1], ["created_at", "2016-09-29 01:24:39.333195"], ["updated_at", "2016-09-29 01:24:39.333195"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:24:39.333195"], ["item_id", 68], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/plans/_form.html.erb (27.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/plans/edit.html.erb (72.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (1.7ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:24:39.456321"], ["updated_at", "2016-09-29 01:24:39.456321"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:24:39.456321"], ["item_id", 69], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:24:39.499638"], ["updated_at", "2016-09-29 01:24:39.499638"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:24:39.499638"], ["item_id", 70], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb within layouts/tang/application (0.3ms) Completed 200 OK in 37ms (Views: 23.5ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 11ms (Views: 10.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.7ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "MyString"], ["amount", 1], ["currency", "MyString"], ["interval", "MyString"], ["interval_count", 1], ["name", "MyString"], ["statement_descriptor", "MyString"], ["trial_period_days", 1], ["created_at", "2016-09-29 01:25:30.058295"], ["updated_at", "2016-09-29 01:25:30.058295"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:25:30.058295"], ["item_id", 71], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/plans/_form.html.erb (32.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/plans/edit.html.erb (149.4ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:25:30.268121"], ["updated_at", "2016-09-29 01:25:30.268121"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:25:30.268121"], ["item_id", 72], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:25:30.303071"], ["updated_at", "2016-09-29 01:25:30.303071"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:25:30.303071"], ["item_id", 73], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb within layouts/tang/application (0.2ms) Completed 200 OK in 35ms (Views: 19.0ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 10ms (Views: 9.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "MyString"], ["amount", 1], ["currency", "MyString"], ["interval", "MyString"], ["interval_count", 1], ["name", "MyString"], ["statement_descriptor", "MyString"], ["trial_period_days", 1], ["created_at", "2016-09-29 01:26:16.258550"], ["updated_at", "2016-09-29 01:26:16.258550"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:26:16.258550"], ["item_id", 74], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/plans/_form.html.erb (23.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/plans/edit.html.erb (156.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:26:16.463690"], ["updated_at", "2016-09-29 01:26:16.463690"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:26:16.463690"], ["item_id", 75], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:26:16.499262"], ["updated_at", "2016-09-29 01:26:16.499262"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:26:16.499262"], ["item_id", 76], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb within layouts/tang/application (0.3ms) Completed 200 OK in 37ms (Views: 22.6ms | ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "MyString"], ["amount", 1], ["currency", "MyString"], ["interval", "MyString"], ["interval_count", 1], ["name", "MyString"], ["statement_descriptor", "MyString"], ["trial_period_days", 1], ["created_at", "2016-09-29 01:26:27.601247"], ["updated_at", "2016-09-29 01:26:27.601247"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:26:27.601247"], ["item_id", 77], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/plans/_form.html.erb (18.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/plans/edit.html.erb (68.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.1ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:26:27.720212"], ["updated_at", "2016-09-29 01:26:27.720212"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:26:27.720212"], ["item_id", 78], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:26:27.754262"], ["updated_at", "2016-09-29 01:26:27.754262"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:26:27.754262"], ["item_id", 79], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb within layouts/tang/application (0.4ms) Completed 200 OK in 33ms (Views: 19.5ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "MyString"], ["amount", 1], ["currency", "MyString"], ["interval", "MyString"], ["interval_count", 1], ["name", "MyString"], ["statement_descriptor", "MyString"], ["trial_period_days", 1], ["created_at", "2016-09-29 01:26:44.405851"], ["updated_at", "2016-09-29 01:26:44.405851"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:26:44.405851"], ["item_id", 80], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/plans/_form.html.erb (18.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/plans/edit.html.erb (63.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:26:44.535627"], ["updated_at", "2016-09-29 01:26:44.535627"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:26:44.535627"], ["item_id", 81], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:26:44.570669"], ["updated_at", "2016-09-29 01:26:44.570669"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:26:44.570669"], ["item_id", 82], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb within layouts/tang/application (0.3ms) Completed 200 OK in 36ms (Views: 19.3ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "MyString"], ["amount", 1], ["currency", "MyString"], ["interval", "MyString"], ["interval_count", 1], ["name", "MyString"], ["statement_descriptor", "MyString"], ["trial_period_days", 1], ["created_at", "2016-09-29 01:27:13.869867"], ["updated_at", "2016-09-29 01:27:13.869867"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:27:13.869867"], ["item_id", 83], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/plans/_form.html.erb (17.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/plans/edit.html.erb (73.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe1' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe1"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:27:13.996125"], ["updated_at", "2016-09-29 01:27:13.996125"]] SQL (3.6ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:27:13.996125"], ["item_id", 84], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe2' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe2"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:27:14.004779"], ["updated_at", "2016-09-29 01:27:14.004779"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:27:14.004779"], ["item_id", 85], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:27:14.063555"], ["updated_at", "2016-09-29 01:27:14.063555"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:27:14.063555"], ["item_id", 86], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb within layouts/tang/application (0.3ms) Completed 200 OK in 36ms (Views: 19.0ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.6ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "MyString"], ["amount", 1], ["currency", "MyString"], ["interval", "MyString"], ["interval_count", 1], ["name", "MyString"], ["statement_descriptor", "MyString"], ["trial_period_days", 1], ["created_at", "2016-09-29 01:27:31.585828"], ["updated_at", "2016-09-29 01:27:31.585828"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:27:31.585828"], ["item_id", 87], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/plans/_form.html.erb (17.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/plans/edit.html.erb (64.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe1' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe1"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:27:31.703732"], ["updated_at", "2016-09-29 01:27:31.703732"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:27:31.703732"], ["item_id", 88], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe2' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe2"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:27:31.708012"], ["updated_at", "2016-09-29 01:27:31.708012"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:27:31.708012"], ["item_id", 89], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/plans/index.html.erb (66.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:27:31.825575"], ["updated_at", "2016-09-29 01:27:31.825575"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:27:31.825575"], ["item_id", 90], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb within layouts/tang/application (0.3ms) Completed 200 OK in 35ms (Views: 20.8ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 10ms (Views: 9.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "MyString"], ["amount", 1], ["currency", "MyString"], ["interval", "MyString"], ["interval_count", 1], ["name", "MyString"], ["statement_descriptor", "MyString"], ["trial_period_days", 1], ["created_at", "2016-09-29 01:28:13.688811"], ["updated_at", "2016-09-29 01:28:13.688811"]] SQL (0.5ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:28:13.688811"], ["item_id", 91], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/plans/_form.html.erb (18.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/plans/edit.html.erb (68.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe1' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe1"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:28:13.808583"], ["updated_at", "2016-09-29 01:28:13.808583"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:28:13.808583"], ["item_id", 92], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe2' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe2"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:28:13.813733"], ["updated_at", "2016-09-29 01:28:13.813733"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:28:13.813733"], ["item_id", 93], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/plans/index.html.erb (95.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:28:13.968138"], ["updated_at", "2016-09-29 01:28:13.968138"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:28:13.968138"], ["item_id", 94], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb within layouts/tang/application (0.3ms) Completed 200 OK in 37ms (Views: 21.6ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 11ms (Views: 10.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.8ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "MyString"], ["amount", 1], ["currency", "MyString"], ["interval", "MyString"], ["interval_count", 1], ["name", "MyString"], ["statement_descriptor", "MyString"], ["trial_period_days", 1], ["created_at", "2016-09-29 01:28:55.747988"], ["updated_at", "2016-09-29 01:28:55.747988"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:28:55.747988"], ["item_id", 95], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/plans/_form.html.erb (19.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/plans/edit.html.erb (69.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe1' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe1"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:28:55.874059"], ["updated_at", "2016-09-29 01:28:55.874059"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:28:55.874059"], ["item_id", 96], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe2' LIMIT 1 SQL (0.1ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe2"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:28:55.878002"], ["updated_at", "2016-09-29 01:28:55.878002"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:28:55.878002"], ["item_id", 97], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/plans/index.html.erb (102.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Rendered /Users/craigphares/Development/tang/app/views/tang/plans/_form.html.erb (25.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb (26.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:28:56.071005"], ["updated_at", "2016-09-29 01:28:56.071005"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:28:56.071005"], ["item_id", 98], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/plans/show.html.erb (58.8ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb within layouts/tang/application (0.3ms) Completed 200 OK in 33ms (Views: 18.5ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 11ms (Views: 10.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "MyString"], ["amount", 1], ["currency", "MyString"], ["interval", "MyString"], ["interval_count", 1], ["name", "MyString"], ["statement_descriptor", "MyString"], ["trial_period_days", 1], ["created_at", "2016-09-29 01:30:28.253426"], ["updated_at", "2016-09-29 01:30:28.253426"]] SQL (0.4ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:30:28.253426"], ["item_id", 99], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/plans/_form.html.erb (18.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/plans/edit.html.erb (66.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe1' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe1"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:30:28.370975"], ["updated_at", "2016-09-29 01:30:28.370975"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:30:28.370975"], ["item_id", 100], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe2' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe2"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:30:28.375867"], ["updated_at", "2016-09-29 01:30:28.375867"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:30:28.375867"], ["item_id", 101], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/plans/index.html.erb (9.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN Rendered /Users/craigphares/Development/tang/app/views/tang/plans/_form.html.erb (2.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb (5.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.1ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:30:28.451790"], ["updated_at", "2016-09-29 01:30:28.451790"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:30:28.451790"], ["item_id", 102], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/plans/show.html.erb (68.6ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb within layouts/tang/application (0.3ms) Completed 200 OK in 35ms (Views: 21.6ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 10ms (Views: 9.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "MyString"], ["amount", 1], ["currency", "MyString"], ["interval", "MyString"], ["interval_count", 1], ["name", "MyString"], ["statement_descriptor", "MyString"], ["trial_period_days", 1], ["created_at", "2016-09-29 01:31:24.614773"], ["updated_at", "2016-09-29 01:31:24.614773"]] SQL (0.4ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:31:24.614773"], ["item_id", 103], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/plans/_form.html.erb (15.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/plans/edit.html.erb (63.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe1' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe1"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:31:24.733145"], ["updated_at", "2016-09-29 01:31:24.733145"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:31:24.733145"], ["item_id", 104], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe2' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe2"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:31:24.738032"], ["updated_at", "2016-09-29 01:31:24.738032"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:31:24.738032"], ["item_id", 105], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/plans/index.html.erb (11.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Rendered /Users/craigphares/Development/tang/app/views/tang/plans/_form.html.erb (2.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb (5.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:31:24.817618"], ["updated_at", "2016-09-29 01:31:24.817618"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:31:24.817618"], ["item_id", 106], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/plans/show.html.erb (4.6ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb within layouts/tang/application (0.3ms) Completed 200 OK in 38ms (Views: 24.5ms | ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 11ms (Views: 11.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.6ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 SQL (6.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "MyString"], ["amount", 1], ["currency", "MyString"], ["interval", "MyString"], ["interval_count", 1], ["name", "MyString"], ["statement_descriptor", "MyString"], ["trial_period_days", 1], ["created_at", "2016-09-29 01:34:23.717083"], ["updated_at", "2016-09-29 01:34:23.717083"]] SQL (12.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:34:23.717083"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/plans/_form.html.erb (23.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/plans/edit.html.erb (81.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe1' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe1"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:34:23.877549"], ["updated_at", "2016-09-29 01:34:23.877549"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:34:23.877549"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe2' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe2"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:34:23.881331"], ["updated_at", "2016-09-29 01:34:23.881331"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:34:23.881331"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/plans/index.html.erb (10.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Rendered /Users/craigphares/Development/tang/app/views/tang/plans/_form.html.erb (3.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/plans/new.html.erb (6.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "Currency"], ["interval", "Interval"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-09-29 01:34:23.960735"], ["updated_at", "2016-09-29 01:34:23.960735"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-29 01:34:23.960735"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/plans/show.html.erb (4.2ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (8.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (144.2ms) DROP DATABASE IF EXISTS "tang_app_test"  (373.4ms) CREATE DATABASE "tang_app_test" ENCODING = 'unicode' SQL (1.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (19.3ms) CREATE TABLE "tang_cards" ("id" serial primary key, "user_id" integer, "stripe_id" character varying, "address_line1" character varying, "address_line1_check" character varying, "address_line2" character varying, "address_city" character varying, "address_country" character varying, "address_state" character varying, "address_zip" character varying, "address_zip_check" character varying, "name" character varying, "brand" character varying, "last4" character varying, "dynamic_last4" character varying, "exp_month" integer, "exp_year" integer, "cvc_check" character varying, "country" character varying, "tokenization_method" character varying, "funding" character varying, "fingerprint" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.6ms) CREATE INDEX "index_tang_cards_on_user_id" ON "tang_cards" USING btree ("user_id")  (5.1ms) CREATE TABLE "tang_coupons" ("id" serial primary key, "stripe_id" character varying, "duration" character varying, "amount_off" integer, "currency" character varying, "duration_in_months" integer, "max_redemptions" integer, "percent_off" integer, "redeem_by" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.6ms) CREATE TABLE "tang_plans" ("id" serial primary key, "stripe_id" character varying, "amount" integer, "currency" character varying, "interval" character varying, "interval_count" integer, "name" character varying, "statement_descriptor" character varying, "trial_period_days" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (4.1ms) CREATE TABLE "tang_stripe_webhooks" ("id" serial primary key, "stripe_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (6.5ms) CREATE TABLE "tang_subscriptions" ("id" serial primary key, "stripe_id" character varying, "user_id" integer, "plan_id" integer, "application_fee_percent" decimal, "quantity" integer, "tax_percent" decimal, "trial_end" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_tang_subscriptions_on_plan_id" ON "tang_subscriptions" USING btree ("plan_id")  (0.8ms) CREATE INDEX "index_tang_subscriptions_on_user_id" ON "tang_subscriptions" USING btree ("user_id")  (25.7ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying DEFAULT '' NOT NULL, "encrypted_password" character varying DEFAULT '' NOT NULL, "reset_password_token" character varying, "reset_password_sent_at" timestamp, "remember_created_at" timestamp, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" timestamp, "last_sign_in_at" timestamp, "current_sign_in_ip" inet, "last_sign_in_ip" inet, "confirmation_token" character varying, "confirmed_at" timestamp, "confirmation_sent_at" timestamp, "unconfirmed_email" character varying, "failed_attempts" integer DEFAULT 0 NOT NULL, "unlock_token" character varying, "locked_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "stripe_id" character varying, "account_balance" integer, "business_vat_id" character varying, "currency" character varying, "delinquent" boolean DEFAULT 'f' NOT NULL, "description" character varying, "active_until" timestamp)  (1.0ms) CREATE UNIQUE INDEX "index_users_on_confirmation_token" ON "users" USING btree ("confirmation_token")  (0.8ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" USING btree ("email")  (0.7ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" USING btree ("reset_password_token")  (0.9ms) CREATE UNIQUE INDEX "index_users_on_unlock_token" ON "users" USING btree ("unlock_token")  (8.3ms) CREATE TABLE "versions" ("id" serial primary key, "item_type" character varying NOT NULL, "item_id" integer NOT NULL, "event" character varying NOT NULL, "whodunnit" character varying, "object" text, "created_at" timestamp)   (1.1ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" USING btree ("item_type", "item_id")  (16.3ms) ALTER TABLE "tang_cards" ADD CONSTRAINT "fk_rails_d060af6ba9" FOREIGN KEY ("user_id") REFERENCES "users" ("id")   (3.3ms) ALTER TABLE "tang_subscriptions" ADD CONSTRAINT "fk_rails_91d2e4cd21" FOREIGN KEY ("user_id") REFERENCES "users" ("id")  (3.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20160929174251')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20160928150425') ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateTangPlans (20160928154410)  (0.2ms) BEGIN  (13.7ms) CREATE TABLE "tang_plans" ("id" serial primary key, "stripe_id" character varying, "amount" integer, "currency" character varying, "interval" character varying, "interval_count" integer, "name" character varying, "statement_descriptor" character varying, "trial_period_days" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.1ms) ROLLBACK  (8.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (17.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to DeviseCreateUsers (20160928150425)  (0.1ms) BEGIN  (16.5ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying DEFAULT '' NOT NULL, "encrypted_password" character varying DEFAULT '' NOT NULL, "reset_password_token" character varying, "reset_password_sent_at" timestamp, "remember_created_at" timestamp, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" timestamp, "last_sign_in_at" timestamp, "current_sign_in_ip" inet, "last_sign_in_ip" inet, "confirmation_token" character varying, "confirmed_at" timestamp, "confirmation_sent_at" timestamp, "unconfirmed_email" character varying, "failed_attempts" integer DEFAULT 0 NOT NULL, "unlock_token" character varying, "locked_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.3ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")  (0.9ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")  (0.7ms) CREATE UNIQUE INDEX "index_users_on_confirmation_token" ON "users" ("confirmation_token")  (0.7ms) CREATE UNIQUE INDEX "index_users_on_unlock_token" ON "users" ("unlock_token") SQL (5.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160928150425"]]  (5.8ms) COMMIT Migrating to CreateTangPlans (20160928154410)  (11.2ms) BEGIN  (14.2ms) CREATE TABLE "tang_plans" ("id" serial primary key, "stripe_id" character varying, "amount" integer, "currency" character varying, "interval" character varying, "interval_count" integer, "name" character varying, "statement_descriptor" character varying, "trial_period_days" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160928154410"]]  (0.3ms) COMMIT Migrating to CreateVersions (20160928161623)  (12.0ms) BEGIN  (13.0ms) CREATE TABLE "versions" ("id" serial primary key, "item_type" character varying NOT NULL, "item_id" integer NOT NULL, "event" character varying NOT NULL, "whodunnit" character varying, "object" text, "created_at" timestamp)   (0.8ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160928161623"]]  (2.2ms) COMMIT Migrating to CreateTangStripeWebhooks (20160928173328)  (5.8ms) BEGIN  (13.7ms) CREATE TABLE "tang_stripe_webhooks" ("id" serial primary key, "stripe_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160928173328"]]  (4.0ms) COMMIT Migrating to AddCustomerFieldsToUsers (20160929152541)  (11.1ms) BEGIN  (0.4ms) ALTER TABLE "users" ADD "stripe_id" character varying  (0.2ms) ALTER TABLE "users" ADD "account_balance" integer  (0.1ms) ALTER TABLE "users" ADD "business_vat_id" character varying  (0.1ms) ALTER TABLE "users" ADD "currency" character varying  (16.3ms) ALTER TABLE "users" ADD "delinquent" boolean DEFAULT 'f' NOT NULL  (0.2ms) ALTER TABLE "users" ADD "description" character varying  (0.2ms) ALTER TABLE "users" ADD "active_until" timestamp SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160929152541"]]  (2.6ms) COMMIT Migrating to CreateTangCoupons (20160929171450)  (0.1ms) BEGIN  (14.8ms) CREATE TABLE "tang_coupons" ("id" serial primary key, "stripe_id" character varying, "duration" character varying, "amount_off" integer, "currency" character varying, "duration_in_months" integer, "max_redemptions" integer, "percent_off" integer, "redeem_by" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160929171450"]]  (12.0ms) COMMIT Migrating to CreateTangSubscriptions (20160929171640)  (6.1ms) BEGIN  (19.5ms) CREATE TABLE "tang_subscriptions" ("id" serial primary key, "stripe_id" character varying, "user_id" integer, "plan_id" integer, "application_fee_percent" decimal, "quantity" integer, "tax_percent" decimal, "trial_end" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) CREATE INDEX "index_tang_subscriptions_on_user_id" ON "tang_subscriptions" ("user_id")  (2.2ms) CREATE INDEX "index_tang_subscriptions_on_plan_id" ON "tang_subscriptions" ("plan_id")  (1.6ms) ALTER TABLE "tang_subscriptions" ADD CONSTRAINT "fk_rails_91d2e4cd21" FOREIGN KEY ("user_id") REFERENCES "users" ("id")  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160929171640"]]  (0.5ms) COMMIT Migrating to CreateTangCards (20160929174251)  (5.9ms) BEGIN  (14.7ms) CREATE TABLE "tang_cards" ("id" serial primary key, "user_id" integer, "stripe_id" character varying, "address_line1" character varying, "address_line1_check" character varying, "address_line2" character varying, "address_city" character varying, "address_country" character varying, "address_state" character varying, "address_zip" character varying, "address_zip_check" character varying, "name" character varying, "brand" character varying, "last4" character varying, "dynamic_last4" character varying, "exp_month" integer, "exp_year" integer, "cvc_check" character varying, "country" character varying, "tokenization_method" character varying, "funding" character varying, "fingerprint" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_tang_cards_on_user_id" ON "tang_cards" ("user_id")  (0.9ms) ALTER TABLE "tang_cards" ADD CONSTRAINT "fk_rails_d060af6ba9" FOREIGN KEY ("user_id") REFERENCES "users" ("id")  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160929174251"]]  (0.4ms) COMMIT ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'tang_cards' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'tang_coupons' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  (1.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'tang_plans' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (1.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'tang_stripe_webhooks' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  (1.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'tang_subscriptions' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'users' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  (2.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'versions' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (6.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/admin/tang/plans/new" for 127.0.0.1 at 2016-09-30 19:25:39 -0400  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/admin/tang/plans/new" for 127.0.0.1 at 2016-09-30 19:25:39 -0400  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 19:26:02 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (31.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (41.5ms) Completed 200 OK in 504ms (Views: 476.8ms | ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 19:26:03 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (2.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (3.2ms) Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 19:26:24 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (24.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (31.1ms) Completed 200 OK in 280ms (Views: 251.8ms | ActiveRecord: 0.9ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-09-30 19:26:25 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"", "name"=>"", "statement_descriptor"=>"", "amount"=>"", "currency"=>"usd", "interval"=>"", "interval_count"=>"", "trial_period_days"=>""}, "commit"=>"Create Plan"}  (6.3ms) SAVEPOINT active_record_1 Tang::Plan Exists (14.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '' LIMIT 1  (11.4ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (4.8ms) Completed 200 OK in 78ms (Views: 6.2ms | ActiveRecord: 32.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 19:26:25 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (3.4ms) Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-09-30 19:26:25 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"", "name"=>"", "statement_descriptor"=>"", "amount"=>"", "currency"=>"usd", "interval"=>"", "interval_count"=>"", "trial_period_days"=>""}, "commit"=>"Create Plan"}  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (5.1ms) Completed 200 OK in 12ms (Views: 6.5ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 19:27:49 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (24.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (31.9ms) Completed 200 OK in 318ms (Views: 289.2ms | ActiveRecord: 0.9ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-09-30 19:27:49 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"", "name"=>"", "statement_descriptor"=>"", "amount"=>"", "currency"=>"usd", "interval"=>"", "interval_count"=>"", "trial_period_days"=>""}, "commit"=>"Create Plan"}  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.7ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (6.7ms) Completed 200 OK in 37ms (Views: 8.5ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 19:27:49 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (3.6ms) Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-09-30 19:27:49 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"", "name"=>"", "statement_descriptor"=>"", "amount"=>"", "currency"=>"usd", "interval"=>"", "interval_count"=>"", "trial_period_days"=>""}, "commit"=>"Create Plan"}  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (4.2ms) Completed 200 OK in 10ms (Views: 5.6ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 19:33:12 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (19.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (26.6ms) Completed 200 OK in 262ms (Views: 238.2ms | ActiveRecord: 1.0ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-09-30 19:33:13 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"", "name"=>"", "statement_descriptor"=>"", "amount"=>"", "currency"=>"usd", "interval"=>"", "interval_count"=>"", "trial_period_days"=>""}, "commit"=>"Create Plan"}  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.6ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (5.3ms) Completed 200 OK in 34ms (Views: 6.8ms | ActiveRecord: 1.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 19:33:13 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (2.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (3.2ms) Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-09-30 19:33:13 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"", "name"=>"", "statement_descriptor"=>"", "amount"=>"", "currency"=>"usd", "interval"=>"", "interval_count"=>"", "trial_period_days"=>""}, "commit"=>"Create Plan"}  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (4.3ms) Completed 200 OK in 10ms (Views: 5.5ms | ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 19:41:43 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (23.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (31.0ms) Completed 200 OK in 281ms (Views: 253.0ms | ActiveRecord: 1.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 19:41:44 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (3.7ms) Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.8ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 19:42:23 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (24.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (31.1ms) Completed 200 OK in 271ms (Views: 242.2ms | ActiveRecord: 1.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 19:42:23 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (3.6ms) Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 19:45:02 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (21.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (28.8ms) Completed 200 OK in 266ms (Views: 240.5ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 19:45:02 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (3.5ms) Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 19:45:36 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (27.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (33.8ms) Completed 200 OK in 283ms (Views: 254.4ms | ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 19:45:36 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (3.4ms) Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 19:47:57 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (24.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (31.6ms) Completed 200 OK in 277ms (Views: 251.1ms | ActiveRecord: 1.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 19:47:57 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (2.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (3.2ms) Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 19:49:54 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (20.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (28.1ms) Completed 200 OK in 253ms (Views: 228.9ms | ActiveRecord: 1.1ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-09-30 19:49:54 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"gold", "statement_descriptor"=>"nil", "amount"=>"999", "currency"=>"usd", "interval"=>"", "interval_count"=>"monthly", "trial_period_days"=>"0"}, "commit"=>"Create Plan"}  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.7ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (5.2ms) Completed 200 OK in 35ms (Views: 6.8ms | ActiveRecord: 2.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 19:49:54 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (4.0ms) Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.0ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-09-30 19:49:54 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"gold", "statement_descriptor"=>"nil", "amount"=>"999", "currency"=>"usd", "interval"=>"", "interval_count"=>"monthly", "trial_period_days"=>"0"}, "commit"=>"Create Plan"}  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (4.1ms) Completed 200 OK in 10ms (Views: 5.3ms | ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 19:51:05 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (25.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (33.0ms) Completed 200 OK in 270ms (Views: 242.8ms | ActiveRecord: 1.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 19:51:06 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (3.6ms) Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 19:54:01 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (24.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (30.9ms) Completed 200 OK in 267ms (Views: 241.3ms | ActiveRecord: 0.9ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-09-30 19:54:01 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "statement_descriptor"=>"", "amount"=>"2000", "currency"=>"usd", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>""}, "commit"=>"Create Plan"}  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.7ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 31ms (ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 19:54:01 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (2.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (3.3ms) Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-09-30 19:54:01 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "statement_descriptor"=>"", "amount"=>"2000", "currency"=>"usd", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>""}, "commit"=>"Create Plan"}  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 19:54:37 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (20.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (27.2ms) Completed 200 OK in 278ms (Views: 252.9ms | ActiveRecord: 0.9ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-09-30 19:54:37 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "statement_descriptor"=>"", "amount"=>"2000", "currency"=>"usd", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>""}, "commit"=>"Create Plan"}  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.7ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (7.1ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-09-30 23:54:37.550133"], ["updated_at", "2016-09-30 23:54:37.550133"]] SQL (1.9ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-30 23:54:37.550133"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to Completed 500 Internal Server Error in 514ms (ActiveRecord: 13.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 19:54:38 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (3.6ms) Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-09-30 19:54:38 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "statement_descriptor"=>"", "amount"=>"2000", "currency"=>"usd", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>""}, "commit"=>"Create Plan"}  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-09-30 23:54:38.082374"], ["updated_at", "2016-09-30 23:54:38.082374"]] SQL (1.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-30 23:54:38.082374"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to Completed 500 Internal Server Error in 376ms (ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 19:55:24 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (20.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (27.2ms) Completed 200 OK in 253ms (Views: 228.1ms | ActiveRecord: 1.1ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-09-30 19:55:24 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "statement_descriptor"=>"", "amount"=>"2000", "currency"=>"usd", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>""}, "commit"=>"Create Plan"}  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.7ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-09-30 23:55:24.811999"], ["updated_at", "2016-09-30 23:55:24.811999"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-30 23:55:24.811999"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/3 Completed 302 Found in 871ms (ActiveRecord: 2.8ms) Started GET "/tang/admin/plans/3" for 127.0.0.1 at 2016-09-30 19:55:25 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"3"} Tang::Plan Load (6.5ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/tang/admin (1.4ms) Completed 200 OK in 23ms (Views: 7.5ms | ActiveRecord: 6.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 19:55:25 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (3.6ms) Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.0ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-09-30 19:55:25 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "statement_descriptor"=>"", "amount"=>"2000", "currency"=>"usd", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>""}, "commit"=>"Create Plan"}  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (1.8ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-09-30 23:55:25.725223"], ["updated_at", "2016-09-30 23:55:25.725223"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-30 23:55:25.725223"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/4 Completed 302 Found in 372ms (ActiveRecord: 2.7ms) Started GET "/tang/admin/plans/4" for 127.0.0.1 at 2016-09-30 19:55:26 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"4"} Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 4]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/tang/admin (0.4ms) Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 19:59:39 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (20.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (28.2ms) Completed 200 OK in 260ms (Views: 235.7ms | ActiveRecord: 0.9ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-09-30 19:59:39 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "statement_descriptor"=>"", "amount"=>"2000", "currency"=>"usd", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>""}, "commit"=>"Create Plan"}  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.7ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-09-30 23:59:39.754128"], ["updated_at", "2016-09-30 23:59:39.754128"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-30 23:59:39.754128"], ["item_id", 5], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/5 Completed 302 Found in 422ms (ActiveRecord: 3.3ms) Started GET "/tang/admin/plans/5" for 127.0.0.1 at 2016-09-30 19:59:40 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"5"} Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 5]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/tang/admin (1.3ms) Completed 200 OK in 14ms (Views: 6.9ms | ActiveRecord: 0.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 19:59:40 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (3.4ms) Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.0ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-09-30 19:59:40 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "statement_descriptor"=>"", "amount"=>"2000", "currency"=>"usd", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>""}, "commit"=>"Create Plan"}  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-09-30 23:59:40.239761"], ["updated_at", "2016-09-30 23:59:40.239761"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-09-30 23:59:40.239761"], ["item_id", 6], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/6 Completed 302 Found in 392ms (ActiveRecord: 1.2ms) Started GET "/tang/admin/plans/6" for 127.0.0.1 at 2016-09-30 19:59:40 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"6"} Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 6]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/tang/admin (0.5ms) Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 20:01:50 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (22.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (29.0ms) Completed 200 OK in 258ms (Views: 232.1ms | ActiveRecord: 1.4ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-09-30 20:01:50 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "statement_descriptor"=>"", "amount"=>"2000", "currency"=>"usd", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>""}, "commit"=>"Create Plan"}  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.6ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-01 00:01:50.414314"], ["updated_at", "2016-10-01 00:01:50.414314"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-01 00:01:50.414314"], ["item_id", 7], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/7 Completed 302 Found in 918ms (ActiveRecord: 3.2ms) Started GET "/tang/admin/plans/7" for 127.0.0.1 at 2016-09-30 20:01:51 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"7"} Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 7]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/tang/admin (1.1ms) Completed 200 OK in 14ms (Views: 5.2ms | ActiveRecord: 0.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 20:01:51 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (3.5ms) Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-09-30 20:01:51 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "statement_descriptor"=>"", "amount"=>"2000", "currency"=>"usd", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>""}, "commit"=>"Create Plan"}  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-01 00:01:51.370051"], ["updated_at", "2016-10-01 00:01:51.370051"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-01 00:01:51.370051"], ["item_id", 8], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/8 Completed 302 Found in 518ms (ActiveRecord: 1.2ms) Started GET "/tang/admin/plans/8" for 127.0.0.1 at 2016-09-30 20:01:51 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"8"} Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 8]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/tang/admin (0.4ms) Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 20:02:36 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (19.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (26.0ms) Completed 200 OK in 259ms (Views: 230.5ms | ActiveRecord: 1.0ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-09-30 20:02:36 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "statement_descriptor"=>"", "amount"=>"2000", "currency"=>"usd", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>""}, "commit"=>"Create Plan"}  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.7ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-01 00:02:36.491140"], ["updated_at", "2016-10-01 00:02:36.491140"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-01 00:02:36.491140"], ["item_id", 9], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/9 Completed 302 Found in 1044ms (ActiveRecord: 3.4ms) Started GET "/tang/admin/plans/9" for 127.0.0.1 at 2016-09-30 20:02:37 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"9"} Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 9]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/tang/admin (1.2ms) Completed 200 OK in 12ms (Views: 5.4ms | ActiveRecord: 0.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 20:02:37 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (3.6ms) Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.0ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-09-30 20:02:37 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "statement_descriptor"=>"", "amount"=>"2000", "currency"=>"usd", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>""}, "commit"=>"Create Plan"}  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (4.6ms) Completed 200 OK in 12ms (Views: 6.2ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 20:04:41 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (19.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (26.7ms) Completed 200 OK in 265ms (Views: 241.9ms | ActiveRecord: 0.9ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-09-30 20:04:41 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "statement_descriptor"=>"", "amount"=>"2000", "currency"=>"usd", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>""}, "commit"=>"Create Plan"}  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.7ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-01 00:04:41.965143"], ["updated_at", "2016-10-01 00:04:41.965143"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-01 00:04:41.965143"], ["item_id", 10], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/10 Completed 302 Found in 853ms (ActiveRecord: 3.5ms) Started GET "/tang/admin/plans/10" for 127.0.0.1 at 2016-09-30 20:04:42 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"10"} Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 10]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/tang/admin (1.5ms) Completed 200 OK in 14ms (Views: 6.9ms | ActiveRecord: 0.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 20:04:42 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (3.7ms) Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-09-30 20:04:42 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "statement_descriptor"=>"", "amount"=>"2000", "currency"=>"usd", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>""}, "commit"=>"Create Plan"}  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (3.6ms) Completed 200 OK in 9ms (Views: 5.0ms | ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 20:05:17 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (22.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (29.0ms) Completed 200 OK in 254ms (Views: 228.4ms | ActiveRecord: 1.1ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-09-30 20:05:17 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "statement_descriptor"=>"", "amount"=>"2000", "currency"=>"usd", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>""}, "commit"=>"Create Plan"}  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.6ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-01 00:05:17.987183"], ["updated_at", "2016-10-01 00:05:17.987183"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-01 00:05:17.987183"], ["item_id", 11], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/11 Completed 302 Found in 851ms (ActiveRecord: 3.4ms) Started GET "/tang/admin/plans/11" for 127.0.0.1 at 2016-09-30 20:05:18 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"11"} Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 11]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/tang/admin (1.3ms) Completed 200 OK in 13ms (Views: 6.9ms | ActiveRecord: 0.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 20:05:18 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (3.4ms) Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-09-30 20:05:18 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "statement_descriptor"=>"", "amount"=>"2000", "currency"=>"usd", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>""}, "commit"=>"Create Plan"}  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (3.6ms) Completed 200 OK in 9ms (Views: 5.0ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (119.6ms) DROP DATABASE IF EXISTS "tang_app_test"  (333.6ms) CREATE DATABASE "tang_app_test" ENCODING = 'unicode' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (14.0ms) CREATE TABLE "tang_cards" ("id" serial primary key, "customer_id" integer, "customer_type" character varying, "stripe_id" character varying, "address_line1" character varying, "address_line1_check" character varying, "address_line2" character varying, "address_city" character varying, "address_country" character varying, "address_state" character varying, "address_zip" character varying, "address_zip_check" character varying, "name" character varying, "brand" character varying, "last4" character varying, "dynamic_last4" character varying, "exp_month" integer, "exp_year" integer, "cvc_check" character varying, "country" character varying, "tokenization_method" character varying, "funding" character varying, "fingerprint" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.2ms) CREATE INDEX "index_tang_cards_on_customer_type_and_customer_id" ON "tang_cards" USING btree ("customer_type", "customer_id")  (3.0ms) CREATE TABLE "tang_coupons" ("id" serial primary key, "stripe_id" character varying, "duration" character varying, "amount_off" integer, "currency" character varying, "duration_in_months" integer, "max_redemptions" integer, "percent_off" integer, "redeem_by" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (8.7ms) CREATE TABLE "tang_plans" ("id" serial primary key, "stripe_id" character varying, "amount" integer, "currency" character varying, "interval" character varying, "interval_count" integer, "name" character varying, "statement_descriptor" character varying, "trial_period_days" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (8.9ms) CREATE TABLE "tang_stripe_webhooks" ("id" serial primary key, "stripe_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.9ms) CREATE TABLE "tang_subscriptions" ("id" serial primary key, "stripe_id" character varying, "customer_id" integer, "customer_type" character varying, "plan_id" integer, "application_fee_percent" decimal, "quantity" integer, "tax_percent" decimal, "trial_end" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_tang_subscriptions_on_customer_type_and_customer_id" ON "tang_subscriptions" USING btree ("customer_type", "customer_id")  (0.7ms) CREATE INDEX "index_tang_subscriptions_on_plan_id" ON "tang_subscriptions" USING btree ("plan_id")  (26.1ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying DEFAULT '' NOT NULL, "encrypted_password" character varying DEFAULT '' NOT NULL, "reset_password_token" character varying, "reset_password_sent_at" timestamp, "remember_created_at" timestamp, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" timestamp, "last_sign_in_at" timestamp, "current_sign_in_ip" inet, "last_sign_in_ip" inet, "confirmation_token" character varying, "confirmed_at" timestamp, "confirmation_sent_at" timestamp, "unconfirmed_email" character varying, "failed_attempts" integer DEFAULT 0 NOT NULL, "unlock_token" character varying, "locked_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "stripe_id" character varying, "account_balance" integer, "business_vat_id" character varying, "currency" character varying, "delinquent" boolean DEFAULT 'f' NOT NULL, "description" character varying, "active_until" timestamp)  (1.0ms) CREATE UNIQUE INDEX "index_users_on_confirmation_token" ON "users" USING btree ("confirmation_token")  (0.8ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" USING btree ("email")  (0.9ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" USING btree ("reset_password_token")  (0.8ms) CREATE UNIQUE INDEX "index_users_on_unlock_token" ON "users" USING btree ("unlock_token")  (2.8ms) CREATE TABLE "versions" ("id" serial primary key, "item_type" character varying NOT NULL, "item_id" integer NOT NULL, "event" character varying NOT NULL, "whodunnit" character varying, "object" text, "created_at" timestamp)   (3.0ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" USING btree ("item_type", "item_id")  (3.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20160929174251')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20160928150425') ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (18.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to DeviseCreateUsers (20160928150425)  (0.1ms) BEGIN  (26.5ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying DEFAULT '' NOT NULL, "encrypted_password" character varying DEFAULT '' NOT NULL, "reset_password_token" character varying, "reset_password_sent_at" timestamp, "remember_created_at" timestamp, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" timestamp, "last_sign_in_at" timestamp, "current_sign_in_ip" inet, "last_sign_in_ip" inet, "confirmation_token" character varying, "confirmed_at" timestamp, "confirmation_sent_at" timestamp, "unconfirmed_email" character varying, "failed_attempts" integer DEFAULT 0 NOT NULL, "unlock_token" character varying, "locked_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")  (0.8ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")  (0.6ms) CREATE UNIQUE INDEX "index_users_on_confirmation_token" ON "users" ("confirmation_token")  (0.7ms) CREATE UNIQUE INDEX "index_users_on_unlock_token" ON "users" ("unlock_token") SQL (11.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160928150425"]]  (11.6ms) COMMIT Migrating to CreateTangPlans (20160928154410)  (5.9ms) BEGIN  (18.4ms) CREATE TABLE "tang_plans" ("id" serial primary key, "stripe_id" character varying, "amount" integer, "currency" character varying, "interval" character varying, "interval_count" integer, "name" character varying, "statement_descriptor" character varying, "trial_period_days" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160928154410"]]  (0.5ms) COMMIT Migrating to CreateVersions (20160928161623)  (6.0ms) BEGIN  (18.3ms) CREATE TABLE "versions" ("id" serial primary key, "item_type" character varying NOT NULL, "item_id" integer NOT NULL, "event" character varying NOT NULL, "whodunnit" character varying, "object" text, "created_at" timestamp)   (0.8ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160928161623"]]  (0.3ms) COMMIT Migrating to CreateTangStripeWebhooks (20160928173328)  (6.1ms) BEGIN  (19.6ms) CREATE TABLE "tang_stripe_webhooks" ("id" serial primary key, "stripe_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160928173328"]]  (0.3ms) COMMIT Migrating to AddCustomerFieldsToUsers (20160929152541)  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "users" ADD "stripe_id" character varying  (0.2ms) ALTER TABLE "users" ADD "account_balance" integer  (0.2ms) ALTER TABLE "users" ADD "business_vat_id" character varying  (0.2ms) ALTER TABLE "users" ADD "currency" character varying  (5.4ms) ALTER TABLE "users" ADD "delinquent" boolean DEFAULT 'f' NOT NULL  (0.2ms) ALTER TABLE "users" ADD "description" character varying  (0.2ms) ALTER TABLE "users" ADD "active_until" timestamp SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160929152541"]]  (2.8ms) COMMIT Migrating to CreateTangCoupons (20160929171450)  (0.1ms) BEGIN  (19.7ms) CREATE TABLE "tang_coupons" ("id" serial primary key, "stripe_id" character varying, "duration" character varying, "amount_off" integer, "currency" character varying, "duration_in_months" integer, "max_redemptions" integer, "percent_off" integer, "redeem_by" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160929171450"]]  (5.2ms) COMMIT Migrating to CreateTangSubscriptions (20160929171640)  (5.8ms) BEGIN  (19.6ms) CREATE TABLE "tang_subscriptions" ("id" serial primary key, "stripe_id" character varying, "customer_id" integer, "customer_type" character varying, "plan_id" integer, "application_fee_percent" decimal, "quantity" integer, "tax_percent" decimal, "trial_end" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_tang_subscriptions_on_customer_type_and_customer_id" ON "tang_subscriptions" ("customer_type", "customer_id")  (0.6ms) CREATE INDEX "index_tang_subscriptions_on_plan_id" ON "tang_subscriptions" ("plan_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160929171640"]]  (0.4ms) COMMIT Migrating to CreateTangCards (20160929174251)  (6.1ms) BEGIN  (19.5ms) CREATE TABLE "tang_cards" ("id" serial primary key, "customer_id" integer, "customer_type" character varying, "stripe_id" character varying, "address_line1" character varying, "address_line1_check" character varying, "address_line2" character varying, "address_city" character varying, "address_country" character varying, "address_state" character varying, "address_zip" character varying, "address_zip_check" character varying, "name" character varying, "brand" character varying, "last4" character varying, "dynamic_last4" character varying, "exp_month" integer, "exp_year" integer, "cvc_check" character varying, "country" character varying, "tokenization_method" character varying, "funding" character varying, "fingerprint" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_tang_cards_on_customer_type_and_customer_id" ON "tang_cards" ("customer_type", "customer_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160929174251"]]  (0.5ms) COMMIT ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.9ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'tang_cards' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (1.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'tang_coupons' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'tang_plans' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'tang_stripe_webhooks' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  (2.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'tang_subscriptions' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (1.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'users' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  (1.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'versions' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 20:35:26 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (28.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (39.2ms) Completed 200 OK in 327ms (Views: 289.7ms | ActiveRecord: 0.9ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-09-30 20:35:26 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"}  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (2.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-01 00:35:26.643742"], ["updated_at", "2016-10-01 00:35:26.643742"]] SQL (12.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-01 00:35:26.643742"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 486ms (ActiveRecord: 17.2ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-09-30 20:35:27 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/tang/admin (8.7ms) Completed 200 OK in 22ms (Views: 13.2ms | ActiveRecord: 0.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 20:35:27 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (3.7ms) Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.0ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-09-30 20:35:27 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"}  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (3.6ms) Completed 200 OK in 9ms (Views: 4.9ms | ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 20:38:09 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (29.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (38.2ms) Completed 200 OK in 325ms (Views: 297.7ms | ActiveRecord: 1.1ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-09-30 20:38:09 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"}  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.7ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-01 00:38:09.662982"], ["updated_at", "2016-10-01 00:38:09.662982"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-01 00:38:09.662982"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/2 Completed 302 Found in 871ms (ActiveRecord: 3.2ms) Started GET "/tang/admin/plans/2" for 127.0.0.1 at 2016-09-30 20:38:10 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"2"} Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/tang/admin (10.5ms) Completed 200 OK in 30ms (Views: 16.6ms | ActiveRecord: 0.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 20:38:10 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (10.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (11.3ms) Completed 200 OK in 15ms (Views: 14.3ms | ActiveRecord: 0.0ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-09-30 20:38:10 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"}  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (5.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (6.0ms) Completed 200 OK in 12ms (Views: 7.8ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (0.5ms) Completed 200 OK in 36ms (Views: 18.6ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (6.4ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (2.2ms) SELECT COUNT(*) FROM "tang_subscriptions"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 13ms (Views: 13.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.6ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe1' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (0.4ms) Completed 200 OK in 33ms (Views: 18.5ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by Tang::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/coupons/new.html.erb within layouts/tang/application (0.5ms) Completed 200 OK in 24ms (Views: 16.6ms | ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by Tang::CustomersController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/customers/new.html.erb within layouts/tang/application (0.4ms) Completed 200 OK in 32ms (Views: 15.9ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by Tang::SubscriptionsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Completed 401 Unauthorized in 8ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_subscriptions"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.5ms) Completed 200 OK in 15ms (Views: 14.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.6ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe1' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (0.4ms) Completed 200 OK in 34ms (Views: 19.6ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/coupons/new.html.erb within layouts/tang/application (0.4ms) Completed 200 OK in 25ms (Views: 16.1ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::CustomersController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/customers/new.html.erb within layouts/tang/application (0.4ms) Completed 200 OK in 28ms (Views: 12.7ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::SubscriptionsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Completed 401 Unauthorized in 6ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_subscriptions"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 11ms (Views: 10.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe1' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (0.5ms) Completed 200 OK in 36ms (Views: 22.1ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/coupons/new.html.erb within layouts/tang/application (0.4ms) Completed 200 OK in 27ms (Views: 18.6ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::CustomersController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/customers/new.html.erb within layouts/tang/application (0.3ms) Completed 200 OK in 26ms (Views: 11.2ms | ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (18.9ms) SELECT COUNT(*) FROM "users"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::SubscriptionsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Completed 401 Unauthorized in 5ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_subscriptions"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 13ms (Views: 12.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe1' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (0.4ms) Completed 200 OK in 38ms (Views: 21.2ms | ActiveRecord: 2.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/coupons/new.html.erb within layouts/tang/application (0.4ms) Completed 200 OK in 26ms (Views: 17.8ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::CustomersController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/customers/new.html.erb within layouts/tang/application (0.4ms) Completed 200 OK in 30ms (Views: 14.6ms | ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.5ms) Completed 200 OK in 11ms (Views: 10.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe1' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (0.4ms) Completed 200 OK in 33ms (Views: 18.5ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN Processing by Tang::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/coupons/new.html.erb within layouts/tang/application (0.4ms) Completed 200 OK in 24ms (Views: 16.3ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by Tang::CustomersController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/customers/new.html.erb within layouts/tang/application (0.4ms) Completed 200 OK in 30ms (Views: 12.8ms | ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'bb84ac80-5d62-42f1-bb21-957bb3212d83' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'bb84ac80-5d62-42f1-bb21-957bb3212d83' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'bb84ac80-5d62-42f1-bb21-957bb3212d83' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'bb84ac80-5d62-42f1-bb21-957bb3212d83' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'bb84ac80-5d62-42f1-bb21-957bb3212d83' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'bb84ac80-5d62-42f1-bb21-957bb3212d83' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'bb84ac80-5d62-42f1-bb21-957bb3212d83' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'bb84ac80-5d62-42f1-bb21-957bb3212d83' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'bb84ac80-5d62-42f1-bb21-957bb3212d83' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'bb84ac80-5d62-42f1-bb21-957bb3212d83' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'bb84ac80-5d62-42f1-bb21-957bb3212d83' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'bb84ac80-5d62-42f1-bb21-957bb3212d83' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'bb84ac80-5d62-42f1-bb21-957bb3212d83' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'bb84ac80-5d62-42f1-bb21-957bb3212d83' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'bb84ac80-5d62-42f1-bb21-957bb3212d83' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'bb84ac80-5d62-42f1-bb21-957bb3212d83' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 11ms (Views: 10.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe1' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (0.4ms) Completed 200 OK in 32ms (Views: 17.8ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/coupons/new.html.erb within layouts/tang/application (0.5ms) Completed 200 OK in 25ms (Views: 17.0ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::CustomersController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/customers/new.html.erb within layouts/tang/application (0.4ms) Completed 200 OK in 28ms (Views: 11.7ms | ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '7ef9cebc-b9af-4679-94eb-424f8901fdb9' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '7ef9cebc-b9af-4679-94eb-424f8901fdb9' LIMIT 1 SQL (1.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$G0ODm7aN50Gn17XOlGIsa.CEeRnQTZqw/kG9girvdjUbHYU22X8Iq"], ["stripe_id", "cus_9ICC1nMcZRCbzL"], ["created_at", "2016-10-01 00:57:01.395346"], ["updated_at", "2016-10-01 00:57:01.395346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '7ef9cebc-b9af-4679-94eb-424f8901fdb9' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '7ef9cebc-b9af-4679-94eb-424f8901fdb9' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$XfNjj/AOkmgtOfO3Hgzf0OpAxQmhe0AckJS74cy98QJhyvBgViiJy"], ["stripe_id", "cus_9ICCQCoDta4WmV"], ["created_at", "2016-10-01 00:57:01.969708"], ["updated_at", "2016-10-01 00:57:01.969708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '7ef9cebc-b9af-4679-94eb-424f8901fdb9' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '7ef9cebc-b9af-4679-94eb-424f8901fdb9' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$zC2I0221oKojl8x0L3zNM.Ewb5dgP6TV20g3e/tovrlUsl4EtbFwi"], ["stripe_id", "cus_9ICC16ay2QBsf3"], ["created_at", "2016-10-01 00:57:02.372571"], ["updated_at", "2016-10-01 00:57:02.372571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::SubscriptionsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/subscriptions/new.html.erb within layouts/tang/application (1.0ms) Completed 200 OK in 33ms (Views: 13.4ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '7ef9cebc-b9af-4679-94eb-424f8901fdb9' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '7ef9cebc-b9af-4679-94eb-424f8901fdb9' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$AUxecEyUKRa3iLH0sTEOnOFGEuxe7eFM2NblXcOxyNUnAn7/84jJ."], ["stripe_id", "cus_9ICCOFKFOLsrPl"], ["created_at", "2016-10-01 00:57:02.805065"], ["updated_at", "2016-10-01 00:57:02.805065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '7ef9cebc-b9af-4679-94eb-424f8901fdb9' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '7ef9cebc-b9af-4679-94eb-424f8901fdb9' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$JwBvWt79VR/blZZSvvrMeO5pL7UdYwvl0v1IQWc9QVlZnSGpRLvIO"], ["stripe_id", "cus_9ICCZuokxBgHjn"], ["created_at", "2016-10-01 00:57:03.277913"], ["updated_at", "2016-10-01 00:57:03.277913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "tang_subscriptions"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '7ef9cebc-b9af-4679-94eb-424f8901fdb9' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '7ef9cebc-b9af-4679-94eb-424f8901fdb9' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$KLE8tvASGvQufm60N9dpFebveUi7YQA3CnctCKLq4PE3pTGI84H96"], ["stripe_id", "cus_9ICCxfMVXqMkmv"], ["created_at", "2016-10-01 00:57:03.655505"], ["updated_at", "2016-10-01 00:57:03.655505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '7ef9cebc-b9af-4679-94eb-424f8901fdb9' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '7ef9cebc-b9af-4679-94eb-424f8901fdb9' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$JwhpzV0oyLyO5Gf2SxHrXeEkyVNUmyXqmROAz7dArheMduj0UBlam"], ["stripe_id", "cus_9ICCm0SRgAvHqF"], ["created_at", "2016-10-01 00:57:04.033024"], ["updated_at", "2016-10-01 00:57:04.033024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '7ef9cebc-b9af-4679-94eb-424f8901fdb9' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '7ef9cebc-b9af-4679-94eb-424f8901fdb9' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$QtKf5HeXOqzntYtf7mHbcOtUTDjPNn45GxzXxHrR5BaC3.sagLNTu"], ["stripe_id", "cus_9ICCZnbZYeeaPr"], ["created_at", "2016-10-01 00:57:04.433489"], ["updated_at", "2016-10-01 00:57:04.433489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '7ef9cebc-b9af-4679-94eb-424f8901fdb9' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '7ef9cebc-b9af-4679-94eb-424f8901fdb9' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$rXzjXIhifm2j8og6QZhLDetvziI1mIbE0hxmyzpIsUK1yoj6dKZ5u"], ["stripe_id", "cus_9ICCModSQjfkg6"], ["created_at", "2016-10-01 00:57:04.817705"], ["updated_at", "2016-10-01 00:57:04.817705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '7ef9cebc-b9af-4679-94eb-424f8901fdb9' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '7ef9cebc-b9af-4679-94eb-424f8901fdb9' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$LNvH8HC2Qu9P/9JsFE2kPevM2K3EbFM9WvHB9XFLp9aT2YZ5P96Pa"], ["stripe_id", "cus_9ICCPp5qi561To"], ["created_at", "2016-10-01 00:57:05.217448"], ["updated_at", "2016-10-01 00:57:05.217448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '7ef9cebc-b9af-4679-94eb-424f8901fdb9' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '7ef9cebc-b9af-4679-94eb-424f8901fdb9' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$/VHdWBh7lmEQ0JsmRFSJHe1.G04MXW/hYZfcwBvtyGzCuU1AWhSta"], ["stripe_id", "cus_9ICCLwJUXVzrNE"], ["created_at", "2016-10-01 00:57:05.607307"], ["updated_at", "2016-10-01 00:57:05.607307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '7ef9cebc-b9af-4679-94eb-424f8901fdb9' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '7ef9cebc-b9af-4679-94eb-424f8901fdb9' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$sMcbWsz3ZrnJOxPFaW93HeNVZ.2vlr/68qVL9fELRLpC3T3gg8rmy"], ["stripe_id", "cus_9ICCzBnqclbIVz"], ["created_at", "2016-10-01 00:57:05.993236"], ["updated_at", "2016-10-01 00:57:05.993236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '7ef9cebc-b9af-4679-94eb-424f8901fdb9' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '7ef9cebc-b9af-4679-94eb-424f8901fdb9' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$WfYj5RTN5knWQaA.iYd5D.kKFBbHui7XC5t3sHr1nEYPGfHSEu98K"], ["stripe_id", "cus_9ICCEH7gnxjHQ4"], ["created_at", "2016-10-01 00:57:06.394726"], ["updated_at", "2016-10-01 00:57:06.394726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '7ef9cebc-b9af-4679-94eb-424f8901fdb9' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '7ef9cebc-b9af-4679-94eb-424f8901fdb9' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$OV3Yvsmhq0Z.iu4Ye8bzNeC6AOzk.KGj55A93WWNsTI2kUqMU3hVe"], ["stripe_id", "cus_9ICCCYmMFpawbZ"], ["created_at", "2016-10-01 00:57:06.790582"], ["updated_at", "2016-10-01 00:57:06.790582"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '7ef9cebc-b9af-4679-94eb-424f8901fdb9' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '7ef9cebc-b9af-4679-94eb-424f8901fdb9' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$JahxkvSFavHDK6HhF/M5we5HYPRZP8P4nTzeslIL9yyqy9XJfvELq"], ["stripe_id", "cus_9ICCcoj0LYprhq"], ["created_at", "2016-10-01 00:57:07.182679"], ["updated_at", "2016-10-01 00:57:07.182679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '7ef9cebc-b9af-4679-94eb-424f8901fdb9' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '7ef9cebc-b9af-4679-94eb-424f8901fdb9' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$qyeRnrjUFVF4E9H1DatpIuZLoSbSxzMRP1Kd72C01qdP8iB4PGITO"], ["stripe_id", "cus_9ICCHQ8SrPYs0W"], ["created_at", "2016-10-01 00:57:07.583937"], ["updated_at", "2016-10-01 00:57:07.583937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.5ms) Completed 200 OK in 12ms (Views: 11.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe1' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (0.4ms) Completed 200 OK in 35ms (Views: 20.4ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/coupons/new.html.erb within layouts/tang/application (0.5ms) Completed 200 OK in 29ms (Views: 19.8ms | ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::CustomersController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/customers/new.html.erb within layouts/tang/application (0.4ms) Completed 200 OK in 31ms (Views: 11.6ms | ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (7.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2082aafc-b08a-40ee-b571-3488bcd76e9a' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2082aafc-b08a-40ee-b571-3488bcd76e9a' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$LS5JENfJg2FXynVdlaG/6emdp/vLpCLDffJLVA.kDFI6nb8cAUMBi"], ["stripe_id", "cus_9ICERCEN7U6wg1"], ["created_at", "2016-10-01 00:58:39.070871"], ["updated_at", "2016-10-01 00:58:39.070871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2082aafc-b08a-40ee-b571-3488bcd76e9a' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2082aafc-b08a-40ee-b571-3488bcd76e9a' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$yRngpk39UZOHUySfHbsVyOIZ9OJcCGBWnMu.3BdjzCGhGDqu27SFa"], ["stripe_id", "cus_9ICEDm80r6pga9"], ["created_at", "2016-10-01 00:58:39.964216"], ["updated_at", "2016-10-01 00:58:39.964216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2082aafc-b08a-40ee-b571-3488bcd76e9a' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2082aafc-b08a-40ee-b571-3488bcd76e9a' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$eRz4vg.3CjJOxT5sm3t2Fu6kPxQm.iyisJYGm8/C7U4nxzO7O2REu"], ["stripe_id", "cus_9ICEjoP6aKtjkp"], ["created_at", "2016-10-01 00:58:40.345519"], ["updated_at", "2016-10-01 00:58:40.345519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::SubscriptionsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 19]] Rendered /Users/craigphares/Development/tang/app/views/tang/subscriptions/new.html.erb within layouts/tang/application (0.5ms) Completed 200 OK in 35ms (Views: 12.1ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2082aafc-b08a-40ee-b571-3488bcd76e9a' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2082aafc-b08a-40ee-b571-3488bcd76e9a' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$dXVzu088wwHCi1WqKyp/v.IzQyNQ/M5W9fcYugPXXX/u409f/Bhrm"], ["stripe_id", "cus_9ICECY4ZNws0qP"], ["created_at", "2016-10-01 00:58:40.832126"], ["updated_at", "2016-10-01 00:58:40.832126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2082aafc-b08a-40ee-b571-3488bcd76e9a' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2082aafc-b08a-40ee-b571-3488bcd76e9a' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$LnD0N17E1T8uXev44D0NgepFgsffgt1TxGyFeFqx6d8sgW/sn2zlC"], ["stripe_id", "cus_9ICEMT7KNu1qVA"], ["created_at", "2016-10-01 00:58:41.207664"], ["updated_at", "2016-10-01 00:58:41.207664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "tang_subscriptions"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2082aafc-b08a-40ee-b571-3488bcd76e9a' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2082aafc-b08a-40ee-b571-3488bcd76e9a' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$Vybn4uzWc26cuLu6xk37zeHw.3I1xumDRVB0hLnICLtAgkKyM/QI2"], ["stripe_id", "cus_9ICEqnUVmc6k95"], ["created_at", "2016-10-01 00:58:41.597607"], ["updated_at", "2016-10-01 00:58:41.597607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2082aafc-b08a-40ee-b571-3488bcd76e9a' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2082aafc-b08a-40ee-b571-3488bcd76e9a' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$xA6tTcmmgzJs0f1ppjR6be2ngA4ixBzCMxFpG9uhxAezUwm7SXSSS"], ["stripe_id", "cus_9ICEK6637lumJd"], ["created_at", "2016-10-01 00:58:41.994785"], ["updated_at", "2016-10-01 00:58:41.994785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2082aafc-b08a-40ee-b571-3488bcd76e9a' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2082aafc-b08a-40ee-b571-3488bcd76e9a' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$A15TCKmKNhZNdLa1SdcKl.7v44XRc0FUbdvlXxxwjAGKKrHkTUHmm"], ["stripe_id", "cus_9ICEzJ0akg65pu"], ["created_at", "2016-10-01 00:58:42.383932"], ["updated_at", "2016-10-01 00:58:42.383932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2082aafc-b08a-40ee-b571-3488bcd76e9a' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2082aafc-b08a-40ee-b571-3488bcd76e9a' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$dhCag7fAk4mBPDwUqRZsFufpxUZfUmf56WYPnjUcbYzNBMZBZjgnq"], ["stripe_id", "cus_9ICEftv7SSi1MC"], ["created_at", "2016-10-01 00:58:42.766755"], ["updated_at", "2016-10-01 00:58:42.766755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2082aafc-b08a-40ee-b571-3488bcd76e9a' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2082aafc-b08a-40ee-b571-3488bcd76e9a' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$7bVipvjrjjOPZ7NzmJBQCuF5ugY21DJ4dwBlp/4nJM3OjSNZJdjd2"], ["stripe_id", "cus_9ICETjNlvI7BTI"], ["created_at", "2016-10-01 00:58:43.165048"], ["updated_at", "2016-10-01 00:58:43.165048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2082aafc-b08a-40ee-b571-3488bcd76e9a' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2082aafc-b08a-40ee-b571-3488bcd76e9a' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$ap3gCLHZj7qVJVOyDs5sK.QYSrfBJjgyCGKAwgXn39u164d5Tc.5u"], ["stripe_id", "cus_9ICEaO0ssvw0U1"], ["created_at", "2016-10-01 00:58:43.548782"], ["updated_at", "2016-10-01 00:58:43.548782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2082aafc-b08a-40ee-b571-3488bcd76e9a' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2082aafc-b08a-40ee-b571-3488bcd76e9a' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$TjPL7jWkY5pxcGsfAoDcNugyEp09PN4sXo1t2g6zPaoyLBJ09G8rO"], ["stripe_id", "cus_9ICEMGh3SxK0n2"], ["created_at", "2016-10-01 00:58:43.937845"], ["updated_at", "2016-10-01 00:58:43.937845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2082aafc-b08a-40ee-b571-3488bcd76e9a' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2082aafc-b08a-40ee-b571-3488bcd76e9a' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$HJef20KdSiXWKUqu.IR/seDpqUcO/58tZxFTpVBEvyl3SShC3ybjy"], ["stripe_id", "cus_9ICEbc5JipLkkg"], ["created_at", "2016-10-01 00:58:44.423326"], ["updated_at", "2016-10-01 00:58:44.423326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2082aafc-b08a-40ee-b571-3488bcd76e9a' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2082aafc-b08a-40ee-b571-3488bcd76e9a' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$I1NgixIi8wIM6jxf1zFO8OEzy2.6sRDeGlXnBHQ25RXaisWyx5Qqu"], ["stripe_id", "cus_9ICEPzwdQIHuyx"], ["created_at", "2016-10-01 00:58:44.806451"], ["updated_at", "2016-10-01 00:58:44.806451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2082aafc-b08a-40ee-b571-3488bcd76e9a' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2082aafc-b08a-40ee-b571-3488bcd76e9a' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$ky8ms6RzinTAjttWC8cFfeAencTynz9KCcHYze/N9CLliSf/y0Nv2"], ["stripe_id", "cus_9ICEn7sgjuaJzU"], ["created_at", "2016-10-01 00:58:45.185968"], ["updated_at", "2016-10-01 00:58:45.185968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2082aafc-b08a-40ee-b571-3488bcd76e9a' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2082aafc-b08a-40ee-b571-3488bcd76e9a' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$LlmPYYrSH2IdEjxNouvlrOTJC.JNs/ZE0NWQ30p9Q0yV1uvGdd.fS"], ["stripe_id", "cus_9ICEwssBsVxTuD"], ["created_at", "2016-10-01 00:58:45.564222"], ["updated_at", "2016-10-01 00:58:45.564222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.8ms) Completed 200 OK in 14ms (Views: 13.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe1' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (0.4ms) Completed 200 OK in 34ms (Views: 18.8ms | ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/coupons/new.html.erb within layouts/tang/application (0.4ms) Completed 200 OK in 27ms (Views: 18.0ms | ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by Tang::CustomersController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/customers/new.html.erb within layouts/tang/application (0.4ms) Completed 200 OK in 31ms (Views: 12.7ms | ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '27fa71ec-1193-4c66-aa43-06d7270dc962' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '27fa71ec-1193-4c66-aa43-06d7270dc962' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$v0EBDPREt9P46ZFLF3Pq4uIH01oCDmOQNr4QJx1SZFt5PsaVHYoY2"], ["stripe_id", "cus_9ICGDblgeDdC8H"], ["created_at", "2016-10-01 01:01:02.283413"], ["updated_at", "2016-10-01 01:01:02.283413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '27fa71ec-1193-4c66-aa43-06d7270dc962' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '27fa71ec-1193-4c66-aa43-06d7270dc962' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$QnxdycQue0CBVFWODNkvlO7/xOd0jdb77sXDUCmW76/Mrvjz4grcq"], ["stripe_id", "cus_9ICGXAOjh9b4GQ"], ["created_at", "2016-10-01 01:01:02.731386"], ["updated_at", "2016-10-01 01:01:02.731386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '27fa71ec-1193-4c66-aa43-06d7270dc962' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '27fa71ec-1193-4c66-aa43-06d7270dc962' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$bvovF2yL9gwINBlSUHzWG.7XE1rBg1HXlGHXx09CAkbrSqOtbFhdq"], ["stripe_id", "cus_9ICGnK0iVYcB07"], ["created_at", "2016-10-01 01:01:03.154319"], ["updated_at", "2016-10-01 01:01:03.154319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::SubscriptionsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]] Rendered /Users/craigphares/Development/tang/app/views/tang/subscriptions/new.html.erb within layouts/tang/application (0.5ms) Completed 200 OK in 33ms (Views: 11.9ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '27fa71ec-1193-4c66-aa43-06d7270dc962' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '27fa71ec-1193-4c66-aa43-06d7270dc962' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$We.hCTI3fjpLXz00mHA9xuJOfVtw.xz7paBNRsu0ItHD9PTi/91km"], ["stripe_id", "cus_9ICGz7fgwzIjpk"], ["created_at", "2016-10-01 01:01:03.611807"], ["updated_at", "2016-10-01 01:01:03.611807"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '27fa71ec-1193-4c66-aa43-06d7270dc962' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '27fa71ec-1193-4c66-aa43-06d7270dc962' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$TWJBht9Z7NpsMmtPltHKnO2H18f/a/vgIDgTy0LlMmOQTJ.0kTT/C"], ["stripe_id", "cus_9ICGT3LfqePCDO"], ["created_at", "2016-10-01 01:01:04.027818"], ["updated_at", "2016-10-01 01:01:04.027818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "tang_subscriptions"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '27fa71ec-1193-4c66-aa43-06d7270dc962' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '27fa71ec-1193-4c66-aa43-06d7270dc962' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$JF6ykz6akLImVI4hEzE6P.VCYU6QcUgDh8opaS5SdRfvsOZR.DbH2"], ["stripe_id", "cus_9ICGLaf4ZtYsux"], ["created_at", "2016-10-01 01:01:04.419410"], ["updated_at", "2016-10-01 01:01:04.419410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '27fa71ec-1193-4c66-aa43-06d7270dc962' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '27fa71ec-1193-4c66-aa43-06d7270dc962' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$mztcX9kSf47E3gC98iOltOV.LsVn0F.sTtY20WwOspxG91zV/zfLm"], ["stripe_id", "cus_9ICG4WJ1Y9DniU"], ["created_at", "2016-10-01 01:01:04.900180"], ["updated_at", "2016-10-01 01:01:04.900180"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '27fa71ec-1193-4c66-aa43-06d7270dc962' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '27fa71ec-1193-4c66-aa43-06d7270dc962' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$axwnn9T8Wts1XIdjRTmlcO9V2UCnkj3Ydd0ZLWarhcI1a3wCFVU0u"], ["stripe_id", "cus_9ICGL4pJ7nsh1V"], ["created_at", "2016-10-01 01:01:05.570327"], ["updated_at", "2016-10-01 01:01:05.570327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '27fa71ec-1193-4c66-aa43-06d7270dc962' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '27fa71ec-1193-4c66-aa43-06d7270dc962' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$g7J7pvTqKYSPkPCu47.I9utXwhdDivLTud0VB63YDqQIz.jRYxn4S"], ["stripe_id", "cus_9ICGdksk9Iyutw"], ["created_at", "2016-10-01 01:01:05.977324"], ["updated_at", "2016-10-01 01:01:05.977324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '27fa71ec-1193-4c66-aa43-06d7270dc962' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '27fa71ec-1193-4c66-aa43-06d7270dc962' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$SzMtCkjpYBvAvzYZHHQ33udAn1VEp0OcvedZKj9giBveQlavLkbVS"], ["stripe_id", "cus_9ICGte3MK2nOwZ"], ["created_at", "2016-10-01 01:01:06.364035"], ["updated_at", "2016-10-01 01:01:06.364035"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '27fa71ec-1193-4c66-aa43-06d7270dc962' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '27fa71ec-1193-4c66-aa43-06d7270dc962' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$Rp3O6aVrv81ITSbSY2wPq.1kwyIvVLHmvKBTWBiENdIl5hoivPqYa"], ["stripe_id", "cus_9ICGyXjtJKoq67"], ["created_at", "2016-10-01 01:01:06.737381"], ["updated_at", "2016-10-01 01:01:06.737381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '27fa71ec-1193-4c66-aa43-06d7270dc962' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '27fa71ec-1193-4c66-aa43-06d7270dc962' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$zil8wUKvz0NMknpq.Lx7cOR/xQTwp0sq7l0A.8Ak.v3jgIZGla7dy"], ["stripe_id", "cus_9ICGAlPnNuVjVu"], ["created_at", "2016-10-01 01:01:07.131515"], ["updated_at", "2016-10-01 01:01:07.131515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '27fa71ec-1193-4c66-aa43-06d7270dc962' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '27fa71ec-1193-4c66-aa43-06d7270dc962' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$LUNgCstolU2jppZEptaO4uAs.8atnom9kworfCLBO1CE0RZICsUw."], ["stripe_id", "cus_9ICGxwxSsWZ7nH"], ["created_at", "2016-10-01 01:01:07.514314"], ["updated_at", "2016-10-01 01:01:07.514314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '27fa71ec-1193-4c66-aa43-06d7270dc962' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '27fa71ec-1193-4c66-aa43-06d7270dc962' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$zexbB3ZHZyJZCiV.WuxXH.odzAROAAc4ov2bP.62CL98dj5.AWDba"], ["stripe_id", "cus_9ICGboYAEU8FNS"], ["created_at", "2016-10-01 01:01:07.954265"], ["updated_at", "2016-10-01 01:01:07.954265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '27fa71ec-1193-4c66-aa43-06d7270dc962' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '27fa71ec-1193-4c66-aa43-06d7270dc962' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$ZO86ULuGr9NEqixlc/XAsevoKCPd6.IXShUOx5lbKLCXCcjIk1Aze"], ["stripe_id", "cus_9ICGpt6Ab3KJCN"], ["created_at", "2016-10-01 01:01:08.466187"], ["updated_at", "2016-10-01 01:01:08.466187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '27fa71ec-1193-4c66-aa43-06d7270dc962' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '27fa71ec-1193-4c66-aa43-06d7270dc962' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$xxcaeuuiMOsn8sQCVzTqNOzNVX3zBMqeBP/AzGqKcjO5rpIvLZCQ2"], ["stripe_id", "cus_9ICGKryAoQMQqV"], ["created_at", "2016-10-01 01:01:08.907106"], ["updated_at", "2016-10-01 01:01:08.907106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.6ms) Completed 200 OK in 11ms (Views: 10.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe1' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (0.4ms) Completed 200 OK in 33ms (Views: 19.5ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/coupons/new.html.erb within layouts/tang/application (0.4ms) Completed 200 OK in 28ms (Views: 18.5ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::CustomersController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/customers/new.html.erb within layouts/tang/application (0.4ms) Completed 200 OK in 33ms (Views: 13.8ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (7.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a2ded5cd-47b5-43df-886f-0f999f1a1fbf' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a2ded5cd-47b5-43df-886f-0f999f1a1fbf' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$CLWggzNLVnGW46fFTQWmmOaE5ss6m0onINZ3ASQrM281XLUfWI9Xy"], ["stripe_id", "cus_9ICH5tc9TLoyqK"], ["created_at", "2016-10-01 01:02:11.053171"], ["updated_at", "2016-10-01 01:02:11.053171"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a2ded5cd-47b5-43df-886f-0f999f1a1fbf' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a2ded5cd-47b5-43df-886f-0f999f1a1fbf' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$i7INs7CDL7j6yEyMW7hbve4lADizfkWg7MinuQj9Laxzm8LUXkg52"], ["stripe_id", "cus_9ICH2OflVBFlRq"], ["created_at", "2016-10-01 01:02:12.011709"], ["updated_at", "2016-10-01 01:02:12.011709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a2ded5cd-47b5-43df-886f-0f999f1a1fbf' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a2ded5cd-47b5-43df-886f-0f999f1a1fbf' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$Z2iesZbnKAyBWffIRxrm2uzsquZwuiQsly3YV./Q5vfPBKEpQzemW"], ["stripe_id", "cus_9ICHpvhzmOlxKy"], ["created_at", "2016-10-01 01:02:12.394560"], ["updated_at", "2016-10-01 01:02:12.394560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::SubscriptionsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 51]] Rendered /Users/craigphares/Development/tang/app/views/tang/subscriptions/new.html.erb within layouts/tang/application (0.5ms) Completed 200 OK in 35ms (Views: 12.0ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a2ded5cd-47b5-43df-886f-0f999f1a1fbf' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a2ded5cd-47b5-43df-886f-0f999f1a1fbf' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$r5N5uzB7Xk6SZA4wcm.h/.8BU.g.u6c6snzHgX5p2.D1FfpYxrG4u"], ["stripe_id", "cus_9ICHYkstHw0I6S"], ["created_at", "2016-10-01 01:02:12.913951"], ["updated_at", "2016-10-01 01:02:12.913951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a2ded5cd-47b5-43df-886f-0f999f1a1fbf' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a2ded5cd-47b5-43df-886f-0f999f1a1fbf' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$mo6EC01AClRWQrMW5Ljn9.BfSiJ57FBZHaSv.SbXrezyAB87OIEce"], ["stripe_id", "cus_9ICHz2yLvaHYb2"], ["created_at", "2016-10-01 01:02:13.296693"], ["updated_at", "2016-10-01 01:02:13.296693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "tang_subscriptions"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a2ded5cd-47b5-43df-886f-0f999f1a1fbf' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a2ded5cd-47b5-43df-886f-0f999f1a1fbf' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$zSuW4cgS2aiqhWC3FikEPeEvaogEPxAc5qAI/nNtFe4GZQpjj3Yey"], ["stripe_id", "cus_9ICH0EtG8NgPVe"], ["created_at", "2016-10-01 01:02:13.812091"], ["updated_at", "2016-10-01 01:02:13.812091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a2ded5cd-47b5-43df-886f-0f999f1a1fbf' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a2ded5cd-47b5-43df-886f-0f999f1a1fbf' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$9t5/szK2mTo2eqsphi/rWesMdQX.XJCzJ0JSbK8isPycgNRJ9MVSW"], ["stripe_id", "cus_9ICHkR4WOuWljJ"], ["created_at", "2016-10-01 01:02:14.204904"], ["updated_at", "2016-10-01 01:02:14.204904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a2ded5cd-47b5-43df-886f-0f999f1a1fbf' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a2ded5cd-47b5-43df-886f-0f999f1a1fbf' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$HOoqAcyTrC71bI5mj43TwuMeBug3XBcCxfoxXRzbvVcmUjBqjx2Bi"], ["stripe_id", "cus_9ICHIqZ4KrrvAy"], ["created_at", "2016-10-01 01:02:14.596788"], ["updated_at", "2016-10-01 01:02:14.596788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a2ded5cd-47b5-43df-886f-0f999f1a1fbf' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a2ded5cd-47b5-43df-886f-0f999f1a1fbf' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$WyfzKlITDUEf.vwHamQkhe1d72q1HkmXH5ztMlTJB1.4gy0DwqOeG"], ["stripe_id", "cus_9ICHMfK9NoP3H7"], ["created_at", "2016-10-01 01:02:15.073658"], ["updated_at", "2016-10-01 01:02:15.073658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a2ded5cd-47b5-43df-886f-0f999f1a1fbf' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a2ded5cd-47b5-43df-886f-0f999f1a1fbf' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$S4/qnT0e7mJf1wIeUY1zB.MUivaVW8BMaG4c.4E.J3L16Ib8b.z0S"], ["stripe_id", "cus_9ICHjmhIgz5bxq"], ["created_at", "2016-10-01 01:02:15.610139"], ["updated_at", "2016-10-01 01:02:15.610139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a2ded5cd-47b5-43df-886f-0f999f1a1fbf' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a2ded5cd-47b5-43df-886f-0f999f1a1fbf' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$1zdryg8ieLJ0K0oGEzQgde8iv3s.fgtQpabXGkrPIHE.eAmpp7GO2"], ["stripe_id", "cus_9ICHM7Vp6Hpmtf"], ["created_at", "2016-10-01 01:02:16.015410"], ["updated_at", "2016-10-01 01:02:16.015410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a2ded5cd-47b5-43df-886f-0f999f1a1fbf' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a2ded5cd-47b5-43df-886f-0f999f1a1fbf' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$FvCs6Yit22QCH6e3PuhLKeuqoZIwxlTZy0qLZqbBAXv7cpb4nCpIm"], ["stripe_id", "cus_9ICHZYMDULFdgl"], ["created_at", "2016-10-01 01:02:16.395091"], ["updated_at", "2016-10-01 01:02:16.395091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a2ded5cd-47b5-43df-886f-0f999f1a1fbf' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a2ded5cd-47b5-43df-886f-0f999f1a1fbf' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$x6xdFFaHiSV6F4T1yJWfvOc/saO548elxMsVUPKCiL2tCXKu4Eec."], ["stripe_id", "cus_9ICHWKPkrq2hm8"], ["created_at", "2016-10-01 01:02:16.852412"], ["updated_at", "2016-10-01 01:02:16.852412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a2ded5cd-47b5-43df-886f-0f999f1a1fbf' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a2ded5cd-47b5-43df-886f-0f999f1a1fbf' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$bTw5KyooxNk/sYfwgf7I3.6a5ThtDUTPHZ7CKlqPzuQg7CoRIFb1a"], ["stripe_id", "cus_9ICHacedzmy180"], ["created_at", "2016-10-01 01:02:17.366272"], ["updated_at", "2016-10-01 01:02:17.366272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a2ded5cd-47b5-43df-886f-0f999f1a1fbf' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a2ded5cd-47b5-43df-886f-0f999f1a1fbf' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$k.bke1xNmBjTKXY6ThMPpey1pK8xZRU6rH.iFxzaYvc67MHqtjDpq"], ["stripe_id", "cus_9ICHlmZ8l3G7eR"], ["created_at", "2016-10-01 01:02:17.827405"], ["updated_at", "2016-10-01 01:02:17.827405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a2ded5cd-47b5-43df-886f-0f999f1a1fbf' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a2ded5cd-47b5-43df-886f-0f999f1a1fbf' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$Ln4lR9moYoO9Zk0CHvp57uTZzgxSq8M6Z90lZDNVVLgHrziPtAn/a"], ["stripe_id", "cus_9ICHBDlPGaYlLK"], ["created_at", "2016-10-01 01:02:18.393169"], ["updated_at", "2016-10-01 01:02:18.393169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 11ms (Views: 10.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe1' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (0.4ms) Completed 200 OK in 36ms (Views: 21.5ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/coupons/new.html.erb within layouts/tang/application (0.6ms) Completed 200 OK in 25ms (Views: 17.1ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by Tang::CustomersController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/customers/new.html.erb within layouts/tang/application (0.5ms) Completed 200 OK in 28ms (Views: 13.1ms | ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'dce104dd-3979-4102-901b-341478aec076' LIMIT 1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'dce104dd-3979-4102-901b-341478aec076' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$m.8ICJNDvzsPSvbouWliiOVBgoufm8s3VLaGtVTZg0t2dAbqRLcCS"], ["stripe_id", "cus_9ICJH8BENO3PHq"], ["created_at", "2016-10-01 01:03:38.812435"], ["updated_at", "2016-10-01 01:03:38.812435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'dce104dd-3979-4102-901b-341478aec076' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'dce104dd-3979-4102-901b-341478aec076' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$zM5G6ykEXfq16EAVp3il.Oatu5ekJ6bW/4cEDOFiGWPKQkt5ID28q"], ["stripe_id", "cus_9ICJQyN9RYCP0y"], ["created_at", "2016-10-01 01:03:39.275283"], ["updated_at", "2016-10-01 01:03:39.275283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'dce104dd-3979-4102-901b-341478aec076' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'dce104dd-3979-4102-901b-341478aec076' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$F8cFL49OIO4tmPkvBA8VXelQVs/8rNz14REphQ9MsvuDvuiP.ZFtK"], ["stripe_id", "cus_9ICJ3EqqGPzFN6"], ["created_at", "2016-10-01 01:03:39.662905"], ["updated_at", "2016-10-01 01:03:39.662905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::SubscriptionsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 67]] Rendered /Users/craigphares/Development/tang/app/views/tang/subscriptions/new.html.erb within layouts/tang/application (0.5ms) Completed 200 OK in 37ms (Views: 11.9ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'dce104dd-3979-4102-901b-341478aec076' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'dce104dd-3979-4102-901b-341478aec076' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$g4bNaIy55D82GVNxaKuKeOfCXCrUX.0akRiVB3lJB7pT1pK6iaEHG"], ["stripe_id", "cus_9ICJXJFKBsKfKy"], ["created_at", "2016-10-01 01:03:40.080138"], ["updated_at", "2016-10-01 01:03:40.080138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'dce104dd-3979-4102-901b-341478aec076' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'dce104dd-3979-4102-901b-341478aec076' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$AzjPWZl7bFztt3KIy.TNs.9p9njUbAH8QVGqMC8FgTtuddsy8oB9u"], ["stripe_id", "cus_9ICJIZ96CoImeE"], ["created_at", "2016-10-01 01:03:40.475150"], ["updated_at", "2016-10-01 01:03:40.475150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "tang_subscriptions"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'dce104dd-3979-4102-901b-341478aec076' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'dce104dd-3979-4102-901b-341478aec076' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$IaI5mHQtvUEha79FAangW.FUzZzQ8wywiUzUmrf21KoT6EQ3zZ0ee"], ["stripe_id", "cus_9ICJUNIZuNl8AF"], ["created_at", "2016-10-01 01:03:40.858151"], ["updated_at", "2016-10-01 01:03:40.858151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'dce104dd-3979-4102-901b-341478aec076' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'dce104dd-3979-4102-901b-341478aec076' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$Nsb2QwatBgYWWVyvmV/gJuDUDcOpW.lu166v.OxgkMr8jgXJ0I8/C"], ["stripe_id", "cus_9ICJpbD0bq858q"], ["created_at", "2016-10-01 01:03:41.259275"], ["updated_at", "2016-10-01 01:03:41.259275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'dce104dd-3979-4102-901b-341478aec076' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'dce104dd-3979-4102-901b-341478aec076' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$J1jTLwM/r6anC454mzcl7OnhPYWFVa8tHNkj5y.EwggY8K9podRku"], ["stripe_id", "cus_9ICJ1tKXJdLS4s"], ["created_at", "2016-10-01 01:03:41.653144"], ["updated_at", "2016-10-01 01:03:41.653144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'dce104dd-3979-4102-901b-341478aec076' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'dce104dd-3979-4102-901b-341478aec076' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$wSYhbH6SY4NWKg5wWdYNK.TjcjZMbpL2ibLARQlicfvF.oWUP9V/m"], ["stripe_id", "cus_9ICJ0NvYxRts5g"], ["created_at", "2016-10-01 01:03:42.080998"], ["updated_at", "2016-10-01 01:03:42.080998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'dce104dd-3979-4102-901b-341478aec076' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'dce104dd-3979-4102-901b-341478aec076' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$j8S8ZXmBhdUzujPiRERtl.6.GrqcN5OAvHJ7MbYaNaKwqiYwyzdX2"], ["stripe_id", "cus_9ICJsLoQjXA10j"], ["created_at", "2016-10-01 01:03:42.479840"], ["updated_at", "2016-10-01 01:03:42.479840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'dce104dd-3979-4102-901b-341478aec076' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'dce104dd-3979-4102-901b-341478aec076' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$sArNjembhn6vAJR956uVAuHA6TiZfV.TpL4firU/PQww/8/v2WcPS"], ["stripe_id", "cus_9ICJezbmmbNVZ1"], ["created_at", "2016-10-01 01:03:42.852579"], ["updated_at", "2016-10-01 01:03:42.852579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'dce104dd-3979-4102-901b-341478aec076' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'dce104dd-3979-4102-901b-341478aec076' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$.oYkYAaXbAuOAHgMs72S2exUrJpAG8vBDkGDNBBQ3N2t/CbBk2RYK"], ["stripe_id", "cus_9ICJqBgsdil5l2"], ["created_at", "2016-10-01 01:03:43.374485"], ["updated_at", "2016-10-01 01:03:43.374485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'dce104dd-3979-4102-901b-341478aec076' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'dce104dd-3979-4102-901b-341478aec076' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$ePioGvVUQjlL/E6aJsd3uOJUUCvBW9Pb9uWvZXm1936GunSAljxxS"], ["stripe_id", "cus_9ICJEvwi5Fj83n"], ["created_at", "2016-10-01 01:03:43.751729"], ["updated_at", "2016-10-01 01:03:43.751729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'dce104dd-3979-4102-901b-341478aec076' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'dce104dd-3979-4102-901b-341478aec076' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$MVJBH8RPistKTpX6UAyno.BNsNBmsin3u12xMQe5eEFReTA55X1j6"], ["stripe_id", "cus_9ICJCgN5XZ5pbs"], ["created_at", "2016-10-01 01:03:44.138375"], ["updated_at", "2016-10-01 01:03:44.138375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'dce104dd-3979-4102-901b-341478aec076' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'dce104dd-3979-4102-901b-341478aec076' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$sXo1YJFvX21aMBlKqwOokO0BbpLH0engpC/hcOL5a353UeNMGsabS"], ["stripe_id", "cus_9ICJyWIx6Kamfm"], ["created_at", "2016-10-01 01:03:44.555061"], ["updated_at", "2016-10-01 01:03:44.555061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'dce104dd-3979-4102-901b-341478aec076' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'dce104dd-3979-4102-901b-341478aec076' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$ZTEViSIqpWFPLkmuThO5Ge6yqrMIAq4SWfCQFNq90Dvh5rJDEZzTG"], ["stripe_id", "cus_9ICJW7riq2x8Ts"], ["created_at", "2016-10-01 01:03:44.935205"], ["updated_at", "2016-10-01 01:03:44.935205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.5ms) Completed 200 OK in 16ms (Views: 15.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 SQL (2.7ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "MyString"], ["amount", 1], ["currency", "usd"], ["interval", "month"], ["interval_count", 1], ["name", "MyString"], ["statement_descriptor", "MyString"], ["trial_period_days", 1], ["created_at", "2016-10-01 01:03:45.433066"], ["updated_at", "2016-10-01 01:03:45.433066"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "67"], ["created_at", "2016-10-01 01:03:45.433066"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe1' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe1' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe1"], ["amount", 2], ["currency", "usd"], ["interval", "month"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-10-01 01:03:45.873436"], ["updated_at", "2016-10-01 01:03:45.873436"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "67"], ["created_at", "2016-10-01 01:03:45.873436"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe2' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe2' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe2"], ["amount", 2], ["currency", "usd"], ["interval", "month"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-10-01 01:03:46.263842"], ["updated_at", "2016-10-01 01:03:46.263842"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "67"], ["created_at", "2016-10-01 01:03:46.263842"], ["item_id", 5], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "usd"], ["interval", "month"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-10-01 01:03:46.712120"], ["updated_at", "2016-10-01 01:03:46.712120"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "67"], ["created_at", "2016-10-01 01:03:46.712120"], ["item_id", 6], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (0.4ms) Completed 200 OK in 32ms (Views: 18.6ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/coupons/new.html.erb within layouts/tang/application (0.4ms) Completed 200 OK in 24ms (Views: 15.8ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::CustomersController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/customers/new.html.erb within layouts/tang/application (0.4ms) Completed 200 OK in 27ms (Views: 11.5ms | ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c9acaec1-a4c5-4630-9a3c-020122b74f86' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c9acaec1-a4c5-4630-9a3c-020122b74f86' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$F8NSzoEsRRVvYj8w8L2ZAuio3wcmT7j9cbSIzu.UNv3y8h7uFBACG"], ["stripe_id", "cus_9ICKeVYQCsbQJB"], ["created_at", "2016-10-01 01:05:16.504708"], ["updated_at", "2016-10-01 01:05:16.504708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c9acaec1-a4c5-4630-9a3c-020122b74f86' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c9acaec1-a4c5-4630-9a3c-020122b74f86' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$F9/cDry4rqHwXDfqvn2pSuj1nzSBgbwp7.bbC7nTBk0AccHG0JMbe"], ["stripe_id", "cus_9ICKsQbP7zHs8l"], ["created_at", "2016-10-01 01:05:17.514101"], ["updated_at", "2016-10-01 01:05:17.514101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c9acaec1-a4c5-4630-9a3c-020122b74f86' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c9acaec1-a4c5-4630-9a3c-020122b74f86' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$KjGyPIWND6hQX0toJHdnyu9Rf2bSY0DV4gwfKCRnd.71KAsaeFNzC"], ["stripe_id", "cus_9ICKMo86rd4Tjh"], ["created_at", "2016-10-01 01:05:17.899358"], ["updated_at", "2016-10-01 01:05:17.899358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::SubscriptionsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 83]] Rendered /Users/craigphares/Development/tang/app/views/tang/subscriptions/new.html.erb within layouts/tang/application (0.4ms) Completed 200 OK in 34ms (Views: 11.4ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c9acaec1-a4c5-4630-9a3c-020122b74f86' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c9acaec1-a4c5-4630-9a3c-020122b74f86' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$plHQmHqv9Elb9cwqz6HWxeHI3lPZRwGHf8WTlBKbscIRY/CsMIaNS"], ["stripe_id", "cus_9ICKYV0sfZqIN5"], ["created_at", "2016-10-01 01:05:18.321475"], ["updated_at", "2016-10-01 01:05:18.321475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c9acaec1-a4c5-4630-9a3c-020122b74f86' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c9acaec1-a4c5-4630-9a3c-020122b74f86' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$NH/4GEw1Id7ikBu6BbSF2uHbI6IuKA.VNFvHtZGCBbTitgMCw9vUe"], ["stripe_id", "cus_9ICKmhvVumHnoU"], ["created_at", "2016-10-01 01:05:18.712454"], ["updated_at", "2016-10-01 01:05:18.712454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "tang_subscriptions"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c9acaec1-a4c5-4630-9a3c-020122b74f86' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c9acaec1-a4c5-4630-9a3c-020122b74f86' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$J36UZikWbPmXhRGRKahXpesCSszEVqPXgGKsN1Ej4uC3ukoITj7Sq"], ["stripe_id", "cus_9ICKFBd6i8Yeyf"], ["created_at", "2016-10-01 01:05:19.098987"], ["updated_at", "2016-10-01 01:05:19.098987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c9acaec1-a4c5-4630-9a3c-020122b74f86' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c9acaec1-a4c5-4630-9a3c-020122b74f86' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$PVLCqdatYObZJtLpdAaYTeeLYf42Tq.E6Xh.4Ik9iCABjNj/ZAjP."], ["stripe_id", "cus_9ICKGwdTmnv2vf"], ["created_at", "2016-10-01 01:05:19.491085"], ["updated_at", "2016-10-01 01:05:19.491085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c9acaec1-a4c5-4630-9a3c-020122b74f86' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c9acaec1-a4c5-4630-9a3c-020122b74f86' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$i.zsIzv0zP2pErTThFRzbu/I6jHUt2F2JeshZXCZQADZPTmynR4u6"], ["stripe_id", "cus_9ICLfeYpaxwHYD"], ["created_at", "2016-10-01 01:05:19.870750"], ["updated_at", "2016-10-01 01:05:19.870750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c9acaec1-a4c5-4630-9a3c-020122b74f86' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c9acaec1-a4c5-4630-9a3c-020122b74f86' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$vB2WEhIasQPkqgB0EmnGVuQfUDRDmUjWZVzz7pKbLNMC7gRn3xZsW"], ["stripe_id", "cus_9ICLIRbxiAnXZo"], ["created_at", "2016-10-01 01:05:20.331407"], ["updated_at", "2016-10-01 01:05:20.331407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c9acaec1-a4c5-4630-9a3c-020122b74f86' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c9acaec1-a4c5-4630-9a3c-020122b74f86' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$pRr0ynBJ11gD81CZjEmQ8.bdrIm9zAeInIawV4WISyLxB0V9An.XO"], ["stripe_id", "cus_9ICL59i7S5Z9ZJ"], ["created_at", "2016-10-01 01:05:20.722990"], ["updated_at", "2016-10-01 01:05:20.722990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c9acaec1-a4c5-4630-9a3c-020122b74f86' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c9acaec1-a4c5-4630-9a3c-020122b74f86' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$c3eI2S2zyblZRfYZdT/YdOKZip4.PQbTfSu9bmbFo4phyuS.PqFPW"], ["stripe_id", "cus_9ICLrT98DpBaZY"], ["created_at", "2016-10-01 01:05:21.123165"], ["updated_at", "2016-10-01 01:05:21.123165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c9acaec1-a4c5-4630-9a3c-020122b74f86' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c9acaec1-a4c5-4630-9a3c-020122b74f86' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$Uw2DVMs5f6tjELE2MCWroeON05m6gFNKeujga7Ajehc6hKjbB.Y8q"], ["stripe_id", "cus_9ICLbrmmuaUCw5"], ["created_at", "2016-10-01 01:05:21.524577"], ["updated_at", "2016-10-01 01:05:21.524577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c9acaec1-a4c5-4630-9a3c-020122b74f86' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c9acaec1-a4c5-4630-9a3c-020122b74f86' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$DgSIi0w1ZINtM1IvM8CJ.u9Ei.CqhJSIu6Uz2yMt82ca/zvvcKSdG"], ["stripe_id", "cus_9ICLjqjea4nyrF"], ["created_at", "2016-10-01 01:05:21.961045"], ["updated_at", "2016-10-01 01:05:21.961045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c9acaec1-a4c5-4630-9a3c-020122b74f86' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c9acaec1-a4c5-4630-9a3c-020122b74f86' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$PgGF4/natCnc.RywkY8Wo.p90BY4GrNKHBsGYOZ8zw64GuxkPYYF6"], ["stripe_id", "cus_9ICLomlFqzYnNd"], ["created_at", "2016-10-01 01:05:22.395845"], ["updated_at", "2016-10-01 01:05:22.395845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c9acaec1-a4c5-4630-9a3c-020122b74f86' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c9acaec1-a4c5-4630-9a3c-020122b74f86' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$wa6CfVL8gBCHI0pJhdJIzec36m/QqyCcrj73f61l.g3erZyBXjvFi"], ["stripe_id", "cus_9ICLgpg3voxSjh"], ["created_at", "2016-10-01 01:05:23.078673"], ["updated_at", "2016-10-01 01:05:23.078673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c9acaec1-a4c5-4630-9a3c-020122b74f86' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c9acaec1-a4c5-4630-9a3c-020122b74f86' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$IPjQqAYPzo4Iek5MM5gIJu3YjJC7Lqy17AE0LHBff.9b611KA4hfm"], ["stripe_id", "cus_9ICLLjVAEOe3Ol"], ["created_at", "2016-10-01 01:05:23.478953"], ["updated_at", "2016-10-01 01:05:23.478953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 15ms (Views: 14.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "MyString"], ["amount", 1], ["currency", "usd"], ["interval", "month"], ["interval_count", 1], ["name", "MyString"], ["statement_descriptor", "MyString"], ["trial_period_days", 1], ["created_at", "2016-10-01 01:05:24.011775"], ["updated_at", "2016-10-01 01:05:24.011775"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "83"], ["created_at", "2016-10-01 01:05:24.011775"], ["item_id", 7], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (27.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb (88.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe1' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe1' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe1"], ["amount", 2], ["currency", "usd"], ["interval", "month"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-10-01 01:05:24.541444"], ["updated_at", "2016-10-01 01:05:24.541444"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "83"], ["created_at", "2016-10-01 01:05:24.541444"], ["item_id", 8], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe2' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe2' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe2"], ["amount", 2], ["currency", "usd"], ["interval", "month"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-10-01 01:05:24.911732"], ["updated_at", "2016-10-01 01:05:24.911732"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "83"], ["created_at", "2016-10-01 01:05:24.911732"], ["item_id", 9], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb (72.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (7.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb (11.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "usd"], ["interval", "month"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-10-01 01:05:25.427800"], ["updated_at", "2016-10-01 01:05:25.427800"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "83"], ["created_at", "2016-10-01 01:05:25.427800"], ["item_id", 10], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb (118.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (0.6ms) Completed 200 OK in 37ms (Views: 20.7ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/coupons/new.html.erb within layouts/tang/application (0.4ms) Completed 200 OK in 24ms (Views: 16.7ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::CustomersController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/customers/new.html.erb within layouts/tang/application (0.4ms) Completed 200 OK in 27ms (Views: 11.5ms | ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1b9f66eb-e71f-41b4-ac9e-219c895f53b1' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1b9f66eb-e71f-41b4-ac9e-219c895f53b1' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$lowSPep/nJDhr/1a1e10/ehBcLkbcJ6sUJChsXfX.aep90IlUaYYi"], ["stripe_id", "cus_9ICLMzeS8tEdVG"], ["created_at", "2016-10-01 01:06:17.218998"], ["updated_at", "2016-10-01 01:06:17.218998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1b9f66eb-e71f-41b4-ac9e-219c895f53b1' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1b9f66eb-e71f-41b4-ac9e-219c895f53b1' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$zwNHwNzXO/4zUdUcYexV2OzUuuBsY8lryk2PvZuaaxZ8W7UKIFSLe"], ["stripe_id", "cus_9ICL0TZr8fghiL"], ["created_at", "2016-10-01 01:06:18.070738"], ["updated_at", "2016-10-01 01:06:18.070738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1b9f66eb-e71f-41b4-ac9e-219c895f53b1' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1b9f66eb-e71f-41b4-ac9e-219c895f53b1' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$42N1qXbgHUqcK3FbOzy87.S6wU0MmCcjhtlC1udAOXuo/Ajq43LWO"], ["stripe_id", "cus_9ICL5OofwbLVUx"], ["created_at", "2016-10-01 01:06:18.458784"], ["updated_at", "2016-10-01 01:06:18.458784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::SubscriptionsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 99]] Rendered /Users/craigphares/Development/tang/app/views/tang/subscriptions/new.html.erb within layouts/tang/application (0.4ms) Completed 200 OK in 35ms (Views: 11.9ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1b9f66eb-e71f-41b4-ac9e-219c895f53b1' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1b9f66eb-e71f-41b4-ac9e-219c895f53b1' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$qub2tKCY79zr6O3leIkMVeyTd6IihPXgb/TTUgAU/dpvefYQJvWbe"], ["stripe_id", "cus_9ICLYijkYs24qf"], ["created_at", "2016-10-01 01:06:18.885646"], ["updated_at", "2016-10-01 01:06:18.885646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1b9f66eb-e71f-41b4-ac9e-219c895f53b1' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1b9f66eb-e71f-41b4-ac9e-219c895f53b1' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$5E8j/qYniDvrDFMKoJ8HouuG6Xitm211r8ccNY8dNLAVaxBGDx8g."], ["stripe_id", "cus_9ICLI2859HoMEq"], ["created_at", "2016-10-01 01:06:19.277784"], ["updated_at", "2016-10-01 01:06:19.277784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "tang_subscriptions"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1b9f66eb-e71f-41b4-ac9e-219c895f53b1' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1b9f66eb-e71f-41b4-ac9e-219c895f53b1' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$3vDrvhm5oCgcq6t8hGwJlOvuksCioQbQFKTrrs7EK81x31wZiqVzS"], ["stripe_id", "cus_9ICLeg03pMTiLg"], ["created_at", "2016-10-01 01:06:19.694102"], ["updated_at", "2016-10-01 01:06:19.694102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1b9f66eb-e71f-41b4-ac9e-219c895f53b1' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1b9f66eb-e71f-41b4-ac9e-219c895f53b1' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$uZnrDRnE3c0drj9TYfKNEedw3B8s/UNYynJwTvE94wgDmHdsKb1uS"], ["stripe_id", "cus_9ICM08sbVSVTx3"], ["created_at", "2016-10-01 01:06:20.079064"], ["updated_at", "2016-10-01 01:06:20.079064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1b9f66eb-e71f-41b4-ac9e-219c895f53b1' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1b9f66eb-e71f-41b4-ac9e-219c895f53b1' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$iOWDwwaPlmcuAfOWgGWxUeEemOPf.vwVIxWWNjCuS8acl94FUkbNW"], ["stripe_id", "cus_9ICMQc9cyKeMTr"], ["created_at", "2016-10-01 01:06:20.625517"], ["updated_at", "2016-10-01 01:06:20.625517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1b9f66eb-e71f-41b4-ac9e-219c895f53b1' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1b9f66eb-e71f-41b4-ac9e-219c895f53b1' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$VLSH9ccmXEoXJnczgY5PAOpyCywhY71FXM372Lecm5jVj4ZqDY4by"], ["stripe_id", "cus_9ICM5JuZvJdk4v"], ["created_at", "2016-10-01 01:06:21.026203"], ["updated_at", "2016-10-01 01:06:21.026203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1b9f66eb-e71f-41b4-ac9e-219c895f53b1' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1b9f66eb-e71f-41b4-ac9e-219c895f53b1' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$0VO2v5PJ4W9Yx4yUWvEtiuxCqO/FXnjrjoMDeWPgQjM/YfRkKyqd."], ["stripe_id", "cus_9ICMjfTsDKDH9n"], ["created_at", "2016-10-01 01:06:21.417883"], ["updated_at", "2016-10-01 01:06:21.417883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1b9f66eb-e71f-41b4-ac9e-219c895f53b1' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1b9f66eb-e71f-41b4-ac9e-219c895f53b1' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$WKh0WLqnnChC0bKImsIRMOfwpsXryi0Gp7OPLER2b72MmmerAqdG2"], ["stripe_id", "cus_9ICMQfL1X94WFe"], ["created_at", "2016-10-01 01:06:21.821342"], ["updated_at", "2016-10-01 01:06:21.821342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1b9f66eb-e71f-41b4-ac9e-219c895f53b1' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1b9f66eb-e71f-41b4-ac9e-219c895f53b1' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$sU304p4K0f0V.gCMgBWVxeiZsKGS.gw5X4TDQ7tvnsNCzP2jq/iky"], ["stripe_id", "cus_9ICMciugjdp5YX"], ["created_at", "2016-10-01 01:06:22.198221"], ["updated_at", "2016-10-01 01:06:22.198221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1b9f66eb-e71f-41b4-ac9e-219c895f53b1' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1b9f66eb-e71f-41b4-ac9e-219c895f53b1' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$Hy.6H9z4BCbKQSTMG/UzTOSAun8SeD41kxoGaN3qUFjx4fwqF7eka"], ["stripe_id", "cus_9ICMvX4LngTiEC"], ["created_at", "2016-10-01 01:06:22.605070"], ["updated_at", "2016-10-01 01:06:22.605070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1b9f66eb-e71f-41b4-ac9e-219c895f53b1' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1b9f66eb-e71f-41b4-ac9e-219c895f53b1' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$PXV3Ew.Uqcawtmwq2dxkq.pI7t6GW7WLvOcWMvG8w/0yDmp6krr6W"], ["stripe_id", "cus_9ICM5IFDqYbH7V"], ["created_at", "2016-10-01 01:06:22.993289"], ["updated_at", "2016-10-01 01:06:22.993289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1b9f66eb-e71f-41b4-ac9e-219c895f53b1' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1b9f66eb-e71f-41b4-ac9e-219c895f53b1' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$WCMn/sug25FEeUtabCDssO5KWlQ7GMKkpJeekroi4/FagAf3j4Hha"], ["stripe_id", "cus_9ICM6uMyH2Vml2"], ["created_at", "2016-10-01 01:06:23.385797"], ["updated_at", "2016-10-01 01:06:23.385797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1b9f66eb-e71f-41b4-ac9e-219c895f53b1' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1b9f66eb-e71f-41b4-ac9e-219c895f53b1' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$JhYV05PFQsVdGNfu1/0.SOykIT2AOFHqyN9.CY8h2.Ce/322fQ9pu"], ["stripe_id", "cus_9ICMnlszXRr9aY"], ["created_at", "2016-10-01 01:06:23.789612"], ["updated_at", "2016-10-01 01:06:23.789612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.7ms) Completed 200 OK in 14ms (Views: 13.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'MyString' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "MyString"], ["amount", 1], ["currency", "usd"], ["interval", "month"], ["interval_count", 1], ["name", "MyString"], ["statement_descriptor", "MyString"], ["trial_period_days", 1], ["created_at", "2016-10-01 01:06:24.275858"], ["updated_at", "2016-10-01 01:06:24.275858"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "99"], ["created_at", "2016-10-01 01:06:24.275858"], ["item_id", 11], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (23.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb (81.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe1' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe1' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe1"], ["amount", 2], ["currency", "usd"], ["interval", "month"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-10-01 01:06:24.950710"], ["updated_at", "2016-10-01 01:06:24.950710"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "99"], ["created_at", "2016-10-01 01:06:24.950710"], ["item_id", 12], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe2' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe2' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe2"], ["amount", 2], ["currency", "usd"], ["interval", "month"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-10-01 01:06:25.328668"], ["updated_at", "2016-10-01 01:06:25.328668"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "99"], ["created_at", "2016-10-01 01:06:25.328668"], ["item_id", 13], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb (79.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb (12.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'Stripe' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "interval_count", "name", "statement_descriptor", "trial_period_days", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["stripe_id", "Stripe"], ["amount", 2], ["currency", "usd"], ["interval", "month"], ["interval_count", 3], ["name", "Name"], ["statement_descriptor", "Statement Descriptor"], ["trial_period_days", 4], ["created_at", "2016-10-01 01:06:25.896679"], ["updated_at", "2016-10-01 01:06:25.896679"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "99"], ["created_at", "2016-10-01 01:06:25.896679"], ["item_id", 14], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb (119.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (0.3ms) Completed 200 OK in 32ms (Views: 18.3ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by Tang::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/coupons/new.html.erb within layouts/tang/application (0.4ms) Completed 200 OK in 27ms (Views: 17.1ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (5.7ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::CustomersController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/customers/new.html.erb within layouts/tang/application (0.3ms) Completed 200 OK in 29ms (Views: 13.5ms | ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.8ms) SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f5fdfbe0-e0df-457b-ae15-af09c8320936' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f5fdfbe0-e0df-457b-ae15-af09c8320936' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$MdOYQnt0ekFk21gyKnFlAO.WV7myzHjSsl5Dg20wM0R7FLsqlMa76"], ["stripe_id", "cus_9IDfMRhQSFzwLj"], ["created_at", "2016-10-01 02:27:27.911096"], ["updated_at", "2016-10-01 02:27:27.911096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f5fdfbe0-e0df-457b-ae15-af09c8320936' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f5fdfbe0-e0df-457b-ae15-af09c8320936' LIMIT 1 SQL (3.9ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$o3.k3IIdcBA2iRh3sBYqEesiq/zp0sR7YqJVk7xjrqJXesJT.fvLK"], ["stripe_id", "cus_9IDf6mHI8afTdi"], ["created_at", "2016-10-01 02:27:28.350191"], ["updated_at", "2016-10-01 02:27:28.350191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f5fdfbe0-e0df-457b-ae15-af09c8320936' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f5fdfbe0-e0df-457b-ae15-af09c8320936' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$Y.5GvzQ34eojaYcc.2jKBerVxmwFyFiqmRZzfHBDHMiAw9OR60odi"], ["stripe_id", "cus_9IDfguJRLpeXUe"], ["created_at", "2016-10-01 02:27:28.779258"], ["updated_at", "2016-10-01 02:27:28.779258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::SubscriptionsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 115]] Rendered /Users/craigphares/Development/tang/app/views/tang/subscriptions/new.html.erb within layouts/tang/application (0.4ms) Completed 200 OK in 35ms (Views: 11.6ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f5fdfbe0-e0df-457b-ae15-af09c8320936' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f5fdfbe0-e0df-457b-ae15-af09c8320936' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$ouUoZdBV01xywvU/0aUMHeQjxa4UJnkpt9mYl/pgENwO.TWB.28C6"], ["stripe_id", "cus_9IDfBCyI87FqUJ"], ["created_at", "2016-10-01 02:27:29.262652"], ["updated_at", "2016-10-01 02:27:29.262652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f5fdfbe0-e0df-457b-ae15-af09c8320936' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f5fdfbe0-e0df-457b-ae15-af09c8320936' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$TMyaXUsgApzEPoIlDUmJM.vKTorewIN/InwbUrQ5Bl3KUAN2Ryrh2"], ["stripe_id", "cus_9IDfUxfiizf4OM"], ["created_at", "2016-10-01 02:27:30.126582"], ["updated_at", "2016-10-01 02:27:30.126582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "tang_subscriptions"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f5fdfbe0-e0df-457b-ae15-af09c8320936' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f5fdfbe0-e0df-457b-ae15-af09c8320936' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$rPr1x6tpJ6pzavdHwplzhOG3ztp2W82hx6KOC5syZh97KDQtl6UEq"], ["stripe_id", "cus_9IDfz9tschwtVJ"], ["created_at", "2016-10-01 02:27:30.553984"], ["updated_at", "2016-10-01 02:27:30.553984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f5fdfbe0-e0df-457b-ae15-af09c8320936' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f5fdfbe0-e0df-457b-ae15-af09c8320936' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$EbXG0EjpnJIIU.kMAsEvMulsxJW4LyLAn3.ufsxtn4ldpYUm.o.M6"], ["stripe_id", "cus_9IDfPV2dsEooNt"], ["created_at", "2016-10-01 02:27:30.938558"], ["updated_at", "2016-10-01 02:27:30.938558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f5fdfbe0-e0df-457b-ae15-af09c8320936' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f5fdfbe0-e0df-457b-ae15-af09c8320936' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$oxYvATY39zPxM707R0RpEuaAgydSy/lSnz.i0XPrd8uRQMtMJFVoa"], ["stripe_id", "cus_9IDfw1PdX6jR26"], ["created_at", "2016-10-01 02:27:31.349043"], ["updated_at", "2016-10-01 02:27:31.349043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f5fdfbe0-e0df-457b-ae15-af09c8320936' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f5fdfbe0-e0df-457b-ae15-af09c8320936' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$envNy2KdJGVFsgKfS9zTfe8kCX3ngPFltoAPsVLUtDqfXQLMyAP76"], ["stripe_id", "cus_9IDfMcVegb942u"], ["created_at", "2016-10-01 02:27:31.860295"], ["updated_at", "2016-10-01 02:27:31.860295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f5fdfbe0-e0df-457b-ae15-af09c8320936' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f5fdfbe0-e0df-457b-ae15-af09c8320936' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$K97UUFYXFuCiJq9TnIDtfOriPUwbjUoyQnNVJxbIZ1RthpujFQQWm"], ["stripe_id", "cus_9IDflq9wfNqHBp"], ["created_at", "2016-10-01 02:27:32.463275"], ["updated_at", "2016-10-01 02:27:32.463275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f5fdfbe0-e0df-457b-ae15-af09c8320936' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f5fdfbe0-e0df-457b-ae15-af09c8320936' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$veM0WuEuPOMynVrqwZmPVe/PCK4znmwxTMCuheFyaHRCskH88Ig9q"], ["stripe_id", "cus_9IDfrJ849ZJdR0"], ["created_at", "2016-10-01 02:27:32.843584"], ["updated_at", "2016-10-01 02:27:32.843584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f5fdfbe0-e0df-457b-ae15-af09c8320936' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f5fdfbe0-e0df-457b-ae15-af09c8320936' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$JkqppmvJkmj0/z4vH03quOA46/FP19cEXolM4kUXG5QVWno4oLilG"], ["stripe_id", "cus_9IDf03KNyLfLLD"], ["created_at", "2016-10-01 02:27:33.263568"], ["updated_at", "2016-10-01 02:27:33.263568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f5fdfbe0-e0df-457b-ae15-af09c8320936' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f5fdfbe0-e0df-457b-ae15-af09c8320936' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$adwZtv.ay6SH/an./ZQ00Ozi73JONXAtJqgAQED0YLKdgLF.1B/IK"], ["stripe_id", "cus_9IDfGhoFCZCEi3"], ["created_at", "2016-10-01 02:27:33.654582"], ["updated_at", "2016-10-01 02:27:33.654582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f5fdfbe0-e0df-457b-ae15-af09c8320936' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f5fdfbe0-e0df-457b-ae15-af09c8320936' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$vErkk1gF2YqrqeB4CidPtu8ypP2XjLjuydvBPWSU5V0dZ.v.lE8.."], ["stripe_id", "cus_9IDfc2MyqFNOzk"], ["created_at", "2016-10-01 02:27:34.038089"], ["updated_at", "2016-10-01 02:27:34.038089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f5fdfbe0-e0df-457b-ae15-af09c8320936' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f5fdfbe0-e0df-457b-ae15-af09c8320936' LIMIT 1 SQL (2.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$EobpA8O.Xc/Iy/AmkyvSNOz/ggKD7re6xLXU6dOoXaStoZ3l3uiEa"], ["stripe_id", "cus_9IDfArpu96SZ8G"], ["created_at", "2016-10-01 02:27:34.449696"], ["updated_at", "2016-10-01 02:27:34.449696"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f5fdfbe0-e0df-457b-ae15-af09c8320936' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f5fdfbe0-e0df-457b-ae15-af09c8320936' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$WA4zamtyXq0rsBvslXZn3O7KoVnLyBhyxdCp7Vo0gVhzaDYoM5vrK"], ["stripe_id", "cus_9IDfj0VSMOGSEH"], ["created_at", "2016-10-01 02:27:34.889677"], ["updated_at", "2016-10-01 02:27:34.889677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 10ms (Views: 9.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (0.3ms) Completed 200 OK in 34ms (Views: 18.6ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/coupons/new.html.erb within layouts/tang/application (0.3ms) Completed 200 OK in 36ms (Views: 16.4ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::CustomersController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/customers/new.html.erb within layouts/tang/application (0.3ms) Completed 200 OK in 31ms (Views: 11.2ms | ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f7832971-b54f-48ad-b4bd-cac96427eacc' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f7832971-b54f-48ad-b4bd-cac96427eacc' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$SkdkNsZ7ZeuXKONGayZ7KeRfNzZu2xgoBLTpOinuD7HpUXZ0KLlRe"], ["stripe_id", "cus_9IDf6jBr4yyFBV"], ["created_at", "2016-10-01 02:27:51.096449"], ["updated_at", "2016-10-01 02:27:51.096449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f7832971-b54f-48ad-b4bd-cac96427eacc' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f7832971-b54f-48ad-b4bd-cac96427eacc' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$52pWG7OXqSAF/gCLM6lyNOinxblGLgmJiqIq5ikU.wnPsWY1dK7/K"], ["stripe_id", "cus_9IDfI3XQzb2wM8"], ["created_at", "2016-10-01 02:27:51.967729"], ["updated_at", "2016-10-01 02:27:51.967729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f7832971-b54f-48ad-b4bd-cac96427eacc' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f7832971-b54f-48ad-b4bd-cac96427eacc' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$ntLjmOeEGiBVzck/ESBEP.R4ZgX4iiPaVR41sVQv6GvCTwFmFOJnu"], ["stripe_id", "cus_9IDfhbpA7kNJcQ"], ["created_at", "2016-10-01 02:27:52.353635"], ["updated_at", "2016-10-01 02:27:52.353635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::SubscriptionsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/subscriptions/new.html.erb within layouts/tang/application (0.3ms) Completed 200 OK in 34ms (Views: 11.6ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f7832971-b54f-48ad-b4bd-cac96427eacc' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f7832971-b54f-48ad-b4bd-cac96427eacc' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$28ajtI0H5pMjoHXlGetT4.zRV2icPh6IxlUi1K8/9L6c.hA.sIHMG"], ["stripe_id", "cus_9IDfyfTBuHWNvb"], ["created_at", "2016-10-01 02:27:53.297143"], ["updated_at", "2016-10-01 02:27:53.297143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f7832971-b54f-48ad-b4bd-cac96427eacc' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f7832971-b54f-48ad-b4bd-cac96427eacc' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$HcxMqkZerWK1EMEKKSw..usmpZgjSV2S64nQdf0WGPgzYNu6bk23C"], ["stripe_id", "cus_9IDf7x40uggXzy"], ["created_at", "2016-10-01 02:27:53.679743"], ["updated_at", "2016-10-01 02:27:53.679743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "tang_subscriptions"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f7832971-b54f-48ad-b4bd-cac96427eacc' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f7832971-b54f-48ad-b4bd-cac96427eacc' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$7CEPdM/i0nOEs2hpN07GAOXy4OuakN510kLQ2RMY.Vspao3dpXe8W"], ["stripe_id", "cus_9IDfPDsiLmeHOp"], ["created_at", "2016-10-01 02:27:54.097083"], ["updated_at", "2016-10-01 02:27:54.097083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f7832971-b54f-48ad-b4bd-cac96427eacc' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f7832971-b54f-48ad-b4bd-cac96427eacc' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$tTGAVfAYvoa95TCs.O41L.gfIc/QoEpj5SFVHtkOwAWBMq1O8ca5q"], ["stripe_id", "cus_9IDfwHJtS0oXR0"], ["created_at", "2016-10-01 02:27:54.479868"], ["updated_at", "2016-10-01 02:27:54.479868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f7832971-b54f-48ad-b4bd-cac96427eacc' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f7832971-b54f-48ad-b4bd-cac96427eacc' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$caV3o7O4s.HpNSlrhcEkweizocfqaNPyPt5dzrG0OFMlXdHnLXrWy"], ["stripe_id", "cus_9IDffO82od39Ig"], ["created_at", "2016-10-01 02:27:54.859822"], ["updated_at", "2016-10-01 02:27:54.859822"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f7832971-b54f-48ad-b4bd-cac96427eacc' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f7832971-b54f-48ad-b4bd-cac96427eacc' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$pdLGXvFxqGLX9sc4WEydLelypdz34p9o/OBvxgEz4yT73qfrKixrS"], ["stripe_id", "cus_9IDf9pQbnmlo47"], ["created_at", "2016-10-01 02:27:55.246734"], ["updated_at", "2016-10-01 02:27:55.246734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f7832971-b54f-48ad-b4bd-cac96427eacc' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f7832971-b54f-48ad-b4bd-cac96427eacc' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$cOwNhpcWGjSf62Fsr.S38.oC74Mg22B2dw78hCeUZfPAviWr0k6VG"], ["stripe_id", "cus_9IDfwemI6pgRYv"], ["created_at", "2016-10-01 02:27:55.862293"], ["updated_at", "2016-10-01 02:27:55.862293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f7832971-b54f-48ad-b4bd-cac96427eacc' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f7832971-b54f-48ad-b4bd-cac96427eacc' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$SHJcpU0J28jdoOKI9l5NAu7Ha03Avo7/sDsO8uGkOnZ9qk.ZB8AaS"], ["stripe_id", "cus_9IDfEUhe6Et1qt"], ["created_at", "2016-10-01 02:27:56.265231"], ["updated_at", "2016-10-01 02:27:56.265231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f7832971-b54f-48ad-b4bd-cac96427eacc' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f7832971-b54f-48ad-b4bd-cac96427eacc' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$mZNFLOTn2qs66bfPbx3nJeE5Rx3MeYGiByEwRZJLH0pbgjaA1wVFa"], ["stripe_id", "cus_9IDfRUB41fNKUm"], ["created_at", "2016-10-01 02:27:56.689645"], ["updated_at", "2016-10-01 02:27:56.689645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f7832971-b54f-48ad-b4bd-cac96427eacc' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f7832971-b54f-48ad-b4bd-cac96427eacc' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$4cQy5z7uFjqJurB4XKdR6ezqWrazty3VrwxL0D.w0SZO4z7f9ZzBG"], ["stripe_id", "cus_9IDfMRTekXKkdi"], ["created_at", "2016-10-01 02:27:57.075867"], ["updated_at", "2016-10-01 02:27:57.075867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f7832971-b54f-48ad-b4bd-cac96427eacc' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f7832971-b54f-48ad-b4bd-cac96427eacc' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$cTtb3NLFhHUGODoraQ8Npu5pM7P8xOWYmKrKDbV.RegwwpmISemiC"], ["stripe_id", "cus_9IDf4kAemWC0iF"], ["created_at", "2016-10-01 02:27:57.478658"], ["updated_at", "2016-10-01 02:27:57.478658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f7832971-b54f-48ad-b4bd-cac96427eacc' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f7832971-b54f-48ad-b4bd-cac96427eacc' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$dHlExEOK858Zd2BDWer5LepnVu7VCYfsebeW5zmwOVHLY9zJpXRwa"], ["stripe_id", "cus_9IDfU63z9y2OvJ"], ["created_at", "2016-10-01 02:27:57.872579"], ["updated_at", "2016-10-01 02:27:57.872579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f7832971-b54f-48ad-b4bd-cac96427eacc' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f7832971-b54f-48ad-b4bd-cac96427eacc' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$sjhQB.afSX9/rP9ZpzY29OS0D9CfkN0d.Jav5EBzhV36jzWbeoUQy"], ["stripe_id", "cus_9IDfAQnU75FFs5"], ["created_at", "2016-10-01 02:27:58.262808"], ["updated_at", "2016-10-01 02:27:58.262808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 11ms (Views: 10.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (0.3ms) Completed 200 OK in 32ms (Views: 18.2ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/coupons/new.html.erb within layouts/tang/application (0.3ms) Completed 200 OK in 37ms (Views: 20.1ms | ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::CustomersController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/customers/new.html.erb within layouts/tang/application (0.3ms) Completed 200 OK in 29ms (Views: 12.0ms | ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6c238913-d43a-4266-8839-201d5c9bb14d' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6c238913-d43a-4266-8839-201d5c9bb14d' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$h/TFqDgLh2utARBjfxdEge5T7OQP2ZGq5rleEg8FWm6Rgi1QcV.NK"], ["stripe_id", "cus_9IDnfheAZZN1q9"], ["created_at", "2016-10-01 02:35:30.159107"], ["updated_at", "2016-10-01 02:35:30.159107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6c238913-d43a-4266-8839-201d5c9bb14d' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6c238913-d43a-4266-8839-201d5c9bb14d' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$eqjuKMqtRQSbNyfMFHEhbu2nw4K1xdjCETSKs3wGdNtYWAUMjhM4S"], ["stripe_id", "cus_9IDnaI5MKAIR3X"], ["created_at", "2016-10-01 02:35:30.986031"], ["updated_at", "2016-10-01 02:35:30.986031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6c238913-d43a-4266-8839-201d5c9bb14d' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6c238913-d43a-4266-8839-201d5c9bb14d' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$/iedb72Bw08oVBxx6RXHXOqAgWuxqNCCnL.FsiK.K5G/h.Jo8/dDC"], ["stripe_id", "cus_9IDng3thz396Ma"], ["created_at", "2016-10-01 02:35:31.368984"], ["updated_at", "2016-10-01 02:35:31.368984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::SubscriptionsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/subscriptions/new.html.erb within layouts/tang/application (0.3ms) Completed 200 OK in 33ms (Views: 11.3ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6c238913-d43a-4266-8839-201d5c9bb14d' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6c238913-d43a-4266-8839-201d5c9bb14d' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$qyMFtRlE5fZZ1SWcolhWouA.DcB0PZnGXERdoIq2HTuk6uHLLh06i"], ["stripe_id", "cus_9IDncjRJspbhfn"], ["created_at", "2016-10-01 02:35:31.794063"], ["updated_at", "2016-10-01 02:35:31.794063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6c238913-d43a-4266-8839-201d5c9bb14d' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6c238913-d43a-4266-8839-201d5c9bb14d' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$0HyD33/LsU.Cssv53.E6nOqLsQ6tncfYwu6ifdah0robm/d/dcwBS"], ["stripe_id", "cus_9IDn8rAAHh8b1m"], ["created_at", "2016-10-01 02:35:32.186950"], ["updated_at", "2016-10-01 02:35:32.186950"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "tang_subscriptions"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6c238913-d43a-4266-8839-201d5c9bb14d' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6c238913-d43a-4266-8839-201d5c9bb14d' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$m5m86LN6R.GP1RcBRkH1deGkkLcHGUO3hhPAGwuAHXuHTFRJnWrQe"], ["stripe_id", "cus_9IDnZj98FDXfY5"], ["created_at", "2016-10-01 02:35:32.578474"], ["updated_at", "2016-10-01 02:35:32.578474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6c238913-d43a-4266-8839-201d5c9bb14d' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6c238913-d43a-4266-8839-201d5c9bb14d' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$BHeD7gPKmf2.0EfCHLONw.AZSJzHyUQZShfOJcUZpALCtvg4KjO8q"], ["stripe_id", "cus_9IDnhVq6BFJ1mH"], ["created_at", "2016-10-01 02:35:33.010448"], ["updated_at", "2016-10-01 02:35:33.010448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6c238913-d43a-4266-8839-201d5c9bb14d' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6c238913-d43a-4266-8839-201d5c9bb14d' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$NXrMX3mIxHWs5ABJHvHh1O4Qbhx7jW0YTGreXy/p0Q7vZ8/w5nnUa"], ["stripe_id", "cus_9IDnpqj71frtkp"], ["created_at", "2016-10-01 02:35:33.422554"], ["updated_at", "2016-10-01 02:35:33.422554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6c238913-d43a-4266-8839-201d5c9bb14d' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6c238913-d43a-4266-8839-201d5c9bb14d' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$49N7FunL20XX7wT6/iaWaONI1pjmwLpBk141G3gSbJ5kHbStrX/Ze"], ["stripe_id", "cus_9IDnYjo3gm2zX2"], ["created_at", "2016-10-01 02:35:33.808385"], ["updated_at", "2016-10-01 02:35:33.808385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6c238913-d43a-4266-8839-201d5c9bb14d' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6c238913-d43a-4266-8839-201d5c9bb14d' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$EbVdI3Ro2OPlyaS3FkBxdOr8h.XYwaN394jds.VUDF8rZetgCEWvy"], ["stripe_id", "cus_9IDn4BKqAMi1La"], ["created_at", "2016-10-01 02:35:34.210067"], ["updated_at", "2016-10-01 02:35:34.210067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6c238913-d43a-4266-8839-201d5c9bb14d' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6c238913-d43a-4266-8839-201d5c9bb14d' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$TFR1oybHjBNvkQkdf7o85.9IaxzUPr6IEVG6ZEF97mHe2yA6GcJZO"], ["stripe_id", "cus_9IDnqsyBVgF2I1"], ["created_at", "2016-10-01 02:35:34.596361"], ["updated_at", "2016-10-01 02:35:34.596361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6c238913-d43a-4266-8839-201d5c9bb14d' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6c238913-d43a-4266-8839-201d5c9bb14d' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$hP/hplj3DvIvxCBdknJbmOjJD5i9Fq6Ur7FpoFKDddB84kXGwRsHS"], ["stripe_id", "cus_9IDnBvBT6Stjc1"], ["created_at", "2016-10-01 02:35:35.340990"], ["updated_at", "2016-10-01 02:35:35.340990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6c238913-d43a-4266-8839-201d5c9bb14d' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6c238913-d43a-4266-8839-201d5c9bb14d' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$2c0zs.9lzwZdmwNKktgLgOAdaPwXqhQqISUAPTwrRSAFdLXVtGwwi"], ["stripe_id", "cus_9IDnaZvB0uREeH"], ["created_at", "2016-10-01 02:35:35.781993"], ["updated_at", "2016-10-01 02:35:35.781993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6c238913-d43a-4266-8839-201d5c9bb14d' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6c238913-d43a-4266-8839-201d5c9bb14d' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$TEiX/m5XYngBIIi.LYvGkeP5x5UT7JcR7x/yLnoUi3DDYIDPaCVPC"], ["stripe_id", "cus_9IDnclFgANfJHV"], ["created_at", "2016-10-01 02:35:36.298233"], ["updated_at", "2016-10-01 02:35:36.298233"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6c238913-d43a-4266-8839-201d5c9bb14d' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6c238913-d43a-4266-8839-201d5c9bb14d' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$hV6g5Rtr2RHWaunaAippOOLEebiFOJ.nIbKbGPWAR22QFhqwHOHp."], ["stripe_id", "cus_9IDndOQ7u1XnFS"], ["created_at", "2016-10-01 02:35:36.727833"], ["updated_at", "2016-10-01 02:35:36.727833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6c238913-d43a-4266-8839-201d5c9bb14d' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6c238913-d43a-4266-8839-201d5c9bb14d' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$zoZmvYJrprQzEsifc6VReeaje/pdZWoMAGV7Av6uOjNtxJYp/6be."], ["stripe_id", "cus_9IDnBuRVn4CyFc"], ["created_at", "2016-10-01 02:35:37.113536"], ["updated_at", "2016-10-01 02:35:37.113536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 11ms (Views: 10.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 22:35:40 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (29.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (43.0ms) Completed 200 OK in 319ms (Views: 290.0ms | ActiveRecord: 1.1ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-09-30 22:35:40 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"}  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.7ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (1.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-01 02:35:40.916335"], ["updated_at", "2016-10-01 02:35:40.916335"]] SQL (12.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-01 02:35:40.916335"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 984ms (ActiveRecord: 16.4ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-09-30 22:35:41 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/tang/admin (12.4ms) Completed 200 OK in 29ms (Views: 18.4ms | ActiveRecord: 0.3ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 22:35:41 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (5.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (5.9ms) Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-09-30 22:35:41 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"}  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (7.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (7.6ms) Completed 200 OK in 15ms (Views: 10.5ms | ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (0.3ms) Completed 200 OK in 33ms (Views: 18.6ms | ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by Tang::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/coupons/new.html.erb within layouts/tang/application (0.4ms) Completed 200 OK in 38ms (Views: 19.4ms | ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::CustomersController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/customers/new.html.erb within layouts/tang/application (0.3ms) Completed 200 OK in 30ms (Views: 11.3ms | ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6e9fe612-1385-4492-a72b-ebb40e183b22' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6e9fe612-1385-4492-a72b-ebb40e183b22' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$1DF/8o4qcSZ85gP./ReAJ.XoHtFz5.013qt0E6tFTntSWBZgXi2Sm"], ["stripe_id", "cus_9IEaW0dqygDtcb"], ["created_at", "2016-10-01 03:25:05.245674"], ["updated_at", "2016-10-01 03:25:05.245674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6e9fe612-1385-4492-a72b-ebb40e183b22' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6e9fe612-1385-4492-a72b-ebb40e183b22' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$e8Fq10qnPrgYHdyUCczbcOxFgPR2IqIaJGSNPmcnSWnHKNERBNIvK"], ["stripe_id", "cus_9IEan9WrEq3CZf"], ["created_at", "2016-10-01 03:25:05.676900"], ["updated_at", "2016-10-01 03:25:05.676900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6e9fe612-1385-4492-a72b-ebb40e183b22' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6e9fe612-1385-4492-a72b-ebb40e183b22' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$AvKhiXcdCFqGnzihQl29B.ddOEYyr30SCYaNGg3yuxSSdzDdZuPpW"], ["stripe_id", "cus_9IEak33ZAIpPSD"], ["created_at", "2016-10-01 03:25:06.063434"], ["updated_at", "2016-10-01 03:25:06.063434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::SubscriptionsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/subscriptions/new.html.erb within layouts/tang/application (0.5ms) Completed 200 OK in 39ms (Views: 11.6ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6e9fe612-1385-4492-a72b-ebb40e183b22' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6e9fe612-1385-4492-a72b-ebb40e183b22' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$IsJRISMdCO0j/ttH7lhx5enC88r9YfVdCiqUe02JFMXrS/XfCkmpK"], ["stripe_id", "cus_9IEa1YCgppN6VE"], ["created_at", "2016-10-01 03:25:06.480703"], ["updated_at", "2016-10-01 03:25:06.480703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6e9fe612-1385-4492-a72b-ebb40e183b22' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6e9fe612-1385-4492-a72b-ebb40e183b22' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$hruwD1IBbJftSKZR4GWK2OBxu98GjBh/APxRCBlqbd5Vm/AgkvIxu"], ["stripe_id", "cus_9IEaHDYs7ilLAc"], ["created_at", "2016-10-01 03:25:06.864837"], ["updated_at", "2016-10-01 03:25:06.864837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "tang_subscriptions"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6e9fe612-1385-4492-a72b-ebb40e183b22' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6e9fe612-1385-4492-a72b-ebb40e183b22' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$viWP2WDy6RsZl0YiWcdyaeiyeJ4g1munZIdpX8fKW7IZ3s02GGgHy"], ["stripe_id", "cus_9IEaC4AJk3BPRF"], ["created_at", "2016-10-01 03:25:07.244019"], ["updated_at", "2016-10-01 03:25:07.244019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6e9fe612-1385-4492-a72b-ebb40e183b22' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6e9fe612-1385-4492-a72b-ebb40e183b22' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$8XdoOBqgsOzf9tHYuqH0Y.lu5Qe7xDmJUQ9.m7FjzumOfIP.k5Rqq"], ["stripe_id", "cus_9IEaYTAnaZRwdu"], ["created_at", "2016-10-01 03:25:07.629524"], ["updated_at", "2016-10-01 03:25:07.629524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6e9fe612-1385-4492-a72b-ebb40e183b22' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6e9fe612-1385-4492-a72b-ebb40e183b22' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$/HYbBBYXrSnr4LgKH0vOdOeFkf8iGEkTN70eTQR8ITbzcEFi0N/Y."], ["stripe_id", "cus_9IEay1K33ESlau"], ["created_at", "2016-10-01 03:25:08.015697"], ["updated_at", "2016-10-01 03:25:08.015697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6e9fe612-1385-4492-a72b-ebb40e183b22' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6e9fe612-1385-4492-a72b-ebb40e183b22' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$mkOhXvAwcmbYV.7J8rytw.nBJ4dhXp5O3owchSEj9m5ODb8UmTtWK"], ["stripe_id", "cus_9IEaJB63R4pvaC"], ["created_at", "2016-10-01 03:25:08.427678"], ["updated_at", "2016-10-01 03:25:08.427678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6e9fe612-1385-4492-a72b-ebb40e183b22' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6e9fe612-1385-4492-a72b-ebb40e183b22' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$ryDhOcOwESx45nS09ea7le.dWrqysjwtV.Y7F1JHArX2ev5zVUk7e"], ["stripe_id", "cus_9IEa1aPI5NhbkC"], ["created_at", "2016-10-01 03:25:08.814056"], ["updated_at", "2016-10-01 03:25:08.814056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6e9fe612-1385-4492-a72b-ebb40e183b22' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6e9fe612-1385-4492-a72b-ebb40e183b22' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$SG/lj0JI1r9LBpcumTzOD.S/pYgM3jxuuaA/pM0zGOBip78swqPe."], ["stripe_id", "cus_9IEa8ehCkO1Zse"], ["created_at", "2016-10-01 03:25:09.574163"], ["updated_at", "2016-10-01 03:25:09.574163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6e9fe612-1385-4492-a72b-ebb40e183b22' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6e9fe612-1385-4492-a72b-ebb40e183b22' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$4D3TuFph22ZMdbPbG0FUiOF/PHXLJbzfQNpfqXIrS7Psgg9QjzxnO"], ["stripe_id", "cus_9IEa2usiXOQMyM"], ["created_at", "2016-10-01 03:25:09.968030"], ["updated_at", "2016-10-01 03:25:09.968030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6e9fe612-1385-4492-a72b-ebb40e183b22' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6e9fe612-1385-4492-a72b-ebb40e183b22' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$y85Ua.fGOoj5AozBlCXxbeVh/WvMwYDZX9WHfaebMPwKxWMeBDxOi"], ["stripe_id", "cus_9IEa150GspdCyg"], ["created_at", "2016-10-01 03:25:10.351732"], ["updated_at", "2016-10-01 03:25:10.351732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6e9fe612-1385-4492-a72b-ebb40e183b22' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6e9fe612-1385-4492-a72b-ebb40e183b22' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$mMLYtWOv7rgUEjVEQY4dZ.ao7dc3kTOsUqOWCkpWvDkpEKE4CgXrq"], ["stripe_id", "cus_9IEa1jujTDhDmc"], ["created_at", "2016-10-01 03:25:10.739054"], ["updated_at", "2016-10-01 03:25:10.739054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6e9fe612-1385-4492-a72b-ebb40e183b22' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6e9fe612-1385-4492-a72b-ebb40e183b22' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$23zTH5m0MnoOUyC8Yx2Bf.9AzLnBPUFex6hW7mDs7Ka/4oQmI3WgW"], ["stripe_id", "cus_9IEa0LcBgTUm40"], ["created_at", "2016-10-01 03:25:11.121342"], ["updated_at", "2016-10-01 03:25:11.121342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6e9fe612-1385-4492-a72b-ebb40e183b22' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6e9fe612-1385-4492-a72b-ebb40e183b22' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$eThxSsUdkoroO8n65pHCseWMyNcmBdHORKEERE7JfWF.Wlqoh2r9m"], ["stripe_id", "cus_9IEavZCwyKVLII"], ["created_at", "2016-10-01 03:25:11.512215"], ["updated_at", "2016-10-01 03:25:11.512215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.8ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 13ms (Views: 12.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 23:25:14 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (28.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (40.0ms) Completed 200 OK in 328ms (Views: 301.0ms | ActiveRecord: 1.1ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-09-30 23:25:15 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"}  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.7ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-01 03:25:15.296594"], ["updated_at", "2016-10-01 03:25:15.296594"]] SQL (11.9ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-01 03:25:15.296594"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 465ms (ActiveRecord: 15.3ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-09-30 23:25:15 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/tang/admin (11.4ms) Completed 200 OK in 27ms (Views: 17.0ms | ActiveRecord: 0.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-09-30 23:25:15 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (5.3ms) Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.0ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-09-30 23:25:15 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"}  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/tang/admin (7.6ms) Completed 200 OK in 14ms (Views: 9.7ms | ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 43ms (Views: 28.2ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::CustomersController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/customers/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 34ms (Views: 15.8ms | ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 20ms (Views: 12.0ms | ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd76415fb-901b-42e4-9b69-c940916f530e' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd76415fb-901b-42e4-9b69-c940916f530e' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$qc7XkQhumwJTJe.yCX/RqeWLsZur3.Zsu3o1uosT4fowZpjOhZOZ."], ["stripe_id", "cus_9IQm4qGbsU0BUD"], ["created_at", "2016-10-01 16:00:58.725791"], ["updated_at", "2016-10-01 16:00:58.725791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd76415fb-901b-42e4-9b69-c940916f530e' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd76415fb-901b-42e4-9b69-c940916f530e' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$QVGB0V1CGUkdex3qN5VaNe0YZ1A43DLnXk0oGJZCkma/9QsrOG/m2"], ["stripe_id", "cus_9IQmTmmr7w2gJV"], ["created_at", "2016-10-01 16:00:59.528368"], ["updated_at", "2016-10-01 16:00:59.528368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd76415fb-901b-42e4-9b69-c940916f530e' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd76415fb-901b-42e4-9b69-c940916f530e' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$4T4otk/gdeBrqWnQxPmuw.2A5j7SwASUa/tqnLMFHvUoaG0Iax7y2"], ["stripe_id", "cus_9IQmBBmfGahZsv"], ["created_at", "2016-10-01 16:00:59.915323"], ["updated_at", "2016-10-01 16:00:59.915323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::SubscriptionsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/subscriptions/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 37ms (Views: 14.6ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd76415fb-901b-42e4-9b69-c940916f530e' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd76415fb-901b-42e4-9b69-c940916f530e' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$I6O0IJ5yuVibq03DRpUvneu8iObVAmzmW0tmZYFCilygoT4PDqxei"], ["stripe_id", "cus_9IQmfK772LL3he"], ["created_at", "2016-10-01 16:01:00.343742"], ["updated_at", "2016-10-01 16:01:00.343742"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd76415fb-901b-42e4-9b69-c940916f530e' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd76415fb-901b-42e4-9b69-c940916f530e' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$fExctn5.uO0MRZZDAII/UOSL7yaCi4hbM8lIXHBc3ZImQV.CNrpKe"], ["stripe_id", "cus_9IQmn7nKZdnzpd"], ["created_at", "2016-10-01 16:01:00.738507"], ["updated_at", "2016-10-01 16:01:00.738507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "tang_subscriptions"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd76415fb-901b-42e4-9b69-c940916f530e' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd76415fb-901b-42e4-9b69-c940916f530e' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$Cx6vDJyPZZWOzrPVE/Luh.Ww7xutuTPqDzvRiFcr.8tc1X1NRj3qe"], ["stripe_id", "cus_9IQmSlypBE8pGj"], ["created_at", "2016-10-01 16:01:01.129494"], ["updated_at", "2016-10-01 16:01:01.129494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd76415fb-901b-42e4-9b69-c940916f530e' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd76415fb-901b-42e4-9b69-c940916f530e' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$ILjC8Ed/5mYfoFy4/ewbp.AIsMm3weBYr1Jc0J2g29EGaX07YgBO."], ["stripe_id", "cus_9IQmeOAi2ggIfY"], ["created_at", "2016-10-01 16:01:01.561153"], ["updated_at", "2016-10-01 16:01:01.561153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd76415fb-901b-42e4-9b69-c940916f530e' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd76415fb-901b-42e4-9b69-c940916f530e' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$R8pRbHnD3Z0Bk.fEP8xKt.2zgJRXnNxy4zzhiBvKQ/DOgv9cPZ63."], ["stripe_id", "cus_9IQmVkaWlrjiwT"], ["created_at", "2016-10-01 16:01:01.948085"], ["updated_at", "2016-10-01 16:01:01.948085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd76415fb-901b-42e4-9b69-c940916f530e' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd76415fb-901b-42e4-9b69-c940916f530e' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$FOj9ea0ZEGgDsWWIK3WuIuDqu2XBa5gv0/vYkAKuEDAj8rY17aqpC"], ["stripe_id", "cus_9IQmS0j72csP3h"], ["created_at", "2016-10-01 16:01:02.336867"], ["updated_at", "2016-10-01 16:01:02.336867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd76415fb-901b-42e4-9b69-c940916f530e' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd76415fb-901b-42e4-9b69-c940916f530e' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$MFJK/yMBRJ1zY7zTGOxC5e3l1Ct3XgPFZtc1EXlxnhLzGWJiIG9sO"], ["stripe_id", "cus_9IQmosNZbV4sgu"], ["created_at", "2016-10-01 16:01:02.709930"], ["updated_at", "2016-10-01 16:01:02.709930"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd76415fb-901b-42e4-9b69-c940916f530e' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd76415fb-901b-42e4-9b69-c940916f530e' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$fxl3QVzJYI/5ZS7UUd3lpOaYTvBJCoMhfrX2kk/wdp/5lc6cUP1Au"], ["stripe_id", "cus_9IQmz5rM5xkOTt"], ["created_at", "2016-10-01 16:01:03.321798"], ["updated_at", "2016-10-01 16:01:03.321798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd76415fb-901b-42e4-9b69-c940916f530e' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd76415fb-901b-42e4-9b69-c940916f530e' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$QN8Eb688tSf5918a7gNgkOjAA8j2wXHT1fgA5OvBIMWO6B7eb09RO"], ["stripe_id", "cus_9IQmMTchgGGhC6"], ["created_at", "2016-10-01 16:01:03.718618"], ["updated_at", "2016-10-01 16:01:03.718618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd76415fb-901b-42e4-9b69-c940916f530e' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd76415fb-901b-42e4-9b69-c940916f530e' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$lSGU/SJolb42vVUy3z7b0uKbY9NPJC0Xnbkr9z2rDdbhjD6lyslHK"], ["stripe_id", "cus_9IQmwqIZUFhGPC"], ["created_at", "2016-10-01 16:01:04.113795"], ["updated_at", "2016-10-01 16:01:04.113795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd76415fb-901b-42e4-9b69-c940916f530e' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd76415fb-901b-42e4-9b69-c940916f530e' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$6nQ2GklCGYnCsSWgbnWhK.b32zewIIFzhQ3J6LAYfx/BK317NgFaa"], ["stripe_id", "cus_9IQm6D6l67ESvv"], ["created_at", "2016-10-01 16:01:04.496765"], ["updated_at", "2016-10-01 16:01:04.496765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd76415fb-901b-42e4-9b69-c940916f530e' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd76415fb-901b-42e4-9b69-c940916f530e' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$orUAr7EfmzZFNDaDug9if.71cKDQaX7N07tXwQ9E6bCLuiiLzpHfG"], ["stripe_id", "cus_9IQmYr5KR5ciBV"], ["created_at", "2016-10-01 16:01:04.930903"], ["updated_at", "2016-10-01 16:01:04.930903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd76415fb-901b-42e4-9b69-c940916f530e' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd76415fb-901b-42e4-9b69-c940916f530e' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$mLSqfxPWSqgGtI7RnFsHjeVCUO.oLFyyecs0GJ4ylpY3e7GuIcJpe"], ["stripe_id", "cus_9IQmelGyoysyp8"], ["created_at", "2016-10-01 16:01:05.348668"], ["updated_at", "2016-10-01 16:01:05.348668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 41ms (Views: 25.6ms | ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::CustomersController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/customers/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 33ms (Views: 12.2ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 21ms (Views: 11.6ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '43a6848d-c93c-4eea-8c05-99042ab44a99' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '43a6848d-c93c-4eea-8c05-99042ab44a99' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$aqLBkKSYvT8FLbaEye.JPOufUn2m5Ph8BMNbAwHkl6AjfW1ny6Nq."], ["stripe_id", "cus_9IQpN5rDy8ZrIm"], ["created_at", "2016-10-01 16:03:38.069544"], ["updated_at", "2016-10-01 16:03:38.069544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '43a6848d-c93c-4eea-8c05-99042ab44a99' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '43a6848d-c93c-4eea-8c05-99042ab44a99' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$yiISvLMLIhUizH3w3fBybuLCoaIFEHPaguZzXcCw2WxM8Y/1iNDPG"], ["stripe_id", "cus_9IQpKJm4ISUXUY"], ["created_at", "2016-10-01 16:03:38.601161"], ["updated_at", "2016-10-01 16:03:38.601161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '43a6848d-c93c-4eea-8c05-99042ab44a99' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '43a6848d-c93c-4eea-8c05-99042ab44a99' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$fJpGvrx3PTemzzUUmdx0g.pmNXe9Kl7IIVx1Y4420a78SJ4Jg2lDm"], ["stripe_id", "cus_9IQpW0l75NABaW"], ["created_at", "2016-10-01 16:03:39.000180"], ["updated_at", "2016-10-01 16:03:39.000180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::SubscriptionsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/subscriptions/new.html.erb within layouts/application (0.4ms) Completed 200 OK in 32ms (Views: 12.4ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '43a6848d-c93c-4eea-8c05-99042ab44a99' LIMIT 1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '43a6848d-c93c-4eea-8c05-99042ab44a99' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$MofhWo6Va4oRgK030rrBzuH8Op7ayXmOHxBNhDhnG6qVPmotdVx4e"], ["stripe_id", "cus_9IQphsF6zYdsKg"], ["created_at", "2016-10-01 16:03:39.551492"], ["updated_at", "2016-10-01 16:03:39.551492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '43a6848d-c93c-4eea-8c05-99042ab44a99' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '43a6848d-c93c-4eea-8c05-99042ab44a99' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$OXuYoj4K2EfAmWrjJSJkBu1Sws2NA51SmLIU/fFU8jPIr0D0I4/aW"], ["stripe_id", "cus_9IQpDitE8IPxIz"], ["created_at", "2016-10-01 16:03:40.004247"], ["updated_at", "2016-10-01 16:03:40.004247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SELECT COUNT(*) FROM "tang_subscriptions"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '43a6848d-c93c-4eea-8c05-99042ab44a99' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '43a6848d-c93c-4eea-8c05-99042ab44a99' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$Iq9f6sLFThmXgwTGWfDSvuvQJvBscLX7i8/L444ngKaojF9xlykxC"], ["stripe_id", "cus_9IQpNgsDn2NK4e"], ["created_at", "2016-10-01 16:03:40.457175"], ["updated_at", "2016-10-01 16:03:40.457175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '43a6848d-c93c-4eea-8c05-99042ab44a99' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '43a6848d-c93c-4eea-8c05-99042ab44a99' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$A9PJLvWfxfts.eQno3jbDud4XWiEyrySa7xdsfHTlP3Q5hJj9s5BG"], ["stripe_id", "cus_9IQp2BufcW6Ak3"], ["created_at", "2016-10-01 16:03:40.869241"], ["updated_at", "2016-10-01 16:03:40.869241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '43a6848d-c93c-4eea-8c05-99042ab44a99' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '43a6848d-c93c-4eea-8c05-99042ab44a99' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$th8eDm52ykp6q/sPaLcxAuIkX76FZ/QAAgvJk3jnvJFFNGSiv8geO"], ["stripe_id", "cus_9IQpkC2IOsFzrR"], ["created_at", "2016-10-01 16:03:41.304932"], ["updated_at", "2016-10-01 16:03:41.304932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '43a6848d-c93c-4eea-8c05-99042ab44a99' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '43a6848d-c93c-4eea-8c05-99042ab44a99' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$1rwX9gOLrmLLdWdJ2BYQhucsSyrc3puZOqKmwOeNLtSsgwQ13kcCu"], ["stripe_id", "cus_9IQpa74TxkdQ8V"], ["created_at", "2016-10-01 16:03:41.691233"], ["updated_at", "2016-10-01 16:03:41.691233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '43a6848d-c93c-4eea-8c05-99042ab44a99' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '43a6848d-c93c-4eea-8c05-99042ab44a99' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$v4m7YxfitkTh7Cubn6Iqxuc4.SBv0HCLvmZMUwhVBN4aI1BGyG46W"], ["stripe_id", "cus_9IQpoQSlfnvat3"], ["created_at", "2016-10-01 16:03:42.076065"], ["updated_at", "2016-10-01 16:03:42.076065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '43a6848d-c93c-4eea-8c05-99042ab44a99' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '43a6848d-c93c-4eea-8c05-99042ab44a99' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$dwMv8VtK9Gfuvp1UgogdZ.r4LmoQhYj4cVrdQnz8ww.cwh6WXDj4C"], ["stripe_id", "cus_9IQpY40AtQinpf"], ["created_at", "2016-10-01 16:03:42.894359"], ["updated_at", "2016-10-01 16:03:42.894359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '43a6848d-c93c-4eea-8c05-99042ab44a99' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '43a6848d-c93c-4eea-8c05-99042ab44a99' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$ePGXMj3uJecdKZVr3UX.kuUTK6z6t1ta3dvsXt45cbkC0CEGFq7XW"], ["stripe_id", "cus_9IQpB7Ii0Gee2h"], ["created_at", "2016-10-01 16:03:43.285474"], ["updated_at", "2016-10-01 16:03:43.285474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '43a6848d-c93c-4eea-8c05-99042ab44a99' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '43a6848d-c93c-4eea-8c05-99042ab44a99' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$s3qyverl/81gHiW1wBUTUus6lW/ky893RHeRyzE4nNvmGjtn5SD62"], ["stripe_id", "cus_9IQp4UQ4KMZIvg"], ["created_at", "2016-10-01 16:03:43.666734"], ["updated_at", "2016-10-01 16:03:43.666734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '43a6848d-c93c-4eea-8c05-99042ab44a99' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '43a6848d-c93c-4eea-8c05-99042ab44a99' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$DNdlbHCGDL8Nq/d2hxVhmO1Tc4VWoqH1eyjFeIkSfvspKh2I4v12W"], ["stripe_id", "cus_9IQp9uM3tHF3PS"], ["created_at", "2016-10-01 16:03:44.080669"], ["updated_at", "2016-10-01 16:03:44.080669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '43a6848d-c93c-4eea-8c05-99042ab44a99' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '43a6848d-c93c-4eea-8c05-99042ab44a99' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$tJPlHV.H.KTFbtxCGdjQaeGVNycFYCibkzQbE/gc3gVaSJkUvvMXS"], ["stripe_id", "cus_9IQpivppuQYX8D"], ["created_at", "2016-10-01 16:03:44.908442"], ["updated_at", "2016-10-01 16:03:44.908442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '43a6848d-c93c-4eea-8c05-99042ab44a99' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '43a6848d-c93c-4eea-8c05-99042ab44a99' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$JLSbqukzqeSb.DmV6sz41OjnStCfhSwCWS1jeo8X7NfVVkV7dE4H6"], ["stripe_id", "cus_9IQp7So8zYGk4i"], ["created_at", "2016-10-01 16:03:45.346171"], ["updated_at", "2016-10-01 16:03:45.346171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 39ms (Views: 24.0ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::CustomersController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/customers/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 28ms (Views: 10.7ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 19ms (Views: 10.9ms | ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '18baae1d-42e4-4029-9cbb-f23f5fdaaa1c' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '18baae1d-42e4-4029-9cbb-f23f5fdaaa1c' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$ncF5lfEDb5YYI0w2U8kH1epJCss08aZ7PTKIQS4cPNw6afx8X8SbG"], ["stripe_id", "cus_9IQsQcDIqXaLO6"], ["created_at", "2016-10-01 16:07:14.176672"], ["updated_at", "2016-10-01 16:07:14.176672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '18baae1d-42e4-4029-9cbb-f23f5fdaaa1c' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '18baae1d-42e4-4029-9cbb-f23f5fdaaa1c' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$D2x.oGDyDimw2SjKizMyne7Fu1LX/W8s6hATaQapT5BTR0dPn/AgK"], ["stripe_id", "cus_9IQseR2GLQKNbI"], ["created_at", "2016-10-01 16:07:15.017155"], ["updated_at", "2016-10-01 16:07:15.017155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '18baae1d-42e4-4029-9cbb-f23f5fdaaa1c' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '18baae1d-42e4-4029-9cbb-f23f5fdaaa1c' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$G.PWlG6TefJOKGy0CA7MD.E79apfnRxQJBpJhba20IYpaHUSbf3KK"], ["stripe_id", "cus_9IQsGlxEUhlYuE"], ["created_at", "2016-10-01 16:07:15.410757"], ["updated_at", "2016-10-01 16:07:15.410757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::SubscriptionsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/subscriptions/new.html.erb within layouts/application (0.4ms) Completed 200 OK in 51ms (Views: 11.0ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '18baae1d-42e4-4029-9cbb-f23f5fdaaa1c' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '18baae1d-42e4-4029-9cbb-f23f5fdaaa1c' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$QapWJhNFbeFkmcum4ERixO5PARcwv1FzCg/lM0z35Ccn5mN2iTlQi"], ["stripe_id", "cus_9IQs5oU9ILzsUX"], ["created_at", "2016-10-01 16:07:15.962782"], ["updated_at", "2016-10-01 16:07:15.962782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '18baae1d-42e4-4029-9cbb-f23f5fdaaa1c' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '18baae1d-42e4-4029-9cbb-f23f5fdaaa1c' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$BnUFO2N0l2XDmvY7lGRzNO9uCYfUwxH8Kq2FzC04X4bz36OVX.E9W"], ["stripe_id", "cus_9IQsGGFhM5h5Ga"], ["created_at", "2016-10-01 16:07:16.379157"], ["updated_at", "2016-10-01 16:07:16.379157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "tang_subscriptions"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '18baae1d-42e4-4029-9cbb-f23f5fdaaa1c' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '18baae1d-42e4-4029-9cbb-f23f5fdaaa1c' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$A7Pv54GpfQiU1CIvQbBMJeeZzHeQxdrk/ORBEcIyFKWjxyCkWNmce"], ["stripe_id", "cus_9IQsingElJomTY"], ["created_at", "2016-10-01 16:07:16.773424"], ["updated_at", "2016-10-01 16:07:16.773424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '18baae1d-42e4-4029-9cbb-f23f5fdaaa1c' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '18baae1d-42e4-4029-9cbb-f23f5fdaaa1c' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$r/grK.RtWLvvvqNd5Qjsmu.PuP1a6AI7TZaaTCHMefvv4SGBbFcla"], ["stripe_id", "cus_9IQsh3PXFs03L2"], ["created_at", "2016-10-01 16:07:17.165689"], ["updated_at", "2016-10-01 16:07:17.165689"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '18baae1d-42e4-4029-9cbb-f23f5fdaaa1c' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '18baae1d-42e4-4029-9cbb-f23f5fdaaa1c' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$4w5M4XdCjnilx0hSsfCFYOTHKxDLjPYhXimiofai6Gv7hSIQ8PN8a"], ["stripe_id", "cus_9IQs0w8Y37RnKb"], ["created_at", "2016-10-01 16:07:17.863788"], ["updated_at", "2016-10-01 16:07:17.863788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '18baae1d-42e4-4029-9cbb-f23f5fdaaa1c' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '18baae1d-42e4-4029-9cbb-f23f5fdaaa1c' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$7rUFbbUeruCgZWg6or1Ze.Tw0sWb.wkzkn6UTWMqTsw.2Nfd3/FaO"], ["stripe_id", "cus_9IQsXS7gj4ad2e"], ["created_at", "2016-10-01 16:07:18.706152"], ["updated_at", "2016-10-01 16:07:18.706152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '18baae1d-42e4-4029-9cbb-f23f5fdaaa1c' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '18baae1d-42e4-4029-9cbb-f23f5fdaaa1c' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$J548M0RfHw8LXr/vdhKcde9wvT2muIOs01gaj.ECWPELBB3IXRkh2"], ["stripe_id", "cus_9IQsUJ094Hq0z9"], ["created_at", "2016-10-01 16:07:19.098562"], ["updated_at", "2016-10-01 16:07:19.098562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '18baae1d-42e4-4029-9cbb-f23f5fdaaa1c' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '18baae1d-42e4-4029-9cbb-f23f5fdaaa1c' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$bbpNnKv6CRbOF9DSGKo0a.ODZSTQbmG4vRLOlaw3ju3rxm1wVMfwy"], ["stripe_id", "cus_9IQtqCDRrWqxIg"], ["created_at", "2016-10-01 16:07:19.486738"], ["updated_at", "2016-10-01 16:07:19.486738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '18baae1d-42e4-4029-9cbb-f23f5fdaaa1c' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '18baae1d-42e4-4029-9cbb-f23f5fdaaa1c' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$LwEBp5dRE.Tuefyl7loxCO6mDrIr8NXgOTuTlVcqo69D2R6citvay"], ["stripe_id", "cus_9IQtM1uxQlS9Cn"], ["created_at", "2016-10-01 16:07:19.868387"], ["updated_at", "2016-10-01 16:07:19.868387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '18baae1d-42e4-4029-9cbb-f23f5fdaaa1c' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '18baae1d-42e4-4029-9cbb-f23f5fdaaa1c' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$SfhwWgjcHCatpBgC63u/Be2PIxbd1.bGD3BAedY7D2Kb5Nl9Teahu"], ["stripe_id", "cus_9IQtqD0yF9VYcN"], ["created_at", "2016-10-01 16:07:20.247893"], ["updated_at", "2016-10-01 16:07:20.247893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '18baae1d-42e4-4029-9cbb-f23f5fdaaa1c' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '18baae1d-42e4-4029-9cbb-f23f5fdaaa1c' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$q.af2V.wbF0QVzc8xNfnhuBAU7b4Abu25s0s.fL8ItgBpbKxB.RU2"], ["stripe_id", "cus_9IQtsVF4zay8aq"], ["created_at", "2016-10-01 16:07:20.629415"], ["updated_at", "2016-10-01 16:07:20.629415"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '18baae1d-42e4-4029-9cbb-f23f5fdaaa1c' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '18baae1d-42e4-4029-9cbb-f23f5fdaaa1c' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$.LklWZ9Bi9lz3o5WyEgpRuOrwHw7BQK1vQ7Pp0wEOO1Hbp47BZ/8m"], ["stripe_id", "cus_9IQtR6066nMqFC"], ["created_at", "2016-10-01 16:07:21.000090"], ["updated_at", "2016-10-01 16:07:21.000090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '18baae1d-42e4-4029-9cbb-f23f5fdaaa1c' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '18baae1d-42e4-4029-9cbb-f23f5fdaaa1c' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$0SiPz/W3oe2cTUD7LO/wcerPtMLan21YpQDq/URKgWt7moy4OcXoC"], ["stripe_id", "cus_9IQtHT3uXqq48H"], ["created_at", "2016-10-01 16:07:21.376984"], ["updated_at", "2016-10-01 16:07:21.376984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a62d74ae-53d8-4503-9ff7-c888a5c4952a' LIMIT 1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a62d74ae-53d8-4503-9ff7-c888a5c4952a' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$8b6GxbVyewVacMc0oiHCs.p7n8hnNtjwZGVnChrrH288xQjiLCbIG"], ["stripe_id", "cus_9IQuiu6ox3CUBc"], ["created_at", "2016-10-01 16:08:52.790298"], ["updated_at", "2016-10-01 16:08:52.790298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 45ms (Views: 32.2ms | ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::CustomersController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/customers/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 12ms (Views: 11.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 21ms (Views: 13.3ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a62d74ae-53d8-4503-9ff7-c888a5c4952a' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a62d74ae-53d8-4503-9ff7-c888a5c4952a' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$66p0MlLMJ8mBUTHD3QLhvu35tzAUysWEQih8OfrQq7ZvW7/qFkjTW"], ["stripe_id", "cus_9IQumffKvPe76M"], ["created_at", "2016-10-01 16:08:53.808572"], ["updated_at", "2016-10-01 16:08:53.808572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a62d74ae-53d8-4503-9ff7-c888a5c4952a' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a62d74ae-53d8-4503-9ff7-c888a5c4952a' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$6B7S0Ejxh1EsByjrsC3WSusRokXL.XwU2wxf2U5RXUwyIeP2OWs3m"], ["stripe_id", "cus_9IQuUXWI9huwbD"], ["created_at", "2016-10-01 16:08:54.194394"], ["updated_at", "2016-10-01 16:08:54.194394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a62d74ae-53d8-4503-9ff7-c888a5c4952a' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a62d74ae-53d8-4503-9ff7-c888a5c4952a' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$y/TUIyfav.pBVl1Z7IFNpeMKb6Oe1Oee2zEtElEumQftJS26cO2.O"], ["stripe_id", "cus_9IQuGvtNEjhmFv"], ["created_at", "2016-10-01 16:08:54.595346"], ["updated_at", "2016-10-01 16:08:54.595346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::SubscriptionsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 4]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/subscriptions/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 35ms (Views: 13.7ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a62d74ae-53d8-4503-9ff7-c888a5c4952a' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a62d74ae-53d8-4503-9ff7-c888a5c4952a' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$BR7eA3RGrtbII60F8hY/cOzpZal0bbVu5alheaLQTVHdkXnvOjkgO"], ["stripe_id", "cus_9IQuGW1QD8H9JG"], ["created_at", "2016-10-01 16:08:55.005586"], ["updated_at", "2016-10-01 16:08:55.005586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a62d74ae-53d8-4503-9ff7-c888a5c4952a' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a62d74ae-53d8-4503-9ff7-c888a5c4952a' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$yIPa0EhITOCeGBtCkDCSI.Ep3AKDYRlvRjw2/G5.g2SqLsJB7KMUi"], ["stripe_id", "cus_9IQuolGHl8YMSQ"], ["created_at", "2016-10-01 16:08:55.804640"], ["updated_at", "2016-10-01 16:08:55.804640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SELECT COUNT(*) FROM "tang_subscriptions"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a62d74ae-53d8-4503-9ff7-c888a5c4952a' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a62d74ae-53d8-4503-9ff7-c888a5c4952a' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$RPI1MVW91iIMDmIBmHSYFOV4Kdy4rmIUSm5eeF2eXB63pNS40r72a"], ["stripe_id", "cus_9IQu4A5TGKiOBl"], ["created_at", "2016-10-01 16:08:56.210915"], ["updated_at", "2016-10-01 16:08:56.210915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a62d74ae-53d8-4503-9ff7-c888a5c4952a' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a62d74ae-53d8-4503-9ff7-c888a5c4952a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$z5dUGrMVDK0YKk9PvV3v6uZkYH7a6KHiEF9.B4MWera0WOKpXBz5K"], ["stripe_id", "cus_9IQuWkXyG9xVuT"], ["created_at", "2016-10-01 16:08:56.624860"], ["updated_at", "2016-10-01 16:08:56.624860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a62d74ae-53d8-4503-9ff7-c888a5c4952a' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a62d74ae-53d8-4503-9ff7-c888a5c4952a' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$76.wNYgGGb7zuVfOvZf5qOXlPZMP0otVMflMWv.J5rgJ9oNJG5BPO"], ["stripe_id", "cus_9IQu1J5bxn2ikn"], ["created_at", "2016-10-01 16:08:57.011345"], ["updated_at", "2016-10-01 16:08:57.011345"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a62d74ae-53d8-4503-9ff7-c888a5c4952a' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a62d74ae-53d8-4503-9ff7-c888a5c4952a' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$4kxq2gU2lDiIh/bSkiccLOMn9ZmAHUDIzANdrVbP4dkQXyGrCRFS."], ["stripe_id", "cus_9IQuFkFLOTV6Ng"], ["created_at", "2016-10-01 16:08:57.383549"], ["updated_at", "2016-10-01 16:08:57.383549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a62d74ae-53d8-4503-9ff7-c888a5c4952a' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a62d74ae-53d8-4503-9ff7-c888a5c4952a' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$MI3royEHWq.44nZUUYGTXeLuYn3t7UzN.ULFUaDwyTds5Y24Nx8KG"], ["stripe_id", "cus_9IQuGK5uEj6R0V"], ["created_at", "2016-10-01 16:08:57.764681"], ["updated_at", "2016-10-01 16:08:57.764681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a62d74ae-53d8-4503-9ff7-c888a5c4952a' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a62d74ae-53d8-4503-9ff7-c888a5c4952a' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$AmSt6PQOjDPufrUaS5f4DOx40jzEZs6ltCWJkt325RK9Te3WToP0."], ["stripe_id", "cus_9IQupq6Q8R9emY"], ["created_at", "2016-10-01 16:08:58.358832"], ["updated_at", "2016-10-01 16:08:58.358832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a62d74ae-53d8-4503-9ff7-c888a5c4952a' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a62d74ae-53d8-4503-9ff7-c888a5c4952a' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$9fcvJNs77KxWNssPYnIjEu6jkh2ZcPgCfO23TPZbIYcjeN1YmE.Fu"], ["stripe_id", "cus_9IQukPnbguRSJF"], ["created_at", "2016-10-01 16:08:58.746861"], ["updated_at", "2016-10-01 16:08:58.746861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a62d74ae-53d8-4503-9ff7-c888a5c4952a' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a62d74ae-53d8-4503-9ff7-c888a5c4952a' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$VMY.CZ3wQOD/wvQfy0VXHeisV04X/1GpHJhdgd5Hm3QJvJizauRKW"], ["stripe_id", "cus_9IQuGPix3qwXhx"], ["created_at", "2016-10-01 16:08:59.132015"], ["updated_at", "2016-10-01 16:08:59.132015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a62d74ae-53d8-4503-9ff7-c888a5c4952a' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a62d74ae-53d8-4503-9ff7-c888a5c4952a' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$HqB4dKo28upWt64DAn2kgubsznVP4q22DOnuMWa6XJQ/YhDKAw/ZG"], ["stripe_id", "cus_9IQuriIakiny4l"], ["created_at", "2016-10-01 16:08:59.540730"], ["updated_at", "2016-10-01 16:08:59.540730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a62d74ae-53d8-4503-9ff7-c888a5c4952a' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a62d74ae-53d8-4503-9ff7-c888a5c4952a' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$896uZegjfDdjuGEOsAp6Zur1.OxGqp0RFOZzsdj7VIg9t3NBTRYUe"], ["stripe_id", "cus_9IQumikSteXJ30"], ["created_at", "2016-10-01 16:08:59.977271"], ["updated_at", "2016-10-01 16:08:59.977271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a62d74ae-53d8-4503-9ff7-c888a5c4952a' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a62d74ae-53d8-4503-9ff7-c888a5c4952a' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$K57UKwYSQ/PxE.6h1tKafegW64s8s.IsydNIvqaZUPA1/OSAsVfWO"], ["stripe_id", "cus_9IQudXdQszBbuH"], ["created_at", "2016-10-01 16:09:00.359121"], ["updated_at", "2016-10-01 16:09:00.359121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (1.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1c4071d5-c415-4e8e-9d43-4994446dc302' LIMIT 1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1c4071d5-c415-4e8e-9d43-4994446dc302' LIMIT 1 SQL (26.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$M/T3uS2XnjEtpRgX.6DXtO7LJvIAfw2/lRYCPmqlzIf4btkjVVZpy"], ["stripe_id", "cus_9IQvuCxVFIwikS"], ["created_at", "2016-10-01 16:09:40.441512"], ["updated_at", "2016-10-01 16:09:40.441512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.4ms) Completed 200 OK in 49ms (Views: 30.9ms | ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "tang_coupons"  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::CustomersController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/customers/new.html.erb within layouts/application (0.4ms) Completed 200 OK in 18ms (Views: 16.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 25ms (Views: 13.3ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1c4071d5-c415-4e8e-9d43-4994446dc302' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1c4071d5-c415-4e8e-9d43-4994446dc302' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$SefoW8xWe61Fd7/UrnotA.kryXKbrU9.AlpgWmdqmtq6/h9w2Laci"], ["stripe_id", "cus_9IQvAkKBanW1sX"], ["created_at", "2016-10-01 16:09:41.459904"], ["updated_at", "2016-10-01 16:09:41.459904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1c4071d5-c415-4e8e-9d43-4994446dc302' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1c4071d5-c415-4e8e-9d43-4994446dc302' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$Ker5JtQNzDkI/rXYJg0DIeIKPnrNaOPcXqXccomO0JSOmlGu8DPhi"], ["stripe_id", "cus_9IQvp1l3Yd6cWI"], ["created_at", "2016-10-01 16:09:41.867363"], ["updated_at", "2016-10-01 16:09:41.867363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1c4071d5-c415-4e8e-9d43-4994446dc302' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1c4071d5-c415-4e8e-9d43-4994446dc302' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$BIUF6GY00vDXjCPWD6XZAOR2WNMTJATJGk/o3JUZ8gefvKUfgrosi"], ["stripe_id", "cus_9IQviNuT9JxBrr"], ["created_at", "2016-10-01 16:09:42.265505"], ["updated_at", "2016-10-01 16:09:42.265505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::SubscriptionsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 4]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/subscriptions/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 33ms (Views: 12.8ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1c4071d5-c415-4e8e-9d43-4994446dc302' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1c4071d5-c415-4e8e-9d43-4994446dc302' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$DGUMrl5wO/z39m9gJ0RQSumyLuHNx7hfeADskaqAo9eBdnbrE7abm"], ["stripe_id", "cus_9IQvZd5SCDHlo5"], ["created_at", "2016-10-01 16:09:42.694670"], ["updated_at", "2016-10-01 16:09:42.694670"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1c4071d5-c415-4e8e-9d43-4994446dc302' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1c4071d5-c415-4e8e-9d43-4994446dc302' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$x2rnW38Hkb8lOqD6/Eh0Z.0ciHsNBK2sTHW7t2XO69gt60sOp2cZu"], ["stripe_id", "cus_9IQv0OjUwvYmO7"], ["created_at", "2016-10-01 16:09:43.085992"], ["updated_at", "2016-10-01 16:09:43.085992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "tang_subscriptions"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1c4071d5-c415-4e8e-9d43-4994446dc302' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1c4071d5-c415-4e8e-9d43-4994446dc302' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$LTzLdFI1XnPINQUvSbgdyepTWEHN6dSEosFZ3aby46nJAN7pJFk2m"], ["stripe_id", "cus_9IQvyPjbxWa2MO"], ["created_at", "2016-10-01 16:09:43.481453"], ["updated_at", "2016-10-01 16:09:43.481453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1c4071d5-c415-4e8e-9d43-4994446dc302' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1c4071d5-c415-4e8e-9d43-4994446dc302' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$Vxw4zg6Mc.8LA8fb6UkN6OOtIkEq1Dyh6S/n/RkuCM/MaG2Yq1jCG"], ["stripe_id", "cus_9IQvfc9wkFu4zw"], ["created_at", "2016-10-01 16:09:44.029075"], ["updated_at", "2016-10-01 16:09:44.029075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1c4071d5-c415-4e8e-9d43-4994446dc302' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1c4071d5-c415-4e8e-9d43-4994446dc302' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$RPyDCwPUOA4XswKeDpb4VeOT1ZEjEVZYSZwnGH/z1G457oohOUiqG"], ["stripe_id", "cus_9IQvpErsiJxlON"], ["created_at", "2016-10-01 16:09:44.443284"], ["updated_at", "2016-10-01 16:09:44.443284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1c4071d5-c415-4e8e-9d43-4994446dc302' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1c4071d5-c415-4e8e-9d43-4994446dc302' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$k6EvuhsuJjljc2WSVzBJd.WdZz8hspUFlnRXsAcAi9tiZIc5JxLaS"], ["stripe_id", "cus_9IQvgQs21C9vV8"], ["created_at", "2016-10-01 16:09:44.829617"], ["updated_at", "2016-10-01 16:09:44.829617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1c4071d5-c415-4e8e-9d43-4994446dc302' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1c4071d5-c415-4e8e-9d43-4994446dc302' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$qjU7gM5Q.JR/bXfHAhpd8e4g.swJBPh0k2brpP2K90AxDTREtHltC"], ["stripe_id", "cus_9IQvan9tmd5vqw"], ["created_at", "2016-10-01 16:09:45.225815"], ["updated_at", "2016-10-01 16:09:45.225815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1c4071d5-c415-4e8e-9d43-4994446dc302' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1c4071d5-c415-4e8e-9d43-4994446dc302' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$HnCH6yFFr6pVcgzDrtANIOZzCH1DJ1t1rDsf0Ya3EGsfFK12REo9W"], ["stripe_id", "cus_9IQvyU1dQxEOgE"], ["created_at", "2016-10-01 16:09:45.610537"], ["updated_at", "2016-10-01 16:09:45.610537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1c4071d5-c415-4e8e-9d43-4994446dc302' LIMIT 1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1c4071d5-c415-4e8e-9d43-4994446dc302' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$1IXl2T555huLfDArKX1cOOnSV9S/neYj3LEhFcIf0BzSsv8Uy4KS2"], ["stripe_id", "cus_9IQvhSFoOprQoK"], ["created_at", "2016-10-01 16:09:46.340219"], ["updated_at", "2016-10-01 16:09:46.340219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1c4071d5-c415-4e8e-9d43-4994446dc302' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1c4071d5-c415-4e8e-9d43-4994446dc302' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$3N15ie5y9T8t5Tw3C1rbOO.e4azHi2WJLYtFqRqAXVZZb.6OrbliO"], ["stripe_id", "cus_9IQvlGZQXnhd39"], ["created_at", "2016-10-01 16:09:46.730020"], ["updated_at", "2016-10-01 16:09:46.730020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1c4071d5-c415-4e8e-9d43-4994446dc302' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1c4071d5-c415-4e8e-9d43-4994446dc302' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$bJmNp5EQltYDBuhnfg7IoOOXdb/HqJetcksZBHIKIEHzkqMrfP2X6"], ["stripe_id", "cus_9IQvgGE1NhkqEb"], ["created_at", "2016-10-01 16:09:47.110358"], ["updated_at", "2016-10-01 16:09:47.110358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1c4071d5-c415-4e8e-9d43-4994446dc302' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1c4071d5-c415-4e8e-9d43-4994446dc302' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$9RI5IwBF2dhj6sXbhl2gxOuRrMqNEQvGgktmIS9RAzVvcI9HYxbFG"], ["stripe_id", "cus_9IQvVMp4NDjD7p"], ["created_at", "2016-10-01 16:09:47.552341"], ["updated_at", "2016-10-01 16:09:47.552341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1c4071d5-c415-4e8e-9d43-4994446dc302' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '1c4071d5-c415-4e8e-9d43-4994446dc302' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$zG3K7IgXi.MmzNhmuiPi6OPotwK73fR1kIbD427tH12IIATfJq25S"], ["stripe_id", "cus_9IQvMqeFOT4SLz"], ["created_at", "2016-10-01 16:09:47.937933"], ["updated_at", "2016-10-01 16:09:47.937933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 10ms (Views: 9.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9e7398d3-87a3-44cb-86ac-8d4947093fee' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9e7398d3-87a3-44cb-86ac-8d4947093fee' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$X5SUU/I0BtQdKXGbKi70E.bniNK5mn8.y5gdUZ7rWLB./xJcmAKjK"], ["stripe_id", "cus_9IQxoQqzs0waXN"], ["created_at", "2016-10-01 16:11:42.334265"], ["updated_at", "2016-10-01 16:11:42.334265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.5ms) Completed 200 OK in 43ms (Views: 28.6ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::CustomersController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/customers/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 12ms (Views: 11.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.4ms) Completed 200 OK in 20ms (Views: 12.9ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9e7398d3-87a3-44cb-86ac-8d4947093fee' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9e7398d3-87a3-44cb-86ac-8d4947093fee' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$7oTcgiucJklz2kScCQzcTO04wrDsmuq3ooVvuJcbr5RH1wtnXqutG"], ["stripe_id", "cus_9IQx3krfjZHIEu"], ["created_at", "2016-10-01 16:11:43.349493"], ["updated_at", "2016-10-01 16:11:43.349493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9e7398d3-87a3-44cb-86ac-8d4947093fee' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9e7398d3-87a3-44cb-86ac-8d4947093fee' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$WjvptpzkQxIMGFxLNzr.6uaEkS6txbyvimzq2vIlD1d2MzcOYckna"], ["stripe_id", "cus_9IQxSjrwcAqi7c"], ["created_at", "2016-10-01 16:11:43.747947"], ["updated_at", "2016-10-01 16:11:43.747947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9e7398d3-87a3-44cb-86ac-8d4947093fee' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9e7398d3-87a3-44cb-86ac-8d4947093fee' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$U60F90OPCWUcvkmEO/XOQOZss9Tpo.AETRrmYZUJ6tzfN3d79pcke"], ["stripe_id", "cus_9IQxu3NCDvN0Tw"], ["created_at", "2016-10-01 16:11:44.141940"], ["updated_at", "2016-10-01 16:11:44.141940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::SubscriptionsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 4]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/subscriptions/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 31ms (Views: 13.1ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9e7398d3-87a3-44cb-86ac-8d4947093fee' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9e7398d3-87a3-44cb-86ac-8d4947093fee' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$aGn45a8dWFHndt.dKEjYiu6fZioj8ajWCGYJzToktX.gYKvmCgvkm"], ["stripe_id", "cus_9IQx43xH5UHPAl"], ["created_at", "2016-10-01 16:11:44.566014"], ["updated_at", "2016-10-01 16:11:44.566014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9e7398d3-87a3-44cb-86ac-8d4947093fee' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9e7398d3-87a3-44cb-86ac-8d4947093fee' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$HE5tqHIxnTNNctKgu0AD1uLAGMn6/zgumLvmcUZWAFUDojF3WcAuu"], ["stripe_id", "cus_9IQxSchZvR53eQ"], ["created_at", "2016-10-01 16:11:45.034594"], ["updated_at", "2016-10-01 16:11:45.034594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "tang_subscriptions"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9e7398d3-87a3-44cb-86ac-8d4947093fee' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9e7398d3-87a3-44cb-86ac-8d4947093fee' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$UqGj93qwF1XgZNYQGPZLzuswkIv9o43t9l5JR4J71QFAzb4SjJw3W"], ["stripe_id", "cus_9IQxGPWaDu6Jhb"], ["created_at", "2016-10-01 16:11:45.411945"], ["updated_at", "2016-10-01 16:11:45.411945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9e7398d3-87a3-44cb-86ac-8d4947093fee' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9e7398d3-87a3-44cb-86ac-8d4947093fee' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$nRDRHtrgwX6HPRwjZGtfGOQAmdxmcxHQO2OPubJ1C7ZsRKDkiki1K"], ["stripe_id", "cus_9IQxzHnX05UCAc"], ["created_at", "2016-10-01 16:11:46.198398"], ["updated_at", "2016-10-01 16:11:46.198398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9e7398d3-87a3-44cb-86ac-8d4947093fee' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9e7398d3-87a3-44cb-86ac-8d4947093fee' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$wdgaZB.pDAfZuj0C7zua7.W.jvHuXYX2XZYBzTyK71fNram1Bd6Gm"], ["stripe_id", "cus_9IQxO0J9TTMpmS"], ["created_at", "2016-10-01 16:11:46.603522"], ["updated_at", "2016-10-01 16:11:46.603522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9e7398d3-87a3-44cb-86ac-8d4947093fee' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9e7398d3-87a3-44cb-86ac-8d4947093fee' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$PULDeoK9G1wmfDdzW1zrVOWqULxvH89dM6lmTdEerg2H2vqPXfhp6"], ["stripe_id", "cus_9IQxk9AV6BhBC1"], ["created_at", "2016-10-01 16:11:46.999009"], ["updated_at", "2016-10-01 16:11:46.999009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9e7398d3-87a3-44cb-86ac-8d4947093fee' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9e7398d3-87a3-44cb-86ac-8d4947093fee' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$vsRvufrtJuiL.3n/m/owVe1pjYQqMcQtGFDfvTzDOrkluxW2a3zSW"], ["stripe_id", "cus_9IQxyEeClYHIvy"], ["created_at", "2016-10-01 16:11:47.443363"], ["updated_at", "2016-10-01 16:11:47.443363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9e7398d3-87a3-44cb-86ac-8d4947093fee' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9e7398d3-87a3-44cb-86ac-8d4947093fee' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$kYnpHsAjUt5x0Eni8qy/dOhIH2B5J0AUJiBm4arDFcOd6v/8Fg/oS"], ["stripe_id", "cus_9IQxuXDYFZYBKa"], ["created_at", "2016-10-01 16:11:48.003263"], ["updated_at", "2016-10-01 16:11:48.003263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9e7398d3-87a3-44cb-86ac-8d4947093fee' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9e7398d3-87a3-44cb-86ac-8d4947093fee' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$yWrdNX3XoRjbur8nmtpxIOt6pKVtoyHGoUMJS3iSQExmPu24pmg72"], ["stripe_id", "cus_9IQxnfzNIxuJcB"], ["created_at", "2016-10-01 16:11:48.514558"], ["updated_at", "2016-10-01 16:11:48.514558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9e7398d3-87a3-44cb-86ac-8d4947093fee' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9e7398d3-87a3-44cb-86ac-8d4947093fee' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$7rizF7vYVhB2j0xCbn61ye4SgqVW3FICHfhTBZJ8Q8XcK.ELm6s9G"], ["stripe_id", "cus_9IQxzH8uI2r7ep"], ["created_at", "2016-10-01 16:11:48.898545"], ["updated_at", "2016-10-01 16:11:48.898545"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9e7398d3-87a3-44cb-86ac-8d4947093fee' LIMIT 1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9e7398d3-87a3-44cb-86ac-8d4947093fee' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$dloEpC/ncKtGMNpg77Z7T.ZhTLqmd1v/YnDkj1FwNDWPU7bF52NCy"], ["stripe_id", "cus_9IQxOlmbeIDbxj"], ["created_at", "2016-10-01 16:11:49.291880"], ["updated_at", "2016-10-01 16:11:49.291880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9e7398d3-87a3-44cb-86ac-8d4947093fee' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9e7398d3-87a3-44cb-86ac-8d4947093fee' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$4X6/iizzYFrQrrtSFPFRDuTXzu5rtl0y6ITAGVVVGgm3/EOmbQooe"], ["stripe_id", "cus_9IQxwwzdbBx63B"], ["created_at", "2016-10-01 16:11:49.749439"], ["updated_at", "2016-10-01 16:11:49.749439"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9e7398d3-87a3-44cb-86ac-8d4947093fee' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9e7398d3-87a3-44cb-86ac-8d4947093fee' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$W9T0sUGzA2/9TWM/uj7wceB65GwCD5BDTGtD/XxJ81gEHMpKP9OWS"], ["stripe_id", "cus_9IQxwRQFJFapAD"], ["created_at", "2016-10-01 16:11:50.142829"], ["updated_at", "2016-10-01 16:11:50.142829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 8ms (Views: 8.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ce7af12a-8ba4-4539-bbb1-3c1d7240f843' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ce7af12a-8ba4-4539-bbb1-3c1d7240f843' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$l5GkKa2MaE/BJmhxPikZCuty99vbx.JLLxWf2T1JcpvXUGwm5/kvG"], ["stripe_id", "cus_9IRQbCDBAzWKyD"], ["created_at", "2016-10-01 16:40:42.736423"], ["updated_at", "2016-10-01 16:40:42.736423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.6ms) Completed 200 OK in 57ms (Views: 41.9ms | ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::CustomersController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/customers/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 17ms (Views: 16.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.4ms) Completed 200 OK in 21ms (Views: 12.6ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ce7af12a-8ba4-4539-bbb1-3c1d7240f843' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ce7af12a-8ba4-4539-bbb1-3c1d7240f843' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$r/oG6zV0ayWthmYrUOVfGeXNjQ/9rlIpDoWZDlTQmEmjqSbgSyWR."], ["stripe_id", "cus_9IRQk2OALMQwcD"], ["created_at", "2016-10-01 16:40:43.390585"], ["updated_at", "2016-10-01 16:40:43.390585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ce7af12a-8ba4-4539-bbb1-3c1d7240f843' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ce7af12a-8ba4-4539-bbb1-3c1d7240f843' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$5r7OIql.x1QTSoaz5n3cCO7EAkNiqR0Uo/WWhN37SYItkdOwjr0sm"], ["stripe_id", "cus_9IRQOk4Ha24Rsz"], ["created_at", "2016-10-01 16:40:43.764991"], ["updated_at", "2016-10-01 16:40:43.764991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ce7af12a-8ba4-4539-bbb1-3c1d7240f843' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ce7af12a-8ba4-4539-bbb1-3c1d7240f843' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$eSz10EmVkJPfCQIWK1zb5OOU3gZVWpKNb8zp.B9J/3qKVw4.EUOFu"], ["stripe_id", "cus_9IRQg0i1i3AwBT"], ["created_at", "2016-10-01 16:40:44.146041"], ["updated_at", "2016-10-01 16:40:44.146041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::SubscriptionsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 4]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/subscriptions/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 39ms (Views: 15.0ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ce7af12a-8ba4-4539-bbb1-3c1d7240f843' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ce7af12a-8ba4-4539-bbb1-3c1d7240f843' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$pWANXf41KxoBbi2rxbCCRuKnhBf5lSy4E34YypGqhvNa1im6wREaK"], ["stripe_id", "cus_9IRQ8DyWDwy9Ub"], ["created_at", "2016-10-01 16:40:44.584474"], ["updated_at", "2016-10-01 16:40:44.584474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ce7af12a-8ba4-4539-bbb1-3c1d7240f843' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ce7af12a-8ba4-4539-bbb1-3c1d7240f843' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$bxJ2w5/U6ZJicdhpRP/AmerWxHg5sYhS3BCH9ibhJUXYxNZ.HBiaC"], ["stripe_id", "cus_9IRQ8XEXwG3suU"], ["created_at", "2016-10-01 16:40:44.961444"], ["updated_at", "2016-10-01 16:40:44.961444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "tang_subscriptions"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ce7af12a-8ba4-4539-bbb1-3c1d7240f843' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ce7af12a-8ba4-4539-bbb1-3c1d7240f843' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$qBXuK4blJZ/PHwvlcmXhE.WXm6macpHYS271suXPxE0CNZwbYIYHS"], ["stripe_id", "cus_9IRQJJZ2NSHp0A"], ["created_at", "2016-10-01 16:40:45.347262"], ["updated_at", "2016-10-01 16:40:45.347262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ce7af12a-8ba4-4539-bbb1-3c1d7240f843' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ce7af12a-8ba4-4539-bbb1-3c1d7240f843' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$eWUv8Cv/EwKi8UqJ.QiIIOxJ8fWkp7SNBvMbnkNtetAWBZ.anHwE."], ["stripe_id", "cus_9IRQwi2IM5jnz5"], ["created_at", "2016-10-01 16:40:45.812977"], ["updated_at", "2016-10-01 16:40:45.812977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ce7af12a-8ba4-4539-bbb1-3c1d7240f843' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ce7af12a-8ba4-4539-bbb1-3c1d7240f843' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$Mfp7OoFEhldtFQdmrTuvpuO9ngI.B.zz6m2xNxbMtLR4p706Ycs2u"], ["stripe_id", "cus_9IRQGYMqeKc528"], ["created_at", "2016-10-01 16:40:46.202426"], ["updated_at", "2016-10-01 16:40:46.202426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ce7af12a-8ba4-4539-bbb1-3c1d7240f843' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ce7af12a-8ba4-4539-bbb1-3c1d7240f843' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$83u31bgu8Axxf9PKw2YTWe7ssQciV5Fa0EjgNv5DlHKmcpFNixHKi"], ["stripe_id", "cus_9IRQRWbdDv6Ltw"], ["created_at", "2016-10-01 16:40:46.881317"], ["updated_at", "2016-10-01 16:40:46.881317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ce7af12a-8ba4-4539-bbb1-3c1d7240f843' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ce7af12a-8ba4-4539-bbb1-3c1d7240f843' LIMIT 1 SQL (1.9ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$7LhYttOHRejnDY.LnJ8Bg.rIJN8/FY4daLJLdkYbvErU49KnXCMJS"], ["stripe_id", "cus_9IRQk0eTkLGCCm"], ["created_at", "2016-10-01 16:40:47.462764"], ["updated_at", "2016-10-01 16:40:47.462764"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ce7af12a-8ba4-4539-bbb1-3c1d7240f843' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ce7af12a-8ba4-4539-bbb1-3c1d7240f843' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$tBrn1130BrWNQLuvRNYazOUJuAxq78w97DN0qgHzXtQ7nMtZv5gEO"], ["stripe_id", "cus_9IRQhKctCfRAws"], ["created_at", "2016-10-01 16:40:47.845886"], ["updated_at", "2016-10-01 16:40:47.845886"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ce7af12a-8ba4-4539-bbb1-3c1d7240f843' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ce7af12a-8ba4-4539-bbb1-3c1d7240f843' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$vRslqa2nQMyJxhg14wmih.1q0alMpoL88NA7qpF9iUmwreIV8EJQe"], ["stripe_id", "cus_9IRQ7U6PWaSqya"], ["created_at", "2016-10-01 16:40:48.241911"], ["updated_at", "2016-10-01 16:40:48.241911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ce7af12a-8ba4-4539-bbb1-3c1d7240f843' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ce7af12a-8ba4-4539-bbb1-3c1d7240f843' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$lmF.dfJNyWDdmfoQR/B4uebBL0./GBxco0xsMdzBAC53aDdrMCvke"], ["stripe_id", "cus_9IRQ010l1Grnqs"], ["created_at", "2016-10-01 16:40:48.830205"], ["updated_at", "2016-10-01 16:40:48.830205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ce7af12a-8ba4-4539-bbb1-3c1d7240f843' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ce7af12a-8ba4-4539-bbb1-3c1d7240f843' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$Xx3a/LCncJXgv3GQK3w2duWtsuRmpxM1pTN4F6FDk50FkHIrl3xWy"], ["stripe_id", "cus_9IRQOx4UYth8U9"], ["created_at", "2016-10-01 16:40:49.211292"], ["updated_at", "2016-10-01 16:40:49.211292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ce7af12a-8ba4-4539-bbb1-3c1d7240f843' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ce7af12a-8ba4-4539-bbb1-3c1d7240f843' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$m3XgzDcprWVTASrFojq3Besz71mYdMhAXsgyfEBo0lF.drABGOst."], ["stripe_id", "cus_9IRQnkLQGkWiCc"], ["created_at", "2016-10-01 16:40:49.593939"], ["updated_at", "2016-10-01 16:40:49.593939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ce7af12a-8ba4-4539-bbb1-3c1d7240f843' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ce7af12a-8ba4-4539-bbb1-3c1d7240f843' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$9u0.ugV5ptHoDTnO0xxI9O1ODXdpjmtejAaF6.hA1RiVojJsDONni"], ["stripe_id", "cus_9IRQZjxbS4yRzq"], ["created_at", "2016-10-01 16:40:49.980625"], ["updated_at", "2016-10-01 16:40:49.980625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.5ms) Completed 200 OK in 10ms (Views: 9.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-01 12:40:53 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (31.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (43.2ms) Completed 200 OK in 454ms (Views: 425.2ms | ActiveRecord: 1.0ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-01 12:40:54 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"}  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.6ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-01 16:40:54.048398"], ["updated_at", "2016-10-01 16:40:54.048398"]] SQL (5.6ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-01 16:40:54.048398"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 463ms (ActiveRecord: 8.6ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-01 12:40:54 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (13.6ms) Completed 200 OK in 30ms (Views: 20.4ms | ActiveRecord: 0.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-01 12:40:54 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.9ms) Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-01 12:40:54 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"}  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.1ms) Completed 200 OK in 10ms (Views: 5.7ms | ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9566018a-eaa9-4d5b-83a7-e4458f31fbae' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9566018a-eaa9-4d5b-83a7-e4458f31fbae' LIMIT 1 SQL (1.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$UJws4Q.EflwyTbR5A86rWuhNLWdUOVIOb.qE7gujOqP7pxj.YDTyy"], ["stripe_id", "cus_9IRRNspnKkUCsA"], ["created_at", "2016-10-01 16:42:07.065617"], ["updated_at", "2016-10-01 16:42:07.065617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 43ms (Views: 27.3ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::CustomersController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/customers/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 11ms (Views: 10.6ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 21ms (Views: 13.1ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9566018a-eaa9-4d5b-83a7-e4458f31fbae' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9566018a-eaa9-4d5b-83a7-e4458f31fbae' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$p8G8/BLL87y31KvCLZitg.xeeujqFyaY1tjouw7wqiNDqH52RmEOK"], ["stripe_id", "cus_9IRRGgT99D6dUK"], ["created_at", "2016-10-01 16:42:08.018869"], ["updated_at", "2016-10-01 16:42:08.018869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9566018a-eaa9-4d5b-83a7-e4458f31fbae' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9566018a-eaa9-4d5b-83a7-e4458f31fbae' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$1ld4FZsBfWJR7Upg1qUAn.9cHr/atgalIOst8vLAKdu3tYKXQF.0m"], ["stripe_id", "cus_9IRRQFJgKIOI09"], ["created_at", "2016-10-01 16:42:08.418651"], ["updated_at", "2016-10-01 16:42:08.418651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9566018a-eaa9-4d5b-83a7-e4458f31fbae' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9566018a-eaa9-4d5b-83a7-e4458f31fbae' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$Hxw7ZJFC94Vxj2bAOoBfU./F9MmROhu4MXqz9r9bi6oXItEg.r7HS"], ["stripe_id", "cus_9IRRvjNyzkxP5u"], ["created_at", "2016-10-01 16:42:08.825654"], ["updated_at", "2016-10-01 16:42:08.825654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::SubscriptionsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 4]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/subscriptions/new.html.erb within layouts/application (0.4ms) Completed 200 OK in 30ms (Views: 11.2ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9566018a-eaa9-4d5b-83a7-e4458f31fbae' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9566018a-eaa9-4d5b-83a7-e4458f31fbae' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$o706IyOlkBBWWEhM4wvsLe7kHC86Sq1T4HMrClB8FzrpF/Ab4qw9W"], ["stripe_id", "cus_9IRRf3WU3Du0dW"], ["created_at", "2016-10-01 16:42:09.244498"], ["updated_at", "2016-10-01 16:42:09.244498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9566018a-eaa9-4d5b-83a7-e4458f31fbae' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9566018a-eaa9-4d5b-83a7-e4458f31fbae' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$Vq3AJmRd5ek1TSE62M51wOdW9/v.9C8WHpUHGhOZ2gb7W7bMTLoZi"], ["stripe_id", "cus_9IRRN6R7ONPmNe"], ["created_at", "2016-10-01 16:42:09.698052"], ["updated_at", "2016-10-01 16:42:09.698052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "tang_subscriptions"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9566018a-eaa9-4d5b-83a7-e4458f31fbae' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9566018a-eaa9-4d5b-83a7-e4458f31fbae' LIMIT 1 SQL (1.8ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$xPO.Sw./z0V6IiIP7dItBumy8f2tsYrlnSWf13HKk5pMkCOsYzGzq"], ["stripe_id", "cus_9IRReriXdTP1t3"], ["created_at", "2016-10-01 16:42:10.073427"], ["updated_at", "2016-10-01 16:42:10.073427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9566018a-eaa9-4d5b-83a7-e4458f31fbae' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9566018a-eaa9-4d5b-83a7-e4458f31fbae' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$T6MJgA8L.NrJS.OrCVwpuuEShsi3UystWInyBalI2ovWe8WHF1KdS"], ["stripe_id", "cus_9IRR9ZJ0CHfMTq"], ["created_at", "2016-10-01 16:42:10.466630"], ["updated_at", "2016-10-01 16:42:10.466630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9566018a-eaa9-4d5b-83a7-e4458f31fbae' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9566018a-eaa9-4d5b-83a7-e4458f31fbae' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$r5y4tJrzTF3bnhIE3zuK3uLI9kaIsNQsZMyjYCWFAcTIEm/IjRNQS"], ["stripe_id", "cus_9IRRedgl9klKOB"], ["created_at", "2016-10-01 16:42:10.868650"], ["updated_at", "2016-10-01 16:42:10.868650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9566018a-eaa9-4d5b-83a7-e4458f31fbae' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9566018a-eaa9-4d5b-83a7-e4458f31fbae' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$YAcLnTufAcmHzcjALbG5qOLmA0.sDXO/MY53slyceaduzSg.vhtW6"], ["stripe_id", "cus_9IRRyUaZ9k0sTf"], ["created_at", "2016-10-01 16:42:11.292151"], ["updated_at", "2016-10-01 16:42:11.292151"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9566018a-eaa9-4d5b-83a7-e4458f31fbae' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9566018a-eaa9-4d5b-83a7-e4458f31fbae' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$A.llfa.eKssgrX9DIVCSmesAhbu1DVnd70i9e.lI0.cf6XpGJQ/dC"], ["stripe_id", "cus_9IRRYgQ6Dwau4Q"], ["created_at", "2016-10-01 16:42:11.674526"], ["updated_at", "2016-10-01 16:42:11.674526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9566018a-eaa9-4d5b-83a7-e4458f31fbae' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9566018a-eaa9-4d5b-83a7-e4458f31fbae' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$EO/G/ZkqAvMYXPb8UP9YiOa8pgRXbsGZsbHOsnx0eZkLpKl.Qrw8O"], ["stripe_id", "cus_9IRR1NjGE4QXbT"], ["created_at", "2016-10-01 16:42:12.592830"], ["updated_at", "2016-10-01 16:42:12.592830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9566018a-eaa9-4d5b-83a7-e4458f31fbae' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9566018a-eaa9-4d5b-83a7-e4458f31fbae' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$c5Xnr0tOQdpJow7Z47xkxuNtq0/8nlOXIyHmO4i4k3VXhNwrlR5Le"], ["stripe_id", "cus_9IRRnSH1HztQpx"], ["created_at", "2016-10-01 16:42:13.074593"], ["updated_at", "2016-10-01 16:42:13.074593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9566018a-eaa9-4d5b-83a7-e4458f31fbae' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9566018a-eaa9-4d5b-83a7-e4458f31fbae' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$tJiewEYokI/C1s3QmN/0FOZ.s3FD7VOMKpcNDyYM4IFcciSm3St7K"], ["stripe_id", "cus_9IRRS2r5N4J0zk"], ["created_at", "2016-10-01 16:42:13.443215"], ["updated_at", "2016-10-01 16:42:13.443215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9566018a-eaa9-4d5b-83a7-e4458f31fbae' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9566018a-eaa9-4d5b-83a7-e4458f31fbae' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$gInC5a5kJyunbvffQ8dx9.8k6w8Pnsep7wEXFQJF3WKuHIZQCVKnq"], ["stripe_id", "cus_9IRReQibQ27r3r"], ["created_at", "2016-10-01 16:42:13.834003"], ["updated_at", "2016-10-01 16:42:13.834003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9566018a-eaa9-4d5b-83a7-e4458f31fbae' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9566018a-eaa9-4d5b-83a7-e4458f31fbae' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$jE2bB9DsHNSMEhGv.fWcVeWXP6BWYznUrDyHujTU/VFxeHIADvloC"], ["stripe_id", "cus_9IRRoNhdVo0Fhl"], ["created_at", "2016-10-01 16:42:14.250409"], ["updated_at", "2016-10-01 16:42:14.250409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9566018a-eaa9-4d5b-83a7-e4458f31fbae' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9566018a-eaa9-4d5b-83a7-e4458f31fbae' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$POzwA7QboMirQh/yMXNVn.QB.RXyAj5Fk3thBVGOLfPh4tBX4iTEO"], ["stripe_id", "cus_9IRRXyi0O3PYOk"], ["created_at", "2016-10-01 16:42:14.639710"], ["updated_at", "2016-10-01 16:42:14.639710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-01 12:42:18 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (23.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (30.6ms) Completed 200 OK in 330ms (Views: 304.7ms | ActiveRecord: 0.9ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-01 12:42:18 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"}  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.7ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-01 16:42:18.494213"], ["updated_at", "2016-10-01 16:42:18.494213"]] SQL (11.6ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-01 16:42:18.494213"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 516ms (ActiveRecord: 14.8ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-01 12:42:18 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (10.2ms) Completed 200 OK in 35ms (Views: 26.0ms | ActiveRecord: 0.3ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-01 12:42:19 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.9ms) Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.0ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-01 12:42:19 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"}  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (6.4ms) Completed 200 OK in 14ms (Views: 9.3ms | ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-01 12:42:19 -0400  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-01 12:42:19 -0400  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 49ms (Views: 33.7ms | ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by Tang::Admin::CustomersController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/customers/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 42ms (Views: 11.7ms | ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 22ms (Views: 14.5ms | ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd624a2a6-ee48-4632-b459-ae7a438b693f' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd624a2a6-ee48-4632-b459-ae7a438b693f' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$zz2sjfixG6R3NlOZwt3n4.QwYKVItztYVY.tL8RIZEpGqtDH7cocq"], ["stripe_id", "cus_9IRWye1DiGiCyh"], ["created_at", "2016-10-01 16:47:08.981983"], ["updated_at", "2016-10-01 16:47:08.981983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd624a2a6-ee48-4632-b459-ae7a438b693f' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd624a2a6-ee48-4632-b459-ae7a438b693f' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$kiVxdKG7HMABUWCnZ7zktOywrOxl8gA9VEpRzlJ6Xt/NLGP8Xvp4u"], ["stripe_id", "cus_9IRWoAJ4B6SpBK"], ["created_at", "2016-10-01 16:47:09.802220"], ["updated_at", "2016-10-01 16:47:09.802220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd624a2a6-ee48-4632-b459-ae7a438b693f' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd624a2a6-ee48-4632-b459-ae7a438b693f' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$7YRONUNRsJU9NXJlZoSUe.OdfzrYKopYkge2okWTXQoEOS/.hcgz."], ["stripe_id", "cus_9IRWZp41QbxbTF"], ["created_at", "2016-10-01 16:47:10.197291"], ["updated_at", "2016-10-01 16:47:10.197291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::SubscriptionsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/subscriptions/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 33ms (Views: 12.3ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd624a2a6-ee48-4632-b459-ae7a438b693f' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd624a2a6-ee48-4632-b459-ae7a438b693f' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$/N5abiiYlBkB/O0lS8gtHehPagYrM8qIjW2VG6qEwp3G36ZCctd16"], ["stripe_id", "cus_9IRWrHX7d4Xoiz"], ["created_at", "2016-10-01 16:47:10.617070"], ["updated_at", "2016-10-01 16:47:10.617070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd624a2a6-ee48-4632-b459-ae7a438b693f' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd624a2a6-ee48-4632-b459-ae7a438b693f' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$hEeP1H0OHwSJw3ls3r0XLuVD4d09koKuq6wSCP6bQ0KvgErFtNcxq"], ["stripe_id", "cus_9IRWifT14f0mXd"], ["created_at", "2016-10-01 16:47:10.998191"], ["updated_at", "2016-10-01 16:47:10.998191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "tang_subscriptions"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd624a2a6-ee48-4632-b459-ae7a438b693f' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd624a2a6-ee48-4632-b459-ae7a438b693f' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$bMTv3QlDnpNWm5857qVe7.NoVZmpow9fRydqlJroW8HBM34/r8gzO"], ["stripe_id", "cus_9IRW2FvXWPKbGE"], ["created_at", "2016-10-01 16:47:11.414191"], ["updated_at", "2016-10-01 16:47:11.414191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd624a2a6-ee48-4632-b459-ae7a438b693f' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd624a2a6-ee48-4632-b459-ae7a438b693f' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$eYvGKguETSV9m3l08dI3z.s4MbhnAF85PQZYKq9Xpz7QBruRrDRTG"], ["stripe_id", "cus_9IRWMzD7EwcPc8"], ["created_at", "2016-10-01 16:47:11.823595"], ["updated_at", "2016-10-01 16:47:11.823595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd624a2a6-ee48-4632-b459-ae7a438b693f' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd624a2a6-ee48-4632-b459-ae7a438b693f' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$tCVDBTcO5pxqg1TYEs3wh.GbH9F3LHrohZHA7r5xW4D/TLyPc.NB2"], ["stripe_id", "cus_9IRWl1M1WzqNWB"], ["created_at", "2016-10-01 16:47:12.231788"], ["updated_at", "2016-10-01 16:47:12.231788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd624a2a6-ee48-4632-b459-ae7a438b693f' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd624a2a6-ee48-4632-b459-ae7a438b693f' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$U7NuA70FgbIG9jHSUqwAnuA8.mW64cA6UXuYR0k8T5UWR/7FZn7D."], ["stripe_id", "cus_9IRWAgZ8WkFolU"], ["created_at", "2016-10-01 16:47:12.953409"], ["updated_at", "2016-10-01 16:47:12.953409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd624a2a6-ee48-4632-b459-ae7a438b693f' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd624a2a6-ee48-4632-b459-ae7a438b693f' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$0qcQ9Uj.kfYaqFk.t5pzZOwiR4Wi1jD8HjFYHq5ZERPrjMZ1xZQCC"], ["stripe_id", "cus_9IRW2jQGR1aDLg"], ["created_at", "2016-10-01 16:47:13.324175"], ["updated_at", "2016-10-01 16:47:13.324175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd624a2a6-ee48-4632-b459-ae7a438b693f' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd624a2a6-ee48-4632-b459-ae7a438b693f' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$.QYEKKn2/Zc5sP3rtWpHaeR7van8O3owG/2zhMzdsLVLYohVlm6Bm"], ["stripe_id", "cus_9IRWzcZxDCQmD2"], ["created_at", "2016-10-01 16:47:13.714997"], ["updated_at", "2016-10-01 16:47:13.714997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd624a2a6-ee48-4632-b459-ae7a438b693f' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd624a2a6-ee48-4632-b459-ae7a438b693f' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$xy7WPGxTiB0egamuVMfy4uJdln7s7/xsfK40KYIrVqB/QB.QTspwK"], ["stripe_id", "cus_9IRWNwF3Ci8oHJ"], ["created_at", "2016-10-01 16:47:14.122758"], ["updated_at", "2016-10-01 16:47:14.122758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd624a2a6-ee48-4632-b459-ae7a438b693f' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd624a2a6-ee48-4632-b459-ae7a438b693f' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$p7yRuGi.joxPwJsAec68jef/bR94snv3Tna4vbhXlgm3UaFb1b.Cu"], ["stripe_id", "cus_9IRWG5n6C1Ljow"], ["created_at", "2016-10-01 16:47:14.503456"], ["updated_at", "2016-10-01 16:47:14.503456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd624a2a6-ee48-4632-b459-ae7a438b693f' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd624a2a6-ee48-4632-b459-ae7a438b693f' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$CVZ5m5LuUgOhiSJB//oxlu1GUtWcQxMMM5JqXdU001LBi7qxUDnky"], ["stripe_id", "cus_9IRWhgZUlinCyz"], ["created_at", "2016-10-01 16:47:14.877904"], ["updated_at", "2016-10-01 16:47:14.877904"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd624a2a6-ee48-4632-b459-ae7a438b693f' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd624a2a6-ee48-4632-b459-ae7a438b693f' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$4vByETcRvQq.JZtpPCA13ufSK6vvoVE2ipnQoVQuaugsW1BPm.VCq"], ["stripe_id", "cus_9IRWFLr8cKKbUh"], ["created_at", "2016-10-01 16:47:15.254073"], ["updated_at", "2016-10-01 16:47:15.254073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd624a2a6-ee48-4632-b459-ae7a438b693f' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd624a2a6-ee48-4632-b459-ae7a438b693f' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$bfZuw15zHopWd9hkh.Ri5.kC6cooSS/fGf6egxEdgVFpZ0Q0TDCaS"], ["stripe_id", "cus_9IRWCrwkyR3euK"], ["created_at", "2016-10-01 16:47:15.925456"], ["updated_at", "2016-10-01 16:47:15.925456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-01 12:47:19 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (26.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (36.1ms) Completed 200 OK in 348ms (Views: 318.0ms | ActiveRecord: 0.9ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-01 12:47:19 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"}  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.7ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-01 16:47:19.826197"], ["updated_at", "2016-10-01 16:47:19.826197"]] SQL (18.5ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-01 16:47:19.826197"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 887ms (ActiveRecord: 21.7ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-01 12:47:20 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (24.9ms) Completed 200 OK in 44ms (Views: 31.0ms | ActiveRecord: 0.3ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-01 12:47:20 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.9ms) Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.0ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-01 12:47:20 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"}  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (5.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (7.1ms) Completed 200 OK in 15ms (Views: 9.7ms | ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/account/billing" for 127.0.0.1 at 2016-10-01 12:47:20 -0400  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/account/billing" for 127.0.0.1 at 2016-10-01 12:47:20 -0400  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 43ms (Views: 27.1ms | ActiveRecord: 2.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::CustomersController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/customers/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 49ms (Views: 21.6ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (1.0ms) SELECT COUNT(*) FROM "users"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 31ms (Views: 23.1ms | ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '77348f30-e956-4e74-a0ca-6bdece9d07c5' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '77348f30-e956-4e74-a0ca-6bdece9d07c5' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$NPjo/MzeWzj8IeXSVNQjaumrkOpqDp2UTTdWJV9quph74llHqsUry"], ["stripe_id", "cus_9IRX6JOjVXrM4z"], ["created_at", "2016-10-01 16:48:04.044617"], ["updated_at", "2016-10-01 16:48:04.044617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '77348f30-e956-4e74-a0ca-6bdece9d07c5' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '77348f30-e956-4e74-a0ca-6bdece9d07c5' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$ECZQuN540BD6mW2Hocfd8uhRkypwtxmZaYhQV2hhTk3cgeyleKTf6"], ["stripe_id", "cus_9IRXyViZBm43Wk"], ["created_at", "2016-10-01 16:48:04.901544"], ["updated_at", "2016-10-01 16:48:04.901544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '77348f30-e956-4e74-a0ca-6bdece9d07c5' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '77348f30-e956-4e74-a0ca-6bdece9d07c5' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$CtTEwEIney34DeQsS1Mxvu1fjcfXP1T3kMBk1CQc5xhv7LwS8fw3K"], ["stripe_id", "cus_9IRXjKdGJZw5hQ"], ["created_at", "2016-10-01 16:48:05.331532"], ["updated_at", "2016-10-01 16:48:05.331532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::SubscriptionsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/subscriptions/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 34ms (Views: 11.7ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '77348f30-e956-4e74-a0ca-6bdece9d07c5' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '77348f30-e956-4e74-a0ca-6bdece9d07c5' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$tCI/2nIJgtIzXFQHb3bL9uP/xzX6CIRq1DEfb3LTp4TpkwkuIhg2a"], ["stripe_id", "cus_9IRXthPKV8klmU"], ["created_at", "2016-10-01 16:48:05.760180"], ["updated_at", "2016-10-01 16:48:05.760180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '77348f30-e956-4e74-a0ca-6bdece9d07c5' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '77348f30-e956-4e74-a0ca-6bdece9d07c5' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$7vDUKUnUzU1g576YFNeQPeO8.0IsyGk1dUH2BIPRvrlr3K4Z4AFdq"], ["stripe_id", "cus_9IRXNIZRf9CNfw"], ["created_at", "2016-10-01 16:48:06.161478"], ["updated_at", "2016-10-01 16:48:06.161478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "tang_subscriptions"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '77348f30-e956-4e74-a0ca-6bdece9d07c5' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '77348f30-e956-4e74-a0ca-6bdece9d07c5' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$CyJAI741UoxMfJlWFR3d9OFjEDyIkF0OcobPxcEAV9IJPRPlVuvNm"], ["stripe_id", "cus_9IRXaN4hYuEG1b"], ["created_at", "2016-10-01 16:48:06.542373"], ["updated_at", "2016-10-01 16:48:06.542373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '77348f30-e956-4e74-a0ca-6bdece9d07c5' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '77348f30-e956-4e74-a0ca-6bdece9d07c5' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$TzgYUe7mKUaBB4be2ci8V.R5KSa.2YdhtCzuCVstsiW1bJYo0fRWa"], ["stripe_id", "cus_9IRXxEHv8aKxao"], ["created_at", "2016-10-01 16:48:07.038910"], ["updated_at", "2016-10-01 16:48:07.038910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '77348f30-e956-4e74-a0ca-6bdece9d07c5' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '77348f30-e956-4e74-a0ca-6bdece9d07c5' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$XjxY1Z0/tsTlEyVyP2cPDO8k1/o0BN3IMLNg30s5IEZTuZdPerM12"], ["stripe_id", "cus_9IRXWvSAvVtmzW"], ["created_at", "2016-10-01 16:48:07.446650"], ["updated_at", "2016-10-01 16:48:07.446650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '77348f30-e956-4e74-a0ca-6bdece9d07c5' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '77348f30-e956-4e74-a0ca-6bdece9d07c5' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$Dk3Ru3IjAsZijjPg6x8bqeotVCswEQMPNi24JJ1wqlSCfWw/.JE2y"], ["stripe_id", "cus_9IRXuEeaKKP1F3"], ["created_at", "2016-10-01 16:48:07.867955"], ["updated_at", "2016-10-01 16:48:07.867955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '77348f30-e956-4e74-a0ca-6bdece9d07c5' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '77348f30-e956-4e74-a0ca-6bdece9d07c5' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$/QgKhaj5ediSglCb5bDK/uhoS72xGaKwFrycw1Pp2YNg.p9WefjTa"], ["stripe_id", "cus_9IRX8B4RKJptC3"], ["created_at", "2016-10-01 16:48:08.287120"], ["updated_at", "2016-10-01 16:48:08.287120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '77348f30-e956-4e74-a0ca-6bdece9d07c5' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '77348f30-e956-4e74-a0ca-6bdece9d07c5' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$LayMw0zPNNk/MCHKkduwEuwbyt7BiJjRgeK9gHcZfzPqiB1RuTyUO"], ["stripe_id", "cus_9IRXJZwk2tnu8z"], ["created_at", "2016-10-01 16:48:08.692680"], ["updated_at", "2016-10-01 16:48:08.692680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '77348f30-e956-4e74-a0ca-6bdece9d07c5' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '77348f30-e956-4e74-a0ca-6bdece9d07c5' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$YsF./phaC/4f9mL2zHMYlOcpFB7PK4AJU0pdIrC5XeNb1htT7sOb6"], ["stripe_id", "cus_9IRXZO7t8KpE9i"], ["created_at", "2016-10-01 16:48:09.113321"], ["updated_at", "2016-10-01 16:48:09.113321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '77348f30-e956-4e74-a0ca-6bdece9d07c5' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '77348f30-e956-4e74-a0ca-6bdece9d07c5' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$4qhuGDud4kJKmHbZ3ZQDfOzlE2TWLrhzA7aEV9aIWOy71I447ND86"], ["stripe_id", "cus_9IRXFH4rPaqLJ9"], ["created_at", "2016-10-01 16:48:09.504579"], ["updated_at", "2016-10-01 16:48:09.504579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '77348f30-e956-4e74-a0ca-6bdece9d07c5' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '77348f30-e956-4e74-a0ca-6bdece9d07c5' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$5F/JPqiLQyavt1h4x428S.AeYr.ckRwmveSR966D.nLA7uXXGwBTq"], ["stripe_id", "cus_9IRXaRGQ4S1Ty4"], ["created_at", "2016-10-01 16:48:09.891698"], ["updated_at", "2016-10-01 16:48:09.891698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '77348f30-e956-4e74-a0ca-6bdece9d07c5' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '77348f30-e956-4e74-a0ca-6bdece9d07c5' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$L0mkv3VISrz0ZdTqLDql5eGhNxqtqvzheSjdL6ISeL4A7qFxhyR7C"], ["stripe_id", "cus_9IRXvdkYDX1n2k"], ["created_at", "2016-10-01 16:48:10.270658"], ["updated_at", "2016-10-01 16:48:10.270658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '77348f30-e956-4e74-a0ca-6bdece9d07c5' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '77348f30-e956-4e74-a0ca-6bdece9d07c5' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$5mdwgRzUjGWDSQf4oH2AOuwu2sgzKtLohJyAFnrpj2yz0Tcq.qvKy"], ["stripe_id", "cus_9IRX5TrFSGnyvF"], ["created_at", "2016-10-01 16:48:10.705348"], ["updated_at", "2016-10-01 16:48:10.705348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-01 12:48:14 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (27.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (36.8ms) Completed 200 OK in 343ms (Views: 313.2ms | ActiveRecord: 1.0ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-01 12:48:15 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"}  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.6ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (1.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-01 16:48:15.092862"], ["updated_at", "2016-10-01 16:48:15.092862"]] SQL (11.9ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-01 16:48:15.092862"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 452ms (ActiveRecord: 15.9ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-01 12:48:15 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (11.1ms) Completed 200 OK in 37ms (Views: 26.5ms | ActiveRecord: 0.3ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-01 12:48:15 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (5.0ms) Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.0ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-01 12:48:15 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"}  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (5.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (6.6ms) Completed 200 OK in 15ms (Views: 10.0ms | ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/account/billing" for 127.0.0.1 at 2016-10-01 12:48:15 -0400 Processing by Tang::Account::BillingsController#show as HTML Completed 401 Unauthorized in 5ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-01 12:48:15 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.4ms) Rendered devise/sessions/new.html.erb within layouts/application (13.2ms) Completed 200 OK in 28ms (Views: 24.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/account/billing" for 127.0.0.1 at 2016-10-01 12:48:15 -0400 Processing by Tang::Account::BillingsController#show as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-01 12:48:15 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.3ms) Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (6.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Completed 401 Unauthorized in 8ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (1.9ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '522ed30d-be60-4424-9a5f-f3a506393d80' LIMIT 1 SQL (23.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$DP5ohIyWGbbPAB/1sywTLe8jC7mIc4xifcgoe/ONXx63n4Lt7Oct."], ["stripe_id", "522ed30d-be60-4424-9a5f-f3a506393d80"], ["created_at", "2016-10-02 08:23:40.218687"], ["updated_at", "2016-10-02 08:23:40.218687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '522ed30d-be60-4424-9a5f-f3a506393d80' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$qkjZthmVDDWOzrSSLFkXUej71Tmk1hwBPC.lxNTi7PIflu.mn/tfe"], ["stripe_id", "522ed30d-be60-4424-9a5f-f3a506393d80"], ["created_at", "2016-10-02 08:23:40.248715"], ["updated_at", "2016-10-02 08:23:40.248715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '522ed30d-be60-4424-9a5f-f3a506393d80' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$oLW8OP2FIlTe0LXalge8wueGq74AZjlAhO3AhbeH6SO9G9khde97K"], ["stripe_id", "522ed30d-be60-4424-9a5f-f3a506393d80"], ["created_at", "2016-10-02 08:23:40.254285"], ["updated_at", "2016-10-02 08:23:40.254285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '522ed30d-be60-4424-9a5f-f3a506393d80' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$tSL8xJQ.n2sqTEPqa8OWYux8lglA6ch/c05NwJ107//MMP185oIzi"], ["stripe_id", "522ed30d-be60-4424-9a5f-f3a506393d80"], ["created_at", "2016-10-02 08:23:40.259799"], ["updated_at", "2016-10-02 08:23:40.259799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '522ed30d-be60-4424-9a5f-f3a506393d80' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$J7SVccevtjrGRetJp2T3y.h.3A1BvDsBHs9lL5JhM4XSIb1FMkZPe"], ["stripe_id", "522ed30d-be60-4424-9a5f-f3a506393d80"], ["created_at", "2016-10-02 08:23:40.264954"], ["updated_at", "2016-10-02 08:23:40.264954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "tang_subscriptions"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '522ed30d-be60-4424-9a5f-f3a506393d80' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$dYX7M4Rwr3X7iN2BgXTG5.hsoYRlbofu3tiOecfGkqAalleoAzQjS"], ["stripe_id", "522ed30d-be60-4424-9a5f-f3a506393d80"], ["created_at", "2016-10-02 08:23:40.272451"], ["updated_at", "2016-10-02 08:23:40.272451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '522ed30d-be60-4424-9a5f-f3a506393d80' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$JPz1tRlknu2SfX8jabfFze8STTED.8UutyXjw5.1rZXz1S/R6XrBO"], ["stripe_id", "522ed30d-be60-4424-9a5f-f3a506393d80"], ["created_at", "2016-10-02 08:23:40.277703"], ["updated_at", "2016-10-02 08:23:40.277703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '522ed30d-be60-4424-9a5f-f3a506393d80' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$LEDGGX2sMOqzOlB6AIBG0OVzSBiEsEnbsRh92mCrRoGzAUkx.nouW"], ["stripe_id", "522ed30d-be60-4424-9a5f-f3a506393d80"], ["created_at", "2016-10-02 08:23:40.283348"], ["updated_at", "2016-10-02 08:23:40.283348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '522ed30d-be60-4424-9a5f-f3a506393d80' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$pxpyRR492an6U.2HFcDSlOjmDccM7746kHaQBUlQMDKzlENoRbLum"], ["stripe_id", "522ed30d-be60-4424-9a5f-f3a506393d80"], ["created_at", "2016-10-02 08:23:40.288587"], ["updated_at", "2016-10-02 08:23:40.288587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '522ed30d-be60-4424-9a5f-f3a506393d80' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$5nWY92/V95U8IrvlqAJDju/zqW2f2tfXXXMqyA48kBt1EnzkoxWdy"], ["stripe_id", "522ed30d-be60-4424-9a5f-f3a506393d80"], ["created_at", "2016-10-02 08:23:40.294664"], ["updated_at", "2016-10-02 08:23:40.294664"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '522ed30d-be60-4424-9a5f-f3a506393d80' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$Grh52I/eSKKnYL3QuOkxfulnKKAqflC/JTMP4JyNl3v8Z0OS/swKy"], ["stripe_id", "522ed30d-be60-4424-9a5f-f3a506393d80"], ["created_at", "2016-10-02 08:23:40.301418"], ["updated_at", "2016-10-02 08:23:40.301418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '522ed30d-be60-4424-9a5f-f3a506393d80' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$4LzUO5SLj0epT9.b4.r4n.QBdhvP1BvkKo3Y01VpEayYxyj8a1kEC"], ["stripe_id", "522ed30d-be60-4424-9a5f-f3a506393d80"], ["created_at", "2016-10-02 08:23:40.307499"], ["updated_at", "2016-10-02 08:23:40.307499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '522ed30d-be60-4424-9a5f-f3a506393d80' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$CtnOAVs7Wq.8fDMJdxjoWei.gfY16CwPQGeWZ8mnbgYphFgWswc/G"], ["stripe_id", "522ed30d-be60-4424-9a5f-f3a506393d80"], ["created_at", "2016-10-02 08:23:40.313810"], ["updated_at", "2016-10-02 08:23:40.313810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '522ed30d-be60-4424-9a5f-f3a506393d80' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$2ZAgQbKLvIaudx0cte0HluCF2VfCQKM0ml3MbVHhZLuSkd8CUN1Ju"], ["stripe_id", "522ed30d-be60-4424-9a5f-f3a506393d80"], ["created_at", "2016-10-02 08:23:40.320151"], ["updated_at", "2016-10-02 08:23:40.320151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '522ed30d-be60-4424-9a5f-f3a506393d80' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$3OCQHTbC1qn32efOiCf7F.2WdD3/KL7shHRrVKqoWzqzs.uupQ6Y6"], ["stripe_id", "522ed30d-be60-4424-9a5f-f3a506393d80"], ["created_at", "2016-10-02 08:23:40.327501"], ["updated_at", "2016-10-02 08:23:40.327501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '522ed30d-be60-4424-9a5f-f3a506393d80' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$vs1qbf8CPNb3SK2JPasgFuDi1qLRkOFFg1iW1aiDJW.RzbiwTg5E6"], ["stripe_id", "522ed30d-be60-4424-9a5f-f3a506393d80"], ["created_at", "2016-10-02 08:23:40.334001"], ["updated_at", "2016-10-02 08:23:40.334001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 17ms (Views: 16.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$j8yVzKrtBV3rXuANfeFAVOGplJOddmxfBksUiqjvI9gFs6mF2rwXa"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.426723"], ["updated_at", "2016-10-02 08:25:14.426723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$MysmxdrEV/sbV3Qw5s0ZKeg.IVCwPUB74IEmg1q7KKs9pn7p/dMhy"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.445119"], ["updated_at", "2016-10-02 08:25:14.445119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$JNrTqIygWWFNQhLCkEHMfuzz/ARwsU1WC1NojCmfHenPe732GR0Um"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.451484"], ["updated_at", "2016-10-02 08:25:14.451484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 44ms (Views: 25.2ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$RmKDZ.yR76gLGX0XuW.omOM.YjKlq9Hh4jyHtLsqeY0eRXkQ6jA3C"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.507473"], ["updated_at", "2016-10-02 08:25:14.507473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$IBrVKROOpUNFOOl/V6tVF.Kx//5eWYsp6bj2KJ/vyxL3TtMT4g2.G"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.513972"], ["updated_at", "2016-10-02 08:25:14.513972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$ZZTbGZaIgcX9wIUxZEW0XO4iw34PswRzoEV/rNT6DwtA0lYRPrFfe"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.522949"], ["updated_at", "2016-10-02 08:25:14.522949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$7PJK3Hn7ijTcE32loSiRme3SUbXQJGUFuLqFb1YX5O0oODv3MN2kO"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.528501"], ["updated_at", "2016-10-02 08:25:14.528501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$bbNMnBABg7Ow.kjXpRR3NOuGC65MPHH/USWp6CWHqSkiBABWqpga."], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.533743"], ["updated_at", "2016-10-02 08:25:14.533743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$tcumvT6q3erz3WaS.Rbh3OR0UHwh99iele7QOyslaOAWenAOBM7xu"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.538867"], ["updated_at", "2016-10-02 08:25:14.538867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$pxP75tC11kEiQwrrTozkCu6rczsyyCDF19liMShvD/yqjKIBZHSau"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.544012"], ["updated_at", "2016-10-02 08:25:14.544012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$fl8N0GFZ7BPm1NV9ebACaOopMoUzMxvAqC/u/tcIoT84y6o8NTgLe"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.549441"], ["updated_at", "2016-10-02 08:25:14.549441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$0w5TUIsdSC98AyPuxy.Y1Oapc.brxFL1rVIZJBh2JTp3Dw5rbD35S"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.554645"], ["updated_at", "2016-10-02 08:25:14.554645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$Akp5bEWnOMpgpzGrGM8fJ.QGefTULM4ACS1iyQfuX8TVzpmHsIAv2"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.559996"], ["updated_at", "2016-10-02 08:25:14.559996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$XewR7MW612VJPQwmMWArFu0jbLW0joxKe4LkPB2XJy458VjwOpBui"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.566959"], ["updated_at", "2016-10-02 08:25:14.566959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$hRsoRof1WgmqIaW0CNRQGecXBWDncOAnKzg.n6t4gigqLZGTL6Heu"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.573195"], ["updated_at", "2016-10-02 08:25:14.573195"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$n7rPVuewrroAMbucvZEVf.jigKkprAgMlaMWVCZ6xsUHmMJNYjjQu"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.580912"], ["updated_at", "2016-10-02 08:25:14.580912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$4yQPzyx2mVPVp.lDfGoyROwoLXK/gRx71kPd0cnR6t0UB1UZllFIS"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.587480"], ["updated_at", "2016-10-02 08:25:14.587480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$IXCKY3.B0DOzEopCQc7zUekE0jB/wj7P8BKlYrEm116/SHPCJcpx6"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.594493"], ["updated_at", "2016-10-02 08:25:14.594493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$XNa6nKltBUegfOxps0/wF.cG9BvwqUCzv.RDyzih3p/YqPJQEso82"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.601042"], ["updated_at", "2016-10-02 08:25:14.601042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$gREB56o/lA43vTQt8QTQZOb7NEMDMZaH.MgyQ4EXHFmxfT6r.mCWW"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.607226"], ["updated_at", "2016-10-02 08:25:14.607226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$oTufRfA0YtCBvewHrMcqI.Y5SXc8C/L289SRBCLI91e5J0I0mDbr2"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.612777"], ["updated_at", "2016-10-02 08:25:14.612777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$mCroFcMXBJSOIyuG9vT35OR3LvTOpBtZRBml4Kpfep9PdQNwwz/lS"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.618612"], ["updated_at", "2016-10-02 08:25:14.618612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$gCv8CVx8HgYSrOaYhjBbBuOjkG2K4BtM/OIZYE9Dz7VGxfwxY3Qse"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.624360"], ["updated_at", "2016-10-02 08:25:14.624360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$cDnkDDWY0zfIJIAtJ6c/MOElEmVl1mahiSKr1.4mcDr0nbv/fKdH."], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.629735"], ["updated_at", "2016-10-02 08:25:14.629735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$AWp9JFLAIUkDCSBvCPbLC.m6si0blftWaytSoIFWKOoMitQW5NE/S"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.635146"], ["updated_at", "2016-10-02 08:25:14.635146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$qnfUr8Sj9/SrjdzZKP8J6ezt3D4KlxeRcVBgR64c5tZTgsHWf0.eK"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.640511"], ["updated_at", "2016-10-02 08:25:14.640511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$zPQjsRLNHpoEmsdCKud8vOVjlWMKeMWYbFoMRIpte1lkg94BIYEQS"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.645865"], ["updated_at", "2016-10-02 08:25:14.645865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$0oZ6oLl4SI6P03bNnUVaGOv/PvMjxWaz07s7/uCh2D.KEzRFXDyK6"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.651580"], ["updated_at", "2016-10-02 08:25:14.651580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$IszVlo4ZzTcLEb1UaGj15.TBByzqK118U..4Sm2GSqqpFHacl9SFi"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.657371"], ["updated_at", "2016-10-02 08:25:14.657371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$vtftI9LK7VrSW02/d3I8euJGmzXppSSCIejRNqqEFEqVbXaxrEcUa"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.662889"], ["updated_at", "2016-10-02 08:25:14.662889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$eWPdYf.ey57mghShGGNQl.HnmT1PNzhbZ.QZEGPZjFryzWioEkgL."], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.668509"], ["updated_at", "2016-10-02 08:25:14.668509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$/N1/X/ktjbhOuOnKu2AVDO6NcGhJFAOcNsI/ADOoK88cINGYTCury"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.673941"], ["updated_at", "2016-10-02 08:25:14.673941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$RalmJzc/SwaSrpB1UZbXseHPJgyRjwjg/kR32pwoDrqMObEpMNWFG"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.679407"], ["updated_at", "2016-10-02 08:25:14.679407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$b1.sBGooFyb9b8YpAbOaoOA1r28/qmxU323rQPr/D4z.iRi9pqJjC"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.684709"], ["updated_at", "2016-10-02 08:25:14.684709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$my.sLblt71wp7gj3B9ckauCHqv/dVTbEa7bBN9lz9Bq7FMrI0IbSG"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.690816"], ["updated_at", "2016-10-02 08:25:14.690816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 23ms (Views: 12.5ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$9SHRkwKtska9EkTBrbS/veoTEZJnE8gA9C8cIFl1cIbrXltZbjR76"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.724175"], ["updated_at", "2016-10-02 08:25:14.724175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$X8QuDLIYrEUmJSVu63vNvOfKSXXCs7O/fN4nSoaew7Oygqyf1G5o2"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.730288"], ["updated_at", "2016-10-02 08:25:14.730288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$URVS/qN75vN2Je9Q6Yd4QOhSw9gwPAr03KrIRsippfvwcpnQuUxa."], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.738075"], ["updated_at", "2016-10-02 08:25:14.738075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$7vFFNK0wohsWVDPufmXUe.5kYsy8GSdDRxCBYF6oMULFq3Cxj15pK"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.743965"], ["updated_at", "2016-10-02 08:25:14.743965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$p7teQdvLvt9cFrx3zVneo.CSIK/6Si196I2.kIYVs7wFR4kZvU8kq"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.749515"], ["updated_at", "2016-10-02 08:25:14.749515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$rebsJGlxXhDBCVfKmmClYeKrANRS4fG5hfTZapMdBvSUPBNTMbe/S"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.756617"], ["updated_at", "2016-10-02 08:25:14.756617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$urWDtM77ytygMMiI45yhHudGN.sH.xRLJXVuaYOXaRASTu/YiRITy"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.762522"], ["updated_at", "2016-10-02 08:25:14.762522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$z6J6KMBXqktYeCqJZkhF/uCCiqEqmq0zGuICkHe80kB4hz/p8vMm6"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.767955"], ["updated_at", "2016-10-02 08:25:14.767955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$YLwSc669XSxwEB.Vqy91eOwOZBppgLrsTg8OwlmitiKqf6mbIDsru"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.773394"], ["updated_at", "2016-10-02 08:25:14.773394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$hIPY42ID458raR9NcYkBn.LXs2AvqbVRU0UB6NT0COIwA6eUaKWS6"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.779327"], ["updated_at", "2016-10-02 08:25:14.779327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$JcLAtDYlEbcDbNnewX5SyumlgBW.Tu9rmKEawAAKIFeVQ6AEA2RhO"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.785325"], ["updated_at", "2016-10-02 08:25:14.785325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$unwLCggxMIlSei1DH2LSS./sBo5saTEHNVN1T3h2NskQdPbOLvBo6"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.791099"], ["updated_at", "2016-10-02 08:25:14.791099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$2Itqm/qI9R7dP7Rx/fSXpuHgWBE4EV0Zzs/soh7qcu7yV767DvzSK"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.796677"], ["updated_at", "2016-10-02 08:25:14.796677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$lN83ezxgrySqw1gkYb69Ku8I3JFq67Kv.t3Z7FOfwd/WfU.PBRB3m"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.802596"], ["updated_at", "2016-10-02 08:25:14.802596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$D3GMbqf7ryHA1D55KnGg5.v8zUseoQSR8swFAC/mz0em7fxSqBbc2"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.808342"], ["updated_at", "2016-10-02 08:25:14.808342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$JVa8Cm2t0qm8HWwsoQQQaOiVW6L2s5/NvQ6FEgWS0j3hqqk3NmIbS"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.814176"], ["updated_at", "2016-10-02 08:25:14.814176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$7dQS1H0CRjzUA89BBSG/3.DI0sJ9SgbNBxjART/rPx86TNpi6NK/S"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.820556"], ["updated_at", "2016-10-02 08:25:14.820556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person53@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person53@example.com"], ["encrypted_password", "$2a$04$IRyWeFKd5i02P.cCg1c3cuzaZB1VmjxAmANRQSEMudS5m9.5/Qk32"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.826707"], ["updated_at", "2016-10-02 08:25:14.826707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "tang_subscriptions"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person54@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person54@example.com"], ["encrypted_password", "$2a$04$gKJrPOZ3liABhzfyXuTUe.g0YBNLU8USYlvTVUGj9F4mDbEd.VV2C"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.835456"], ["updated_at", "2016-10-02 08:25:14.835456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person55@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person55@example.com"], ["encrypted_password", "$2a$04$Q.IGc9TNwqmYRB3mMjIFluRSI.9HEmsRaB23zcMgXxo8mndiUIyzK"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.842993"], ["updated_at", "2016-10-02 08:25:14.842993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person56@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person56@example.com"], ["encrypted_password", "$2a$04$fWJRkhVfLJsNdFyOoduO7etjuu6EPIK7u6DjP69o3FpcAth1unfYy"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.849127"], ["updated_at", "2016-10-02 08:25:14.849127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person57@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person57@example.com"], ["encrypted_password", "$2a$04$0gBGiyvNcYgUuv4PT8uFhOqwt3AX0JCifAG1viNzvF.mg5OOZ.5OG"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.855348"], ["updated_at", "2016-10-02 08:25:14.855348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person58@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person58@example.com"], ["encrypted_password", "$2a$04$d4YxoEPfKHPEHpb8a3duuOmmcFZ9WwyX/aauCa2P6ZOuhoCualiqO"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.861497"], ["updated_at", "2016-10-02 08:25:14.861497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person59@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person59@example.com"], ["encrypted_password", "$2a$04$m8B.UjElpcSo98TVrDOccurkLBnttp8uGBrMRVpZP7WZlsr/cs5qO"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.868997"], ["updated_at", "2016-10-02 08:25:14.868997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person60@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person60@example.com"], ["encrypted_password", "$2a$04$TAyTHYidDrzGoyTBdAJqCO5OBgLA.UEXXnUB6cu72m6Fvc4.SCRWe"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.874842"], ["updated_at", "2016-10-02 08:25:14.874842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person61@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person61@example.com"], ["encrypted_password", "$2a$04$0xBJ2N1drSl4w4RLqAWrcORSU/V2eVpgQAhThURS4NwWLFIl.DkgK"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.881120"], ["updated_at", "2016-10-02 08:25:14.881120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person62@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person62@example.com"], ["encrypted_password", "$2a$04$yF1KZcdHr7OOzaByzflmNunmABN5FsgPZRACxwI2QdsQkLQ.jozIG"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.887370"], ["updated_at", "2016-10-02 08:25:14.887370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person63@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person63@example.com"], ["encrypted_password", "$2a$04$IvtjlXQW2lU6ZCHej1fsX.N8buMEok1G.8L9TI7e3o7BENSSr0W3C"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.894246"], ["updated_at", "2016-10-02 08:25:14.894246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person64@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'be2eb288-1815-4aa7-995d-1c180596a105' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person64@example.com"], ["encrypted_password", "$2a$04$sC988IwJIJ4DqWO7ej70TeU.z9ok22ckLVmefLJtvtaQ0wmKVoKUe"], ["stripe_id", "be2eb288-1815-4aa7-995d-1c180596a105"], ["created_at", "2016-10-02 08:25:14.900211"], ["updated_at", "2016-10-02 08:25:14.900211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.6ms) Completed 200 OK in 18ms (Views: 12.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (1.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$A2/idy1wssjIe1FsFPNFuOy1FjIwGpryWdmCmMDzihJgKZiKALH/i"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:58.872957"], ["updated_at", "2016-10-02 08:25:58.872957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$LJM130HWuaS.rL8dbd16r.KdU3O30pWuEMYF.fiZfXAGVg/4Ch0We"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:58.880655"], ["updated_at", "2016-10-02 08:25:58.880655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$pjcQXDAxXCTxAAU5Wo43XuBGbFlL6m4kYiVjbqEgoJKlnjn6fgPYa"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:58.897250"], ["updated_at", "2016-10-02 08:25:58.897250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 51ms (Views: 29.9ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$AL5dLVDRmhB.Sm1I25uxC.V9xkvxcu.gfIy6W544o7x/SQz9ttOwC"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:58.961051"], ["updated_at", "2016-10-02 08:25:58.961051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$zFPs.4oFBVNyj7VW0Mca9e5pF.qyM/QvUZO.LOMUA7TZ4vqgzOpSa"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:58.966560"], ["updated_at", "2016-10-02 08:25:58.966560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$cWA98wK/jw8lviEIvjafK.HQz48XpwJdr8k6s.nud8pxXUfhkn4JS"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:58.974595"], ["updated_at", "2016-10-02 08:25:58.974595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (1.9ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$FU.2Z84a402VTvuJqlgcMu4XNywZK0gwvuoX8HhKT2LuWlLaVhEbe"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:58.980796"], ["updated_at", "2016-10-02 08:25:58.980796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$ZL9ZWno9tsMIY02MlP7Ajebg8l5gTIr7tNNXbsCSAJmNa3n3sogzq"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:58.989275"], ["updated_at", "2016-10-02 08:25:58.989275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$/rqeq5IPxipYIxUxuehC.u5fGZzUDQtC9z9Vs2OO6Zu8nh63N0Kke"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:58.994969"], ["updated_at", "2016-10-02 08:25:58.994969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$jkjSkQH/AJVoLQKAdXmSm.1Or1KgbpC/uF9RlwiUlU64UH7Scftti"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.000968"], ["updated_at", "2016-10-02 08:25:59.000968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$Dxt/9ykbHihiX6GHTu1MSuWLMqSvq0hAtwebHaAax3grRBnYFRfLS"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.006605"], ["updated_at", "2016-10-02 08:25:59.006605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$xnupE.I92rt1gQk7LzA.cefDXxtfelPr6aCeTiWPN77TukQ.VyBwW"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.011653"], ["updated_at", "2016-10-02 08:25:59.011653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$pWs5vevm2rrAXQRsKNhxdeBtkeJFEnOurDWwnBIUwau2uA09lATKi"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.018087"], ["updated_at", "2016-10-02 08:25:59.018087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$6sENNHj4bx6Dv6rPYrlmL./RTn/Nlu1/k0stF.6dfbndwXt0PcBQW"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.024091"], ["updated_at", "2016-10-02 08:25:59.024091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$hf6OqpLd6aWJyE9fA9vUUONVHouqC1dVi9bmVNXHznh/ZEq6Zi26u"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.029924"], ["updated_at", "2016-10-02 08:25:59.029924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$T13cLT5TmIQUhAgUa1sEU.EJvI6ku78cJGynyHwJN3jOjw9sk6hS6"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.035285"], ["updated_at", "2016-10-02 08:25:59.035285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$3ST2yfrG7rqqQc3d3/mrfuzpN4ObMy8cXxYI3MGG1fhuYoVlGyvKy"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.040841"], ["updated_at", "2016-10-02 08:25:59.040841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$G2iyOP9iJZDy.xaxu3iDcuS7eZj.vvv5skBacjdZCCJsedHvNp2Py"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.045873"], ["updated_at", "2016-10-02 08:25:59.045873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$tY3r.rRnsm/kDTYhDRk9CO4SWY3TgejUb5Op0EdEWDXGq6uNA88WK"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.050887"], ["updated_at", "2016-10-02 08:25:59.050887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$PJOosWmxzm5uGTp/4rBxA.o0QBsZX0vruRq9tcSGqlfr6sWlbkHqC"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.056421"], ["updated_at", "2016-10-02 08:25:59.056421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$QobY/IGEirwoON5dcMroGuYD.e.a8fmw.UeHyjHPXpjxJpUc7NL/u"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.061358"], ["updated_at", "2016-10-02 08:25:59.061358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$7F2cgxwSpNBmXRg8sMl8A.6giO6zr5JfVWDZ1OsliVfhSXN2L4.bW"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.066544"], ["updated_at", "2016-10-02 08:25:59.066544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$SAVIZgjYRSmo/WXcTKlbue0YuaCbL2gJPIwovGUg7AsG3EdE6aCbC"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.071988"], ["updated_at", "2016-10-02 08:25:59.071988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$qE64zF7DKWDVfxpPkdIB4eW7UyD0OFX7aOm9QpJVRcYiWSzOPmpXu"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.077116"], ["updated_at", "2016-10-02 08:25:59.077116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$s7gYMgzfyUPMMNAOBnu.fOe9CCIXNhyOJIMnwo64G2Hs0QUeJxluW"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.083057"], ["updated_at", "2016-10-02 08:25:59.083057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$BgHnPvcvXkuEmCJD65lau.kErqfqUuT8i8Pkh3U2MqTSzD19q0Cym"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.089089"], ["updated_at", "2016-10-02 08:25:59.089089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$xj4SZpP45Is6MidRhxtHUOcvqeTwkfV7WdoYJr9zJrdk2Kbj0i/ce"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.095243"], ["updated_at", "2016-10-02 08:25:59.095243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$5Ww7rX0seKVnDIWCmALt.O7PUq5al2EvvZVRUqcXYVBXhLt.PIz5S"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.102499"], ["updated_at", "2016-10-02 08:25:59.102499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$lBM8LPpqICY.TkkUxYJhy.TaAocGhrrRa4VJV4gJZJFdxXClwnWJ2"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.110972"], ["updated_at", "2016-10-02 08:25:59.110972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 21ms (Views: 11.4ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$Z4XHFTv77egY44RboQTRPODUIbomF/MruCWTxl2eGqAeFiQgpdvUe"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.142334"], ["updated_at", "2016-10-02 08:25:59.142334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$8xfvBg.KBuEcX.gnjNVILObRctiGWRGU.dYqRHqUSVb/9Vdr4Us56"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.147887"], ["updated_at", "2016-10-02 08:25:59.147887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$gsltQW24Gsvs/amraX0rmO0EDmLUew7nVpZQLEb4.IU7q1e8tTS5e"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.154278"], ["updated_at", "2016-10-02 08:25:59.154278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$.kR3Kd6G/JQdo9/FKEJCTeo7xBYXDzItj5lhenwiHuo1UREMcZxXu"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.160018"], ["updated_at", "2016-10-02 08:25:59.160018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$fxDycEWEOLxCKHBxtVkpEeg6Q1Tzrrog4CQtEpdt5sQX7oy0ejXgK"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.165232"], ["updated_at", "2016-10-02 08:25:59.165232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$ieASIWcUTRZE9ArsOgmdKeV06CGg90.Z931D41Ez5bnKY8bFV6leu"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.170672"], ["updated_at", "2016-10-02 08:25:59.170672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$5IE9zASHw5uAo0mbN8OGxuaeuyx48CTfni9frab8qjc2wGLmHqY2."], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.176290"], ["updated_at", "2016-10-02 08:25:59.176290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$W4TPI1hAP2nH6SWNPwNUMekJN0iND/Wldkfj9wpcTveqmW8BCXZKS"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.181671"], ["updated_at", "2016-10-02 08:25:59.181671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$2xNo5Iv24.5BDW0mDaf7c.ZCnI2sv5jwwj.2d5VHEsjXJnF3lm6ca"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.187161"], ["updated_at", "2016-10-02 08:25:59.187161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$QzfjTlvU7So3XN3m1kpg4ufwNZqf2g0NDLaHqFmtflliAHZZ1KlTS"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.192749"], ["updated_at", "2016-10-02 08:25:59.192749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$AOK95XdD63nKvlQNl99at.kH4H7iRkUxBMOs/3x2CRcAhVePUaHOC"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.197817"], ["updated_at", "2016-10-02 08:25:59.197817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$/lSveltrQI2pl2pK0R8VXOcIg5Q0hQsAPJ1JvQZ69Lacc1cTaG3Am"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.203554"], ["updated_at", "2016-10-02 08:25:59.203554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$iirSpbogE1./2RixiwrhjuAv62yoIfbB2Zj.pZ5AgWM.lKUyhJR3G"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.209375"], ["updated_at", "2016-10-02 08:25:59.209375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$IOgA79Bb/Y2FZhdK3qsjneGJuNyVaeLL52H6Pq3.XbCNticFy22tC"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.215107"], ["updated_at", "2016-10-02 08:25:59.215107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$fJWq3Kh0l6Q/50JrAJj5iOv0nhLagEpNwWv/C4rMjdQ4bcbcNS2zi"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.221774"], ["updated_at", "2016-10-02 08:25:59.221774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$Txa/KFm8MFcpITXqRDy3X.gmovYi6R.lrUamjpYgkEGqu7KnIGQv2"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.228670"], ["updated_at", "2016-10-02 08:25:59.228670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$Ppchau5d3oKCD7iBTgatpunjXB6ztUFdgfyCI1SlnP/LWuDJg9Lay"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.234823"], ["updated_at", "2016-10-02 08:25:59.234823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$alDI6TMH.nrbhVcEK1yNhunP957Cs1gzp4tU2.4Gn3g99c6pe03TG"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.240387"], ["updated_at", "2016-10-02 08:25:59.240387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$DhfyUx6xAWO39hkBZ0bw3OzuIJrMoT9pmiFhSDXLIBMuaHK53u9jm"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.245756"], ["updated_at", "2016-10-02 08:25:59.245756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$i.ygyqFJHmeYJkLI2l.Uxe5kaKp1xrOhltrFX3oLGpQ.Ow8G7PHAK"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.251619"], ["updated_at", "2016-10-02 08:25:59.251619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$MXWt69I7GScvu9MFl6YbxuYtLeCy0MwslgpIFOSuwFRffno6WxTFi"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.257663"], ["updated_at", "2016-10-02 08:25:59.257663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$8IR8qZgN9hmw1LI15siixOg9QdOBXt.cGsdcFU2UqloTiTj.1o.v2"], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.265149"], ["updated_at", "2016-10-02 08:25:59.265149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$BOrU1DmBQBR5WP3V5dpXZOOki64CS5vy4WegSRdvu46Jr5kIrzCW."], ["stripe_id", "b278d8e6-f45f-4b6f-a55b-fa1df8f2cf97"], ["created_at", "2016-10-02 08:25:59.272407"], ["updated_at", "2016-10-02 08:25:59.272407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.5ms) Completed 200 OK in 15ms (Views: 9.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$LiwnAGnBLN9EupR5SJSGwuMCYoJeOKEgICCMIkxZCsLKGGrVSFoIO"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.386135"], ["updated_at", "2016-10-02 08:26:35.386135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$L5w3aDSJll.lvgczm/6OeOdpn/0iljghmuda6W1WmgEZHY9kukj0C"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.395116"], ["updated_at", "2016-10-02 08:26:35.395116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$KlXOPsP0JLz66EOQFFeOl.QG23N1g7cYgeeo1hO6DBfdH/o5WC/Ci"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.401770"], ["updated_at", "2016-10-02 08:26:35.401770"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 43ms (Views: 26.9ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$ZiCw0bWb70rQ1N/sqAfjFuczKobGbOycIhQqQRJZBr9tFNNVN7QpG"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.465286"], ["updated_at", "2016-10-02 08:26:35.465286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$HH/X2MHG.vQMDnZXsjGTBu9LK/6KRc3UPB9ZR1yAHP.nci/DQzjNm"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.471514"], ["updated_at", "2016-10-02 08:26:35.471514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$RVRF1yo7GdjVqE6rDqmMHOcpMyex0ovAvReYaKjdNgEpOmVA5Qy7K"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.479685"], ["updated_at", "2016-10-02 08:26:35.479685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (1.7ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$oFmfQpMT67y0dYIjKD8Fpu0iuIwS9pCsXpnK3zal6ZeN/N1DpD2gK"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.484668"], ["updated_at", "2016-10-02 08:26:35.484668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$JYjFnInTL/f7dXjAQY6VB.Fe6wEsEoSHXxnYLa9EvSzAgiOIL8iTe"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.492400"], ["updated_at", "2016-10-02 08:26:35.492400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$eFKgK3HCf9rm/aBS8mHEGelwbFGY/kNfoGxlKaIUX8BMeQrSonQDi"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.498058"], ["updated_at", "2016-10-02 08:26:35.498058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$ghx0NqFz8aqr9h7bDmGR7OQCA.SbkDFW4HPYV0kY2LGBm4s3zMQJ."], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.503483"], ["updated_at", "2016-10-02 08:26:35.503483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$r.lc64ttdzhL81FnN1R/Ve2lVxZ0vZ5u2gpWFfLy6lIIQ2u9AEVre"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.509344"], ["updated_at", "2016-10-02 08:26:35.509344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$Lnxahz5j6WlMew5.tQ1XUuD6pzj7d2EMSk6DFNz9oobzkcat080zy"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.515542"], ["updated_at", "2016-10-02 08:26:35.515542"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$YFUVeQHG9xE9RJJoNWCy3.nXbHRPh5Jar.vjAtnkAzzyG.lx.aZGC"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.521165"], ["updated_at", "2016-10-02 08:26:35.521165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$jEL4ZtPwHc79o3K2/M/zHehxIAIla6QJXfqRBBaQ0Gc30BYWpkpRy"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.526294"], ["updated_at", "2016-10-02 08:26:35.526294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$wdwVYGx1g.AmZAVc0P/cY.qq5HSdyEcY5tOcnXfgs4ZWjKmhijVKq"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.531304"], ["updated_at", "2016-10-02 08:26:35.531304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$SR0K5Cp4B0eJG0Jw3VheJOTAYRGDEPK3zYCVosK0rgPtlrQTrJLEC"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.536460"], ["updated_at", "2016-10-02 08:26:35.536460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$VPFeRocbzCWMYJMGjUgKD.eGT9WwY8ReujQW1Envc3OTiXbTbfJV6"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.541958"], ["updated_at", "2016-10-02 08:26:35.541958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$aLtIKyYTL9q.2rkLsq9avuEf3Zwjv6YTrW4VUL7gnbRhd3m5ihLEe"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.547089"], ["updated_at", "2016-10-02 08:26:35.547089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$xZLFnvB6OtNqG2gHN0zVu.0yuBMbjD99g.x5w6gh.jsmH.AQyb/nW"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.553111"], ["updated_at", "2016-10-02 08:26:35.553111"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$tfqd6ine6eLoIx9qbIg3p.JRbBWuuP79gN4GHliZ4bV06YG1eZlni"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.559177"], ["updated_at", "2016-10-02 08:26:35.559177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$OjY8flfv1tHwcovbyh/BgegxL00ING.jfURh9sZj95zoLMjH2OPhW"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.566117"], ["updated_at", "2016-10-02 08:26:35.566117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$igUx/H.5ZpI45CSI0d7mOe8H/fOgDsKP.OtNUwqD72xZfK6vvMbA6"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.571996"], ["updated_at", "2016-10-02 08:26:35.571996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$As4mn3/xr8IJmVGCx7.53eKZB5INd0p.M0RTtqUu5Sczg0xaYy5sW"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.577692"], ["updated_at", "2016-10-02 08:26:35.577692"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$e45lJPIez//60oClvhMNUO3TimKdRx2dd57XBx34TZt260oq8rev2"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.582859"], ["updated_at", "2016-10-02 08:26:35.582859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$MDG.S5KngE/mUrN5LE1fjOhMPPSIVJHaVOv9mGp7Dv78sm6bNoL/a"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.588145"], ["updated_at", "2016-10-02 08:26:35.588145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$r7NugY7jDByTkPiE.8ZPTO9PwcHjWgNCU4a6ZoFkLauSF1WC/2PAS"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.593703"], ["updated_at", "2016-10-02 08:26:35.593703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$1EWmC04JqaE9nDWYnCyFF.ap/dKGpjhc1Gq0YmavCE4tfvCTrNMo."], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.599576"], ["updated_at", "2016-10-02 08:26:35.599576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$F49gkJBW1ukvshKm6ugNOO2dk11X8O1m.5R8.NH0DIO5/J0N32hHS"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.605374"], ["updated_at", "2016-10-02 08:26:35.605374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$v3m4fybon6690f84HJiMee4/4Xvn5B9tu2wczpk115ZXiSnouYwiG"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.612352"], ["updated_at", "2016-10-02 08:26:35.612352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 20ms (Views: 10.3ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$QhDRFSAGifxlp7iXnSmBGuhfr8plAH2RbqionuFbYHC7ufHrmbeU2"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.644086"], ["updated_at", "2016-10-02 08:26:35.644086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$5.Jku7lBhuz.pISX4d48HOYycbpOEMPnWH.q1KcNGuEPkWlGu3W3e"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.649750"], ["updated_at", "2016-10-02 08:26:35.649750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$YdcIGQovSagMFN32RIJEvO2a7VL0z8jNTCNyXZ33l8aD0s6bFNFoy"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.656733"], ["updated_at", "2016-10-02 08:26:35.656733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$RQJcu7BAaBN9dfrDZmn7wuBqhT0LwX2.Sinkg/KOau6pUNaoxt2A2"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.662777"], ["updated_at", "2016-10-02 08:26:35.662777"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$SnBz6NCNJ7aTpQyaoAgThOrC8vuioKvpFQuZc/sGoQANKSgowgbQe"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.669961"], ["updated_at", "2016-10-02 08:26:35.669961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$tjEhP7f5L0nhKYT7UYYw5ebmUE/nahxhZYZgKIKUX0VVhDN4kHDiu"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.676596"], ["updated_at", "2016-10-02 08:26:35.676596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$nV.pzyDWOw111Y571970PuV0jkuBH3HOZHssHCi9fHMpgyOXodW1u"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.684111"], ["updated_at", "2016-10-02 08:26:35.684111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$LoGerSVPg.4rvo7gpBzyDuQnbJQt80kCulL8G6TJvNUTTUNhizZva"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.690151"], ["updated_at", "2016-10-02 08:26:35.690151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$jGYZp7.KmA0PlHGuG9chTOAnG.XCJOweG6j8g2K2l7Gaty3tnnOLu"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.695503"], ["updated_at", "2016-10-02 08:26:35.695503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$e07RE7k1pV6ezxJ0W9k8H.1UJRXpYpXpvisVUEl7vL3HFtBolBmsa"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.701044"], ["updated_at", "2016-10-02 08:26:35.701044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$L5Nj2FKwuDstUS526yHrvu.ZWqmS.8qGcbPeQE9nsCbCp.teMfjIS"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.706446"], ["updated_at", "2016-10-02 08:26:35.706446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$LWcZp1fPK9jUxqPDLsmUhOV8gj4Pt3tVtzj0XeB1fQOIhEk2H1YS6"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.711879"], ["updated_at", "2016-10-02 08:26:35.711879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$2S3jXvNTAAxhbW4JP/omHea93cQPxyJYW/75s03gT9uxdm6DxViH6"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.717571"], ["updated_at", "2016-10-02 08:26:35.717571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$7e1yDb1HH56DlUIIr8x4.efdAJbSfwI.DNr3zJzm/C0Uj3PG9d3M."], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.723217"], ["updated_at", "2016-10-02 08:26:35.723217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$jActNnnG5xBW1jVgD901juzO536V32xQwARpIt1xfDumirG7mEdVy"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.728825"], ["updated_at", "2016-10-02 08:26:35.728825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$TK6I6QwPzzwuaAR5mIs8FO9tdyYABtxVD6wRlh7uxz/VKLEF.cc6G"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.734489"], ["updated_at", "2016-10-02 08:26:35.734489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$0qv47a3k8Jg1mA20n3bo5u6czWMickHX0cEKhfWTWIDsDK.Jab1I."], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.739818"], ["updated_at", "2016-10-02 08:26:35.739818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$8mLi93yvwNKfe6Yzp7NRP.TtxM1SZryFPTetOtvgnldRddGUVKNLe"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.745430"], ["updated_at", "2016-10-02 08:26:35.745430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$JDZXCfLcuNkT.tAceOeT/u2o1IzmAa8vliXUkPKea.txcIFtA.cLK"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.751078"], ["updated_at", "2016-10-02 08:26:35.751078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$bbXcy9aa8AwViMGfV18o4uwgKpI.0KVI2ILglhrQNqYv4ji1M8taq"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.756736"], ["updated_at", "2016-10-02 08:26:35.756736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$oePyqZamL0NyZ34ba51UrO/dTCwYshlqL8DOrjpzzGqG0Wor5EYw6"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.761885"], ["updated_at", "2016-10-02 08:26:35.761885"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$y43/RQgq2zIAP6OJHuuXTOIMWfbcaQ9tTaiJf7yv/S.8I8Azpb/dK"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.769110"], ["updated_at", "2016-10-02 08:26:35.769110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$8U7KRa7EBEYSm0IMDOUX6.syPkXpP0LlsIu4.jUiGS1.phiOsFhHy"], ["stripe_id", "e9b0d61d-ec82-4c35-bde0-0cbe2e32ef43"], ["created_at", "2016-10-02 08:26:35.776197"], ["updated_at", "2016-10-02 08:26:35.776197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 16ms (Views: 9.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 04:26:39 -0400 Processing by Tang::Admin::PlansController#new as HTML Completed 401 Unauthorized in 15ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 04:26:39 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.2ms) Rendered devise/sessions/new.html.erb within layouts/application (25.6ms) Completed 200 OK in 465ms (Views: 462.1ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 04:26:39 -0400 Processing by Tang::Admin::PlansController#new as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 04:26:39 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.8ms) Rendered devise/sessions/new.html.erb within layouts/application (12.0ms) Completed 200 OK in 16ms (Views: 15.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 04:26:39 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 04:26:39 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.5ms) Rendered devise/sessions/new.html.erb within layouts/application (8.8ms) Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 04:26:39 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 04:26:39 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (5.3ms) Rendered devise/sessions/new.html.erb within layouts/application (11.4ms) Completed 200 OK in 17ms (Views: 16.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$/eD3xxVL48BYCvrv1G1Pje7GRo2RDJNfzcybw7VNUxBCn2OfNdnka"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:41.566559"], ["updated_at", "2016-10-02 08:29:41.566559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$385u.r3M/kdhUgQ2mArSU.PY5R9g7U6DUEaHTv57OMwtVYvSF7Ps2"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:41.574393"], ["updated_at", "2016-10-02 08:29:41.574393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$011Cd2yx4Qa4h6zeWMrjIu3NaDq9Z4AjQWsVa6Try6vTXE5SOd0JW"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:41.580237"], ["updated_at", "2016-10-02 08:29:41.580237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 40ms (Views: 23.7ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$aE3vMWc7v4MvXTisDwzBvOKLjlEgrc0iTS3xxZ1z8y7q72B8sFUlS"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:41.643052"], ["updated_at", "2016-10-02 08:29:41.643052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$Z9aNviY3qvSzkKPE76M0UOqMOIX.uikLPMj112YbMeTE6YiLimd1."], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:41.650354"], ["updated_at", "2016-10-02 08:29:41.650354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$7fU3z0mDCBGx.udGvVs2YeF6AJ/FB5Lcw5lFY1Yr2EW4uz9tMVgPa"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:41.660138"], ["updated_at", "2016-10-02 08:29:41.660138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$M7f8iAeht9r92v4vKP9hleDbyywIr2r2viG6OyeQq1EUK6J12hxKu"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:41.665965"], ["updated_at", "2016-10-02 08:29:41.665965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$/gy4G9TklRHw6HpWui56eeEZ2qpVw7PL5gZ6f8Zdz0NK4E0KGyYw6"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:41.671277"], ["updated_at", "2016-10-02 08:29:41.671277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$zgdpCfQabHXairf.FqNfr.41/MQN2xA4cQZJmK5c/0qUobvUcIW3a"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:41.676764"], ["updated_at", "2016-10-02 08:29:41.676764"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$zsnFwKoF4XEa9JdmmWWob.X1Uq8bSdHvTdmfjDMijoMoRPjI1x8Om"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:41.683598"], ["updated_at", "2016-10-02 08:29:41.683598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$vZWXG7FJvCW/tjKavn.98.yu.FGUTxHU5n5D8jGYt6YSPRaj4VESu"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:41.690660"], ["updated_at", "2016-10-02 08:29:41.690660"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$1IK5DwiGSrK1K.cNxjldoeHe7iR6WzOJrkUZ5FxT9vtHLx0nmR3Ui"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:41.698011"], ["updated_at", "2016-10-02 08:29:41.698011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$7PXprJTcawZM/GDsigtzquOvaRUNUvCJcEXkPJY4a60QvOvis01MC"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:41.703706"], ["updated_at", "2016-10-02 08:29:41.703706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$T1UYvJPmiGkedEIms1DzaeFgREE98XPKhHvrQNXKvXH/1RdpuMxzC"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:41.709119"], ["updated_at", "2016-10-02 08:29:41.709119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$ijiPdyC0MbgTFdi166WEuuPU5q0BVeOSab/RJbGS90DAgkdcpAsWy"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:41.715902"], ["updated_at", "2016-10-02 08:29:41.715902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$T.PtHpuZQ8iLomlmtnchXeismXv6DGNNtmAhr/0/h2AAIjcku9M8i"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:41.722072"], ["updated_at", "2016-10-02 08:29:41.722072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$RapUb6xgpwJvkigyWJP82eSSTZpSJYhxZBLEJPXX.OyNLmUsi1gxC"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:41.728192"], ["updated_at", "2016-10-02 08:29:41.728192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$ONm3XthV21WWFwnOspt7f.WskeKvsrJajlV7xMMDRiGt4.7e46ThO"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:41.733809"], ["updated_at", "2016-10-02 08:29:41.733809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$y63P6.lohFsdxGL2KnNkDeryeF28bm3AgiUYPIuAapvZNWIfScZHm"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:41.739865"], ["updated_at", "2016-10-02 08:29:41.739865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$3rC17retX53XwPXpI6SoAuf2o.M5/UpvicjnKDk8F.Ur4rUE86E9W"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:41.746588"], ["updated_at", "2016-10-02 08:29:41.746588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$0DiT.eFvhKvOK.WpR4kKJuiXEtu8k17lc1YOScuI6KAj5zTYce7EO"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:41.752521"], ["updated_at", "2016-10-02 08:29:41.752521"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$k4vcS60.yRCpQsiCAu4Fk.qzfbL2yXVElHBT6ABVvmlXNRv/tAQwK"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:41.759755"], ["updated_at", "2016-10-02 08:29:41.759755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$yKhHSFkpjkD.cODxL9Me4O6OOVxitDEfvq6PLKEMAQ0VZHLXCvBd6"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:41.766000"], ["updated_at", "2016-10-02 08:29:41.766000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$yogQCDEAKSilZ5fEEtHBT.bM8xQxeQDVQ.RTfsPSjCourUOOdzAy2"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:41.773574"], ["updated_at", "2016-10-02 08:29:41.773574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$A9lKfbtB0mqGVPfVy/t.a.3pjxmn17Lal.dLOe3pJwwPyDHRVHT5W"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:41.779518"], ["updated_at", "2016-10-02 08:29:41.779518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$LDQTj6vfFH3MIBqZ7k3BSO7Rg.CT9q6MN6EqgTYwDdhm7dAPIQFxG"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:41.785110"], ["updated_at", "2016-10-02 08:29:41.785110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$wng.lGs0Blj8hLiLrGzac.pz8w8VFjU/bp9Z69S8uqrm6p8Nc8Dp6"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:41.790652"], ["updated_at", "2016-10-02 08:29:41.790652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("amount", "interval", "name", "currency", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["currency", "usd"], ["id", 0], ["created_at", "2016-10-02 08:29:41.802466"], ["updated_at", "2016-10-02 08:29:41.802466"]] SQL (11.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-02 08:29:41.802466"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 13ms (Views: 11.0ms | ActiveRecord: 0.3ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$bKZzjPKKnUK76agjJuVeAerFGOV2XIcgJbRsj2A4qGa3nB6C6T.j6"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:42.294577"], ["updated_at", "2016-10-02 08:29:42.294577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("amount", "interval", "name", "currency", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["currency", "usd"], ["id", 0], ["created_at", "2016-10-02 08:29:42.298159"], ["updated_at", "2016-10-02 08:29:42.298159"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-02 08:29:42.298159"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$1vCFHQ4W2YmPxEJhk76nUeILqFTPfY2ldGj0.SKb6BpJBgbMrYopi"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:42.663820"], ["updated_at", "2016-10-02 08:29:42.663820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$8VH1WttPHclXecGWH3KW1unw914jdVCHFH3mf64meJnO4x7oFitwy"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:42.680046"], ["updated_at", "2016-10-02 08:29:42.680046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("amount", "interval", "name", "currency", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["currency", "usd"], ["id", 0], ["created_at", "2016-10-02 08:29:42.683328"], ["updated_at", "2016-10-02 08:29:42.683328"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-02 08:29:42.683328"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$A.UCE4MEqCyq97onQMefSeeCHpvxatCZ74MWAevsejmwN4bZak5mu"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:43.077589"], ["updated_at", "2016-10-02 08:29:43.077589"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"amount"=>"2000", "interval"=>"month", "name"=>"Amazing Gold Plan", "currency"=>"usd", "id"=>"gold"}}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$zqrgeEBu8x2aScRe2qbh5uOP4a3jqS2DDyJNj.9M4I10ZTl.parIC"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:43.095096"], ["updated_at", "2016-10-02 08:29:43.095096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"amount"=>"2000", "interval"=>"month", "name"=>"Amazing Gold Plan", "currency"=>"usd", "id"=>"gold"}}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]] Completed 400 Bad Request in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$LwoVFgUw6wI8aO//Q4qebu/AZgvxbI2MStHMQBtrc0hjtJq.OiwEC"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:43.107913"], ["updated_at", "2016-10-02 08:29:43.107913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"amount"=>"2000", "interval"=>"month", "name"=>"Amazing Gold Plan", "currency"=>"usd", "id"=>"gold"}}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$YgjAuYGAzWKCvG5KguN06u0O27VHjcQuPveXEuvCn8.zqLXXXPKZq"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:43.120202"], ["updated_at", "2016-10-02 08:29:43.120202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"amount"=>"2000", "interval"=>"month", "name"=>nil, "currency"=>"usd", "id"=>"gold"}}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$c73AWIO3n7.0drfx3b./JuKnQtbzHavFnwFKk6Tp2EK7tzwBil4kW"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:43.132071"], ["updated_at", "2016-10-02 08:29:43.132071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"amount"=>"2000", "interval"=>"month", "name"=>nil, "currency"=>"usd", "id"=>"gold"}}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$lICJogFHzqjfiw.jcbS2a.gQB8bNd/FNAEWv61HSpulg4hBoMBiTy"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:43.144434"], ["updated_at", "2016-10-02 08:29:43.144434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("amount", "interval", "name", "currency", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["currency", "usd"], ["id", 0], ["created_at", "2016-10-02 08:29:43.147843"], ["updated_at", "2016-10-02 08:29:43.147843"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:29:43.147843"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$kQJpM8.B0peaULeqepMC6uEKBUojodI7sO9Rd70E0CGozhhpf7NZq"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:43.516232"], ["updated_at", "2016-10-02 08:29:43.516232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("amount", "interval", "name", "currency", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["currency", "usd"], ["id", 0], ["created_at", "2016-10-02 08:29:43.520365"], ["updated_at", "2016-10-02 08:29:43.520365"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:29:43.520365"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$Q2aSmARtqq2GDNDkyJluDu8fPZ6rFn4zegHK5UPkVztv0s7/CaIFG"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:43.879894"], ["updated_at", "2016-10-02 08:29:43.879894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("amount", "interval", "name", "currency", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["currency", "usd"], ["id", 0], ["created_at", "2016-10-02 08:29:43.884196"], ["updated_at", "2016-10-02 08:29:43.884196"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:29:43.884196"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$00HpzWz1rAlKLg6iiKmd0u0iUIDOJKr6qv4HnRRp/bJD8v0WRBGqu"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:44.276796"], ["updated_at", "2016-10-02 08:29:44.276796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("amount", "interval", "name", "currency", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["currency", "usd"], ["id", 0], ["created_at", "2016-10-02 08:29:44.280099"], ["updated_at", "2016-10-02 08:29:44.280099"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:29:44.280099"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$Mct1xJe7Yrp0gSiXcGXaZe2nai/ykaLNDHgrxXGN/wN/o4.AWaDh."], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:44.661623"], ["updated_at", "2016-10-02 08:29:44.661623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("amount", "interval", "name", "currency", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["currency", "usd"], ["id", 0], ["created_at", "2016-10-02 08:29:44.665295"], ["updated_at", "2016-10-02 08:29:44.665295"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:29:44.665295"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$gYMfHn8p1/PJYF0t4fAb.ey/rBq/TEdjzNAqJWhFzT2I/5FyCxd4i"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:45.040067"], ["updated_at", "2016-10-02 08:29:45.040067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("amount", "interval", "name", "currency", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["currency", "usd"], ["id", 0], ["created_at", "2016-10-02 08:29:45.043494"], ["updated_at", "2016-10-02 08:29:45.043494"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:29:45.043494"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$ijUo4Dwvt.2tDxSCfEQi.Oti3..mXEk58kf3m6d8VzDqhenunscc."], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:45.417379"], ["updated_at", "2016-10-02 08:29:45.417379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("amount", "interval", "name", "currency", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["currency", "usd"], ["id", 0], ["created_at", "2016-10-02 08:29:45.421368"], ["updated_at", "2016-10-02 08:29:45.421368"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:29:45.421368"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$0URp7YW6KjwydUebtIDTo.CfuhiVUECjf96t7uuQXBje9sNsrvU9O"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:45.849201"], ["updated_at", "2016-10-02 08:29:45.849201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$nafOLM5n2gaOqhJcRa49JuaaHcfCztuIt2lJK4aBoyCcTZecEf6xi"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:45.856134"], ["updated_at", "2016-10-02 08:29:45.856134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$Kkmr/u7yg/BQha.pwkqnzuHytBxuXCpUxEcTFwLSdO/uPd015C.uu"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:45.862242"], ["updated_at", "2016-10-02 08:29:45.862242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$u0H9fdSSAnjovr9u8zkp.eoQYWER42RAB8m9wiZBpCuSg3ec2.md2"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:45.868998"], ["updated_at", "2016-10-02 08:29:45.868998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$h5URAAgh30.sPjcbVkZP2OWuFQHVc.IQOEoVAsHaXGZBSnB7.H6r6"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:45.875084"], ["updated_at", "2016-10-02 08:29:45.875084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$4p8hnvocTiyuig3whqzmS.CewYb6hCZGEhbqdKPWI3JIcQ.T.ybea"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:45.881235"], ["updated_at", "2016-10-02 08:29:45.881235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$CQIR80oguC.HeB/6ZqaaGen6w8HE2/tn92sWm/WnuvnGYhe8Rt0Am"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:45.886984"], ["updated_at", "2016-10-02 08:29:45.886984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$MzBjf9/4ymWgPVVQjM6tLu5nXbwaw6pIodaqPG3kC4UPnxXsayL3m"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:45.892480"], ["updated_at", "2016-10-02 08:29:45.892480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$yG20AFDk/1vJjmdkFydqvOeWEX5It4Jy8dhpQzmUXfwJT1oYQlbeS"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:45.897695"], ["updated_at", "2016-10-02 08:29:45.897695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'd382d18b-e3c9-431b-93c8-8d0756224046' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$QdV8IRbOlLa8Ey6eLua4sObyU8cfD5jzd6ftw0FMilfGfTroP4PO6"], ["stripe_id", "d382d18b-e3c9-431b-93c8-8d0756224046"], ["created_at", "2016-10-02 08:29:45.903061"], ["updated_at", "2016-10-02 08:29:45.903061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 15ms (Views: 8.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (39.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$884gSC980MU1L68/5VZ45eG728Er0bpMnHyIZs3R5G7cAfy4Nnv8y"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:38.559844"], ["updated_at", "2016-10-02 08:31:38.559844"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$AREL/SOaM1IQ9Zk/B7BULOhkP3AkZRuBVZc7hjZTlcooOw5gxwa7u"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:38.608185"], ["updated_at", "2016-10-02 08:31:38.608185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$RbhC/saCyJ.VCnZ9AOovEe26CTNobraY0NxyxlBS4JHxozCNNAV8C"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:38.623810"], ["updated_at", "2016-10-02 08:31:38.623810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 49ms (Views: 29.7ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$3lgs8B8AHzYTWnE0AKWk1enb0Hq7V0NSbvIv9a6IYMWIPWKMT5X/W"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:38.685391"], ["updated_at", "2016-10-02 08:31:38.685391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$LjPmw2S0h4B4Xkw8vS/VEOL6QnABAJ7e6/D9udLmoTmQ1FWJhwQsG"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:38.691559"], ["updated_at", "2016-10-02 08:31:38.691559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$xmM/4EKPA4lvfZTJDeClreJmjyAWLGTie33fU/ljnCUkH/Khc.QBi"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:38.700273"], ["updated_at", "2016-10-02 08:31:38.700273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$kaZ9ODpjN0LnR3UaGoHh3uXEIx8KvsHmwM3yZQzb1ZVIQirXt9uma"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:38.705488"], ["updated_at", "2016-10-02 08:31:38.705488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$XOvX02vZM38xMfC28a1LxON1McvGhSFiHC3.NCHoYgTXEE15H46qO"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:38.711623"], ["updated_at", "2016-10-02 08:31:38.711623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$/NHp6lkHUKIvqix5czL2muH8ZI4xdNkXjVxz3BrlIizOy08.Yqon2"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:38.718957"], ["updated_at", "2016-10-02 08:31:38.718957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$lRmK1DnyYUqasJBKpvf3SujblTgc6w0dUSJzxe/hv4VzlpJboQ1wi"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:38.725402"], ["updated_at", "2016-10-02 08:31:38.725402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$Q8wyxF5MFS8kWRguw6tm6.bj7gSbz84z.0g0cha9q7V3TM234Ulh2"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:38.730881"], ["updated_at", "2016-10-02 08:31:38.730881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$bb93y.qquA0t1Fz0B4SCfuVf5Me4.IgcIniYtS731Z8nHSCV4dKV6"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:38.738741"], ["updated_at", "2016-10-02 08:31:38.738741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$Xl9cogB4AjH/3zK8AtVbSeddOTHcKW./shC9isnl8tcdnVUjVmweu"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:38.747113"], ["updated_at", "2016-10-02 08:31:38.747113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$exrAO1QhIpsoZNAKdus4seu4SmBVzetpZSg4fc4hl5Gm4vtSO6ye2"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:38.755396"], ["updated_at", "2016-10-02 08:31:38.755396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$b39BRo2kF.mawHTuUv6KiuKO91uNUMQ1X0SVL47y4VAKBokbNdUGC"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:38.761773"], ["updated_at", "2016-10-02 08:31:38.761773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$d7UvOdlSPaMEpe5EEiA3WORi34ixzde05HyVfLKK0D8vk4hGCQiQu"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:38.767375"], ["updated_at", "2016-10-02 08:31:38.767375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$vhl2UDvVeQEPdK8eElJWK.JHibvEkTY8buXp8DPTW3MUaEyiWmX6K"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:38.772628"], ["updated_at", "2016-10-02 08:31:38.772628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$l2ngalMUW6lji1MADTeRIOjatE7ScZugWizv31bu3kZSITds5V4HC"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:38.778922"], ["updated_at", "2016-10-02 08:31:38.778922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$o35snrYehQOfvlc8mTj0TO1neR.f/j1PMbPIkjCObhHcqLSLNN2ae"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:38.784712"], ["updated_at", "2016-10-02 08:31:38.784712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$3DjqhdpyttDLxfO0nz/8VO7RVk/yN6JgU/ShocFcI2mH/n.ZcnvEG"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:38.790184"], ["updated_at", "2016-10-02 08:31:38.790184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$ei0JiHmIjZYl5U75DiX7IOtNrXYLRuyiEJQMjoij15WegUUmwwHZq"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:38.795745"], ["updated_at", "2016-10-02 08:31:38.795745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$fBVVEIAyZMo0UiHDR/uAIOGI/sX28dfQq2CdQE2RSpp20J1xEgG2W"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:38.801069"], ["updated_at", "2016-10-02 08:31:38.801069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$aXNh35Ri88PHCcarJg9AQuhe9Qj5AlHzqn5EsUtnJWPlJ3t0Aytii"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:38.806581"], ["updated_at", "2016-10-02 08:31:38.806581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$ttBKCIkrWyvTm6bMCOtgheC1xIU2kiaGMmu5O0..ztAubolxxpIXW"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:38.814366"], ["updated_at", "2016-10-02 08:31:38.814366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$4QV9XBpsgIbjeH2oxdMG2.k1X.xHWN9WYthFXVxP8LuK/g7/m6zty"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:38.820135"], ["updated_at", "2016-10-02 08:31:38.820135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$ceTr9Ny5dE5oYC9AaEWZuu0fNMX3ZR4gakdvbFxiN9bt6nwT6ndN6"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:38.825260"], ["updated_at", "2016-10-02 08:31:38.825260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$QVmhIzM/5QfTzfaFjD/PdeYiVeLXV2gG5.0gtFRhvdsBh9UM2dcj2"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:38.831308"], ["updated_at", "2016-10-02 08:31:38.831308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("amount", "interval", "name", "currency", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["currency", "usd"], ["id", 0], ["created_at", "2016-10-02 08:31:38.846280"], ["updated_at", "2016-10-02 08:31:38.846280"]] SQL (14.9ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-02 08:31:38.846280"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 18ms (Views: 15.3ms | ActiveRecord: 0.3ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$.x6Sgj2bqJ5lEYMb2ksff.tSpypaG04z4xBM2s1lsA.pU8WUmYoKG"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:39.748302"], ["updated_at", "2016-10-02 08:31:39.748302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "amount", "interval", "name", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["id", 0], ["created_at", "2016-10-02 08:31:39.752870"], ["updated_at", "2016-10-02 08:31:39.752870"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-02 08:31:39.752870"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$UmRaj1fFL35NhW.p3dS0GuNe/5oqYqnj0wsvyUOEd2qLvNbUy1as6"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:40.153187"], ["updated_at", "2016-10-02 08:31:40.153187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$NByMnUk7HGm.9GPuULI37.IagbX4G5fLqdz18DFbSxWkg4T4msqkq"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:40.172314"], ["updated_at", "2016-10-02 08:31:40.172314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("amount", "interval", "name", "currency", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["currency", "usd"], ["id", 0], ["created_at", "2016-10-02 08:31:40.175982"], ["updated_at", "2016-10-02 08:31:40.175982"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-02 08:31:40.175982"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$QClAkT5xUf7AljYRL7tDyOOHUpCC/eD0GdHDOjkTrxbIjwgrJSLN6"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:40.560183"], ["updated_at", "2016-10-02 08:31:40.560183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"amount"=>"2000", "interval"=>"month", "name"=>"Amazing Gold Plan", "currency"=>"usd", "id"=>"gold"}}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$7wbler./I2RPfRnxtU76BOmEr5RYOjpQ2GxI2TbrIom/8n/qQv8ky"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:40.575626"], ["updated_at", "2016-10-02 08:31:40.575626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"amount"=>"2000", "interval"=>"month", "name"=>"Amazing Gold Plan", "currency"=>"usd", "id"=>"gold"}}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$tSRWWwpE5hQGmMFpoImgTeJM2BvwUI3SLnQOOagzJXHZID5oWtwRi"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:40.589021"], ["updated_at", "2016-10-02 08:31:40.589021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"amount"=>"2000", "interval"=>"month", "name"=>"Amazing Gold Plan", "currency"=>"usd", "id"=>"gold"}}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (2.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$1VW40fhgWVsl7OgCuEIEEePtkYdtusSC0M2wRDMACOE642fXQR.bS"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:40.601345"], ["updated_at", "2016-10-02 08:31:40.601345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"amount"=>"2000", "interval"=>"month", "name"=>nil, "currency"=>"usd", "id"=>"gold"}}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$vVEiYh7/VtxNZ.I51J3A4.wlDHdnaBZnxIakHmuhJRt2iBFeyYYi."], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:40.615535"], ["updated_at", "2016-10-02 08:31:40.615535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"amount"=>"2000", "interval"=>"month", "name"=>nil, "currency"=>"usd", "id"=>"gold"}}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$wCThPTGPvTNpTLgyPuS9Mugn4NnI1sACwrSm0ZiCRMYX5yD1dpNxy"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:40.627996"], ["updated_at", "2016-10-02 08:31:40.627996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("amount", "interval", "name", "currency", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["currency", "usd"], ["id", 0], ["created_at", "2016-10-02 08:31:40.631518"], ["updated_at", "2016-10-02 08:31:40.631518"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:31:40.631518"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$oYWCw1PDCvAZdrvgFhwCG.xJzt7QAd3pA0Jz2G2LRywdeTCuP8uLW"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:41.014779"], ["updated_at", "2016-10-02 08:31:41.014779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("amount", "interval", "name", "currency", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["currency", "usd"], ["id", 0], ["created_at", "2016-10-02 08:31:41.018952"], ["updated_at", "2016-10-02 08:31:41.018952"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:31:41.018952"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$NzqhU2t4ulbhHiWWYwWbfuSIhKg6iLOkVOf1F1b8pgYAEzc6FDj7i"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:41.394741"], ["updated_at", "2016-10-02 08:31:41.394741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("amount", "interval", "name", "currency", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["currency", "usd"], ["id", 0], ["created_at", "2016-10-02 08:31:41.398187"], ["updated_at", "2016-10-02 08:31:41.398187"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:31:41.398187"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$sSyQa1ltsqTra.qBHnhKvu/Eu5yr1bzEUrF.nLn8c7u3D85hLdlGC"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:41.770180"], ["updated_at", "2016-10-02 08:31:41.770180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("amount", "interval", "name", "currency", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["currency", "usd"], ["id", 0], ["created_at", "2016-10-02 08:31:41.773772"], ["updated_at", "2016-10-02 08:31:41.773772"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:31:41.773772"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$qEs1ProTuYckvZVtBjs.deW/rE2.4iGLUoKv88t3ciBl1MVwexyFm"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:42.142612"], ["updated_at", "2016-10-02 08:31:42.142612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("amount", "interval", "name", "currency", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["currency", "usd"], ["id", 0], ["created_at", "2016-10-02 08:31:42.146047"], ["updated_at", "2016-10-02 08:31:42.146047"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:31:42.146047"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$W/DNj9VsRMoj0Kx0B7jBbu9AJ2TSJz0SKIR8WgDbCtOqKpJRx5PZy"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:42.572292"], ["updated_at", "2016-10-02 08:31:42.572292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("amount", "interval", "name", "currency", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["currency", "usd"], ["id", 0], ["created_at", "2016-10-02 08:31:42.576181"], ["updated_at", "2016-10-02 08:31:42.576181"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:31:42.576181"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$IITv0BGmYnbO9c.l5rCoD.FvEg6pihT2ZJtV.LcgtOpbFUMnJaPSq"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:42.935991"], ["updated_at", "2016-10-02 08:31:42.935991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("amount", "interval", "name", "currency", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["currency", "usd"], ["id", 0], ["created_at", "2016-10-02 08:31:42.939443"], ["updated_at", "2016-10-02 08:31:42.939443"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:31:42.939443"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$5I/OPtT/KJbQNQRGYJ.LCuHHlCZLetmta6gPI7c0CkoOLEC8d3B7y"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:43.309088"], ["updated_at", "2016-10-02 08:31:43.309088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$NZi3IGg/4NAjo39NwlK30O/st6PLUQkfnxWBEuT3NCKEvKp7hdJ16"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:43.315248"], ["updated_at", "2016-10-02 08:31:43.315248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$lCDTuzte0IeBhe2Z9Lt5jegIeI.ISPN2ybyQJqD5qXUbAlFrZLMce"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:43.322101"], ["updated_at", "2016-10-02 08:31:43.322101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$scNH.KyWp57LDN6JOUyaB.gFcwoO/Yk0qi5DI4w4YfCzD.ppir6my"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:43.328964"], ["updated_at", "2016-10-02 08:31:43.328964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$kT31ALRZxvOlyuHWpydXCuDsGz0Q1TEvV5gIphpJJmaLDIc87.ukK"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:43.335844"], ["updated_at", "2016-10-02 08:31:43.335844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$At22fH1Hw1jrle63bZYnk.ZdsRr1DT4VJp.ZO0tt.ke4fddeD0VpG"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:43.342859"], ["updated_at", "2016-10-02 08:31:43.342859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$FLonA8FZPgJTGJgLNMsyOuygsLp6meIqqAcKA0z72Ns.upDwhQQBK"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:43.349440"], ["updated_at", "2016-10-02 08:31:43.349440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$UwK0DwOPN3PVxNyFWvQShuh8hXGxi.UxymwOhZ/0re42MwbrEo5e6"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:43.355777"], ["updated_at", "2016-10-02 08:31:43.355777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$zJsDLUxpL8ZjPuI5jMr.COSEoaK4hctM3XkUsoxnRy.Z2vtpN8M2K"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:43.361718"], ["updated_at", "2016-10-02 08:31:43.361718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '26f2f84c-11c2-48a1-bb78-07d7bc1f6d72' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$Et4a.v21AbdENU2MhkeS2e3umGmOfyutWhAOLauXGf24Lu3oFlCqm"], ["stripe_id", "26f2f84c-11c2-48a1-bb78-07d7bc1f6d72"], ["created_at", "2016-10-02 08:31:43.367547"], ["updated_at", "2016-10-02 08:31:43.367547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 15ms (Views: 10.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (23.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$Sf/RX9HBMvdCJWzZrGjoSOVmR0Q8gLrqj1SiVWaysjakmFpHvVeIq"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:29.300206"], ["updated_at", "2016-10-02 08:33:29.300206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$y0IJDr7raiOL0HPjsqqgyeFJ4GZ3QwEaP.rjm3nuhkS3cRSV6jyU."], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:29.331892"], ["updated_at", "2016-10-02 08:33:29.331892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$hKLZuMiK26oWLeV6l2.wvexswwhD/GkLwTnUpvBVPgh3xCiUNJSnC"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:29.339643"], ["updated_at", "2016-10-02 08:33:29.339643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 53ms (Views: 31.2ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$dwih5sp65ox6bjbhlRwOB./At/2n/7s0zvIhm4.ZpXWpLn3ISMYui"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:29.414588"], ["updated_at", "2016-10-02 08:33:29.414588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$LLnzbIgticddkQM0P5WCMe9joyLOfeN1eU1IdkD62fQhP/dRpf.ba"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:29.420749"], ["updated_at", "2016-10-02 08:33:29.420749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$wfuAW5bkjwsKskXaxb4cLOrmnq0f.x/WVzgcRV952Jy4bDCyoyJgG"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:29.432224"], ["updated_at", "2016-10-02 08:33:29.432224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$QQZvBmYhRCDNaihhy6E2r.Z4hCAWD/GRJqx.SpLhgT9S2A/Z7uhPm"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:29.438615"], ["updated_at", "2016-10-02 08:33:29.438615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (5.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$f2H7IYzgtX6wVBP76VLskeX00B.RXeP/d47bBxcGJ6Kmsw28oTiZ2"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:29.444597"], ["updated_at", "2016-10-02 08:33:29.444597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$z7e9Zz/iNX0vd72GbrlttuYT6EfA4Fn1MoednF2dWlai1aylROUFO"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:29.456008"], ["updated_at", "2016-10-02 08:33:29.456008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$SFQ3vI6VtfOJvv8UdEogpuo7WeraYDjZnNWdmQDPBmJ4qR6uTLS3G"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:29.461518"], ["updated_at", "2016-10-02 08:33:29.461518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$v.pUdpo4M7LKnZTKw1g4puMg.bfCJEgXJ1VOk.XSSq/lB85acGmdO"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:29.466949"], ["updated_at", "2016-10-02 08:33:29.466949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$nU4pVPRKMkDlyjevGX7AkuETYwJw.sgt2uYQQNBl5JDUlJW7xvLc2"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:29.471966"], ["updated_at", "2016-10-02 08:33:29.471966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$SQg2nPfdDpEsvq/AbxCQleAMzrDL66YtPOMGHnR7tpYLHZ4HQGkou"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:29.477243"], ["updated_at", "2016-10-02 08:33:29.477243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$vR3HXHTXJk0ckUt6z4EZ4O2m3ydNiop0dCX0W24KtFIuMx4I4nlTG"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:29.482632"], ["updated_at", "2016-10-02 08:33:29.482632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$afjMTSxejAhJ2FI/NLwr/ebKFVj7eXmSzW/EnyFXJ1HlmcLKBZac6"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:29.487842"], ["updated_at", "2016-10-02 08:33:29.487842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$zP7YmyvHk6Nxxx97V58A3.NN2t5.4OJR5P0wsA.UZGEWDv/5FO1/G"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:29.492961"], ["updated_at", "2016-10-02 08:33:29.492961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$.GGqlwZGXBhqL3UnDTlj9.Lj/KoW1LfliDtPszZZNw8ld4n0/VTW."], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:29.498336"], ["updated_at", "2016-10-02 08:33:29.498336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$RqxIZ4j1B5WbM6P3WgNVZe0UXwg/o3LXYWaosgfFG2FZYD4NVhydW"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:29.503657"], ["updated_at", "2016-10-02 08:33:29.503657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$8TWTb.jBdNgXOXWYJmBrqufK/G4TybtWWWXrbMjHqoelu4w2lbJHS"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:29.509017"], ["updated_at", "2016-10-02 08:33:29.509017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$ngfuINUs8XiAx9hnSBD4.OBOy0MKBtCnZo07jeU3cz2wRX7tIHXoq"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:29.514376"], ["updated_at", "2016-10-02 08:33:29.514376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$415tu6eBaeL8jKMIXLfUkehc/wu.a3S/q2Xgdo2jJe3FGaFGmSxaq"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:29.522100"], ["updated_at", "2016-10-02 08:33:29.522100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$2BOPM3Xja2dykwMTbe4bh.tfDAUaLI930Gt2rvE7gRlNsxgYnd8Xu"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:29.527749"], ["updated_at", "2016-10-02 08:33:29.527749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$VDhh0Wka/9r5CdNJ0iPSfu2bxu74kCqydXbvfvE1UPSudfi64/x56"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:29.533531"], ["updated_at", "2016-10-02 08:33:29.533531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$2hwm0KAtjS0jLukNGZBuHec8GaTimqfEs0ObiE0b0OvWdQxSR7FNu"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:29.538986"], ["updated_at", "2016-10-02 08:33:29.538986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$5LTTqm/ZX5r.B0fe3ghmiO5am5aD/yd9glt4uywkA.Fh3wUWY715."], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:29.544810"], ["updated_at", "2016-10-02 08:33:29.544810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$nl4HnpmYmOPZnLVx0UbdlORbDxnQYv1f5y0v3NkU9ZgTisscg4Q6e"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:29.551750"], ["updated_at", "2016-10-02 08:33:29.551750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$mePbZgHBQpONNx3uvr2N1./bP/3m.NXo9egoYHrQQxmmORGJVj3hO"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:29.557965"], ["updated_at", "2016-10-02 08:33:29.557965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("amount", "interval", "name", "currency", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["currency", "usd"], ["id", 0], ["created_at", "2016-10-02 08:33:29.570144"], ["updated_at", "2016-10-02 08:33:29.570144"]] SQL (16.9ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-02 08:33:29.570144"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 13ms (Views: 11.3ms | ActiveRecord: 0.3ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$CzYRhV54m1H2djWatmmn/OmsgJfGPkNZ37gb9QDm9wXXXQsmv8eVu"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:30.068710"], ["updated_at", "2016-10-02 08:33:30.068710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "amount", "interval", "name", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["id", 0], ["created_at", "2016-10-02 08:33:30.073269"], ["updated_at", "2016-10-02 08:33:30.073269"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-02 08:33:30.073269"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$XFkoU8hGnzcFJOxfOx3XCuPE4DYE45WS2wT.ZZxAwm.pQ4539WiOO"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:30.454380"], ["updated_at", "2016-10-02 08:33:30.454380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$lLSzLqyR6pmuCqx8B2h.2O0NctMrJN3aTra45GT0RquCVFB27AAOO"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:30.471744"], ["updated_at", "2016-10-02 08:33:30.471744"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("amount", "interval", "name", "currency", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["currency", "usd"], ["id", 0], ["created_at", "2016-10-02 08:33:30.475205"], ["updated_at", "2016-10-02 08:33:30.475205"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-02 08:33:30.475205"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$4Gi6KGNRXdOJrhPhsp2RROImzCKnW9K.C0mcfLYLZdf.e0uaLzfda"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:30.849374"], ["updated_at", "2016-10-02 08:33:30.849374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"amount"=>"2000", "interval"=>"month", "name"=>"Amazing Gold Plan", "currency"=>"usd", "id"=>"gold"}}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$1TaZRhFwisXo3JJkEWwjhObkoPYuJdbynLfBKnWqI4BhYx5NHgdR."], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:30.864852"], ["updated_at", "2016-10-02 08:33:30.864852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"amount"=>"2000", "interval"=>"month", "name"=>"Amazing Gold Plan", "currency"=>"usd", "id"=>"gold"}}, "session"=>{}} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$ynITvyXISLJWUp5AO9P8X.aFMIz9MbCbByFlF9GWckXTX1pkEXHXm"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:30.877846"], ["updated_at", "2016-10-02 08:33:30.877846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"amount"=>"2000", "interval"=>"month", "name"=>"Amazing Gold Plan", "currency"=>"usd", "id"=>"gold"}}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]] Completed 400 Bad Request in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$G0p6xYwGuf/qKxP9fIEIh.uC9bJGbRfQgkOzrEPOWhRmHi3Wnyvsy"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:30.891210"], ["updated_at", "2016-10-02 08:33:30.891210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"amount"=>"2000", "interval"=>"month", "name"=>nil, "currency"=>"usd", "id"=>"gold"}}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]] Completed 400 Bad Request in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$8xMOUm0hUH8YaDWbKMRON.wiiWWZaYAgFtvYsdWS4l.Emq/oj5B/6"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:30.903231"], ["updated_at", "2016-10-02 08:33:30.903231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"amount"=>"2000", "interval"=>"month", "name"=>nil, "currency"=>"usd", "id"=>"gold"}}, "session"=>{}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]] Completed 400 Bad Request in 1ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$xEcJDfQB4Nk34GfDeoW4Gu/1.NUdLs2rkdhxybU/Wy8WkoI9ZgAgS"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:30.915131"], ["updated_at", "2016-10-02 08:33:30.915131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("amount", "interval", "name", "currency", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["currency", "usd"], ["id", 0], ["created_at", "2016-10-02 08:33:30.918379"], ["updated_at", "2016-10-02 08:33:30.918379"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:33:30.918379"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$zKt2Xk0oSAXySXX8KV9sBeQuAPZsa6VC0OLd0Wgb6jnybJKAOWmZ."], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:31.298808"], ["updated_at", "2016-10-02 08:33:31.298808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("amount", "interval", "name", "currency", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["currency", "usd"], ["id", 0], ["created_at", "2016-10-02 08:33:31.302387"], ["updated_at", "2016-10-02 08:33:31.302387"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:33:31.302387"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$V12brFU4VLQkUFxtK8Bc2eIwfNk7DNYqggsJcfephXmeISd08NFw6"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:31.690452"], ["updated_at", "2016-10-02 08:33:31.690452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("amount", "interval", "name", "currency", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["currency", "usd"], ["id", 0], ["created_at", "2016-10-02 08:33:31.694368"], ["updated_at", "2016-10-02 08:33:31.694368"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:33:31.694368"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$FZOtYd1Xjc4vJTlqzuYBk.FIh6qzrBUmUk2hAyHVjEfB5w5Igqs6q"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:32.108604"], ["updated_at", "2016-10-02 08:33:32.108604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("amount", "interval", "name", "currency", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["currency", "usd"], ["id", 0], ["created_at", "2016-10-02 08:33:32.111843"], ["updated_at", "2016-10-02 08:33:32.111843"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:33:32.111843"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$wpXwBPU.BViF3uzFZJ1.s.lFYZyJ0YBvdQ0zZgsfO8s3FocqhPbjm"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:32.524543"], ["updated_at", "2016-10-02 08:33:32.524543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("amount", "interval", "name", "currency", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["currency", "usd"], ["id", 0], ["created_at", "2016-10-02 08:33:32.527814"], ["updated_at", "2016-10-02 08:33:32.527814"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:33:32.527814"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$O6g/X8btvCe.CAL2Wrog0u9wBywnrSvBXNasI6Z2fVjDjsn84YAIG"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:32.905195"], ["updated_at", "2016-10-02 08:33:32.905195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("amount", "interval", "name", "currency", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["currency", "usd"], ["id", 0], ["created_at", "2016-10-02 08:33:32.908873"], ["updated_at", "2016-10-02 08:33:32.908873"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:33:32.908873"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$yInAUGARLeMf.bvbtZdfHe9spnZDLgGnivvGL2EEbjPB2G.L2l36G"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:33.272978"], ["updated_at", "2016-10-02 08:33:33.272978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("amount", "interval", "name", "currency", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["currency", "usd"], ["id", 0], ["created_at", "2016-10-02 08:33:33.276981"], ["updated_at", "2016-10-02 08:33:33.276981"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:33:33.276981"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$k7lH6UbYmcDxb/lzoVkkhurTZFh/WbS.sfeU91ce4arNLLCUENaUm"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:33.649023"], ["updated_at", "2016-10-02 08:33:33.649023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$TifmkuTH/FEVabvTm3.4PutdGEFp7bZSbChOsYYLE7o3PY3A7xf2a"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:33.656583"], ["updated_at", "2016-10-02 08:33:33.656583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$9EBGlOPfQ2qrHqhAMb.cXOm8Brb2VX4PsesSZ9zd4J76MYmDnk1zS"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:33.663816"], ["updated_at", "2016-10-02 08:33:33.663816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$CvkNs.F7q3vIncfe6m9ccuQ0swONPPmyS0iTKCD02hogXCFYb1HGK"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:33.669928"], ["updated_at", "2016-10-02 08:33:33.669928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$4mpa/vacTcqWedCkx3zT/OP3v0u2lYP.SNXx.Kp.vNwnvctZMuYNi"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:33.675610"], ["updated_at", "2016-10-02 08:33:33.675610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$6472WEEmoPhLGdXHrJQd1OEmY.i7qdCo8nzPCb.OylPCstDCw7noS"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:33.681432"], ["updated_at", "2016-10-02 08:33:33.681432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$ZI4KWadSTTbRrz.TQ7SxWu/HpsDFEaRxcp3G5TIg0FJnJYKS4H1nm"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:33.687135"], ["updated_at", "2016-10-02 08:33:33.687135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$jeGEm2kt6nnYuFa2TGNV7OzZ./TVxDM18gRVG88.fSLDhvXGcZwe6"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:33.692483"], ["updated_at", "2016-10-02 08:33:33.692483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$qLYWPW0OZ3/UmIz.M5s3LunaTDJjE46yHXxBCxgIxbN0aS1T8htD6"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:33.699309"], ["updated_at", "2016-10-02 08:33:33.699309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$17rNElxoxg9COvUi91WKQOVzI65vhhoV9BXpXaHisZGOHfAfHI3jG"], ["stripe_id", "56fbc4ed-63a9-4e5f-ba0d-99146b4cbd5d"], ["created_at", "2016-10-02 08:33:33.706235"], ["updated_at", "2016-10-02 08:33:33.706235"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 14ms (Views: 8.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (1.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (22.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$OU6gDnFwTtqEfD0BaBuFyOKrUZ9mJSOqcd/gWvK6/cUufebGbxJm."], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:14.761617"], ["updated_at", "2016-10-02 08:34:14.761617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$8DqFJamRigNzDN2fhRqJ4./0x4lhlcTdCrMulRTki9cbVss7m75W2"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:14.790723"], ["updated_at", "2016-10-02 08:34:14.790723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$MjQgfzJntnU14F48s.tK1OShdgJpZH.DglcljbkxMtxU9QxIwTS5q"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:14.796364"], ["updated_at", "2016-10-02 08:34:14.796364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 46ms (Views: 27.8ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$y/kunYpM6MWuGRRZuoJFP.VToktZZVrJUvKahPbTKUo5e.0nmhyAm"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:14.863405"], ["updated_at", "2016-10-02 08:34:14.863405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$rUSPwRqLCOJjl683dtT5W.10kLGRsQ7m/.F4oQidXyTzIvU5XzO2S"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:14.869297"], ["updated_at", "2016-10-02 08:34:14.869297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$t5oTHHXKtmDx9DTw/t7omeIvRUUOX.XutJ1MFtUVShXiuBA.6T2/i"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:14.878603"], ["updated_at", "2016-10-02 08:34:14.878603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$UJC.jfOVrU1LjI9e3ZvpHehhzzmXyEtgl3VL8QrBQRQpCmfGlaDoO"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:14.884054"], ["updated_at", "2016-10-02 08:34:14.884054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$SgZs.sCdKvrOpfzWiCdMLeM/luaL1HIWeTCEd0Uu9S/iX955PMg.S"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:14.889509"], ["updated_at", "2016-10-02 08:34:14.889509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$RXoDKW5GVwWfJxYRjjr7Yumn4.MkB.PWvM6p3Or9k0sPO5IuGBv76"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:14.895120"], ["updated_at", "2016-10-02 08:34:14.895120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$digdRbbNi9RqkcGfSb6zNe2QgpyDwHbUwdv77itPWVvAstFGseFqG"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:14.901122"], ["updated_at", "2016-10-02 08:34:14.901122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$ht0aiqJRlz8phqoDDrsFW.6XstrdFvpSdpndrs27eHeGkRffl1Qse"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:14.906675"], ["updated_at", "2016-10-02 08:34:14.906675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$.AxzCdu9ZsFdVlzh2n15Hu0GAiQvDnFOx6MD87awso5QBNFOVDCHi"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:14.911803"], ["updated_at", "2016-10-02 08:34:14.911803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$Vg0eBrPPriQBuVF7W76q..GRpQ75lyckG7ybvP0OiJsGthLrWnSwC"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:14.917324"], ["updated_at", "2016-10-02 08:34:14.917324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$PPVjvyh1hTkveeJm9bs4HeD34RH2qLvBhssa1sCLNyHIa.BMO4uuy"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:14.922916"], ["updated_at", "2016-10-02 08:34:14.922916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$F.x8Wv0cuYU4X4AKgLfwO.FEz6dTjQsokscb9JcOIWjSolOaSrswy"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:14.928654"], ["updated_at", "2016-10-02 08:34:14.928654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$QwAHGjGEAxmbIXw3JZ05XechBnBm2vqOgFvyekskQcC0CZV1oCusO"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:14.934103"], ["updated_at", "2016-10-02 08:34:14.934103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$zGj9oYsJQdX/lW3pfDxF7OMPRj2CGkamRtBbQT9/fo9TUpCdFbQ3K"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:14.939867"], ["updated_at", "2016-10-02 08:34:14.939867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$UJ5KGqMFf53FL9DWRpiNdO/D2Gze1X05ve7KfUIivdTMYXs1dXKuG"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:14.945867"], ["updated_at", "2016-10-02 08:34:14.945867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$WyBYRdBkkqUi3mROv/ls4OUj9rHjDbeHK4u1iNKY/2UcFgI9dbeze"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:14.951728"], ["updated_at", "2016-10-02 08:34:14.951728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$CjnS6FuGbKQfg9.U5geCoek/nzEd1bDKH6E.CrDj2Fjdemq82.bHW"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:14.957957"], ["updated_at", "2016-10-02 08:34:14.957957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$RdAgQkHe5aa.HJQfAdyQJu88if8pvY4il6RthWXIgN.dyJxXhRhie"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:14.963606"], ["updated_at", "2016-10-02 08:34:14.963606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$hVwz/0mSq3KpVUm8k2lXi.hCu9wLZVzfbx38t5BD/P9/R3HuupAMO"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:14.969170"], ["updated_at", "2016-10-02 08:34:14.969170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$83MJtW5wYzrpqTOF5sbGhuX4GdAudtNnWYtGNsdnvNp1Po4UsqG56"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:14.975089"], ["updated_at", "2016-10-02 08:34:14.975089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$RHD6.VnhI1r.fY7Y8wJGoekThljKSXhaQSLp/.lKQ86o9jN8vHpPW"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:14.980704"], ["updated_at", "2016-10-02 08:34:14.980704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (1.6ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$Ku56E8ygaHWcyx0W53XXw.kFukfWy640MA7Cm1NLtyUbtG5gV.WDa"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:14.986325"], ["updated_at", "2016-10-02 08:34:14.986325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$IVgDWdgjIspZRAV/0ZS7M.fgqqe5NYls6TPgxb.crPwWqsiZq4DdK"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:14.993375"], ["updated_at", "2016-10-02 08:34:14.993375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$7Q40.3Nls1wxFFNrdjlPwOkVyNTRb8Gbfc37SGwGXEzQVr3.bLbu."], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:14.998966"], ["updated_at", "2016-10-02 08:34:14.998966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (1.4ms) INSERT INTO "tang_plans" ("amount", "interval", "name", "currency", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["currency", "usd"], ["id", 0], ["created_at", "2016-10-02 08:34:15.012994"], ["updated_at", "2016-10-02 08:34:15.012994"]] SQL (11.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-02 08:34:15.012994"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 14ms (Views: 12.1ms | ActiveRecord: 0.2ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$a3Yp5yn0IgRS8kMj/LRVoOV4MHcoaxS8G9NXwD.4veXphSqYM1E3u"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:15.852402"], ["updated_at", "2016-10-02 08:34:15.852402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("currency", "amount", "interval", "name", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["id", 0], ["created_at", "2016-10-02 08:34:15.856867"], ["updated_at", "2016-10-02 08:34:15.856867"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-02 08:34:15.856867"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$yCAzv.i4yAITqVACRMsm5e03tI/AMSsIeVLASG1FGNcVjRUXtaqh2"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:16.230762"], ["updated_at", "2016-10-02 08:34:16.230762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$e5xpokpLf0Z.NpolaWAr8eZF02LvekymLxYVT5Bsg3nxUZ6QysjvO"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:16.249444"], ["updated_at", "2016-10-02 08:34:16.249444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("amount", "interval", "name", "currency", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["currency", "usd"], ["id", 0], ["created_at", "2016-10-02 08:34:16.252916"], ["updated_at", "2016-10-02 08:34:16.252916"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-02 08:34:16.252916"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$.ifY5ew.DtxVyWrMWmpw3e1Dqsti0E/9sprF5uawX9VVFzAFjMWtK"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:16.623814"], ["updated_at", "2016-10-02 08:34:16.623814"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"amount"=>"2000", "interval"=>"month", "name"=>"Amazing Gold Plan", "currency"=>"usd", "id"=>"gold"}}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$OgeTux3lK0h0AODH0wht.eGEacdE9x0q1qPoIpcGcf868v7QuMfK2"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:16.639492"], ["updated_at", "2016-10-02 08:34:16.639492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"amount"=>"2000", "interval"=>"month", "name"=>"Amazing Gold Plan", "currency"=>"usd", "id"=>"gold"}}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]] Completed 400 Bad Request in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$dB1g0qo3vXdIdOkyfsGz7.vvfFFoK2sxkYPBU.8hFQI4cTOEDk/oi"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:16.652907"], ["updated_at", "2016-10-02 08:34:16.652907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"amount"=>"2000", "interval"=>"month", "name"=>"Amazing Gold Plan", "currency"=>"usd", "id"=>"gold"}}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$KNU3wNI3FHym74gu1Ksu7ecGWlsaJNvJkF7wZe2gjIbatYs9vgr4C"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:16.665310"], ["updated_at", "2016-10-02 08:34:16.665310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"amount"=>"2000", "interval"=>"month", "name"=>nil, "currency"=>"usd", "id"=>"gold"}}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$qI2kWX659xuYqilisjME3uHePq422bLo280ELlvdg1FSCjiqrJYD2"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:16.678180"], ["updated_at", "2016-10-02 08:34:16.678180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"amount"=>"2000", "interval"=>"month", "name"=>nil, "currency"=>"usd", "id"=>"gold"}}, "session"=>{}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]] Completed 400 Bad Request in 1ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$azuJ1NR3W7g29sTdRDzSpu4VUdEBDj9CixSpnkAXQuVOi06tsrT0u"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:16.689605"], ["updated_at", "2016-10-02 08:34:16.689605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("amount", "interval", "name", "currency", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["currency", "usd"], ["id", 0], ["created_at", "2016-10-02 08:34:16.693093"], ["updated_at", "2016-10-02 08:34:16.693093"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:34:16.693093"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$yNodvSHkb8G8r2lVn2Xk8eCxj61oZIyN.BY7A7vZb3Fxzn4x15mcS"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:17.056722"], ["updated_at", "2016-10-02 08:34:17.056722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("amount", "interval", "name", "currency", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["currency", "usd"], ["id", 0], ["created_at", "2016-10-02 08:34:17.060551"], ["updated_at", "2016-10-02 08:34:17.060551"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:34:17.060551"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$7vW0FgsXYghCSpygya0GZe7vRgHgxWCGhI3y7ubYklgyo5BF6tcay"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:17.421906"], ["updated_at", "2016-10-02 08:34:17.421906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("amount", "interval", "name", "currency", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["currency", "usd"], ["id", 0], ["created_at", "2016-10-02 08:34:17.425518"], ["updated_at", "2016-10-02 08:34:17.425518"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:34:17.425518"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$RK2E0gSk3S6GfCUGtRghj.w.V8Iu5nh2x3IxPGjV4FmuGPGROeWpm"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:17.797968"], ["updated_at", "2016-10-02 08:34:17.797968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("amount", "interval", "name", "currency", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["currency", "usd"], ["id", 0], ["created_at", "2016-10-02 08:34:17.802347"], ["updated_at", "2016-10-02 08:34:17.802347"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:34:17.802347"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$jX/4J9kL6yGlXJXRrgYghud9roS532ZSpdMK0VNJfbSmItgz6236K"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:18.169303"], ["updated_at", "2016-10-02 08:34:18.169303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("amount", "interval", "name", "currency", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["currency", "usd"], ["id", 0], ["created_at", "2016-10-02 08:34:18.172997"], ["updated_at", "2016-10-02 08:34:18.172997"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:34:18.172997"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$G7Okgtge7mzuVliDjrYTGOVnvBMsenTANbRJ.YT4bXPLHFvoKK5Xq"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:18.970679"], ["updated_at", "2016-10-02 08:34:18.970679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("amount", "interval", "name", "currency", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["currency", "usd"], ["id", 0], ["created_at", "2016-10-02 08:34:18.973706"], ["updated_at", "2016-10-02 08:34:18.973706"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:34:18.973706"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$qjX05ur4Ed/Zgyo63CsLge23cnfPqKE/w0E.30n7ajCKqojIepriW"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:19.334070"], ["updated_at", "2016-10-02 08:34:19.334070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" IS NULL LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("amount", "interval", "name", "currency", "id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["amount", 2000], ["interval", "month"], ["name", "Amazing Gold Plan"], ["currency", "usd"], ["id", 0], ["created_at", "2016-10-02 08:34:19.338312"], ["updated_at", "2016-10-02 08:34:19.338312"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:34:19.338312"], ["item_id", 0], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$zZv7jt4y.MyHwhZlJiDO9eGSi6Ht61Q//sbKoxMFpHOcoT5fJB39a"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:19.718316"], ["updated_at", "2016-10-02 08:34:19.718316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$njY/wQdzTo64QzpL.uFuPu3LLRZ5OCo1X4Yh6ovkbZshY2UNgR362"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:19.724614"], ["updated_at", "2016-10-02 08:34:19.724614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$mRWEDGdx89a4MiCDMB5..OWXontzxOS3VTMLyX75uESKW4XFdyqgq"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:19.730968"], ["updated_at", "2016-10-02 08:34:19.730968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$QiwXcBEyHVkEVa5O/myOG.Aip2ToNtNpd0EgHFuGAlLPj6jF9.5Xi"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:19.738451"], ["updated_at", "2016-10-02 08:34:19.738451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$lymK1xAWwpu0UcKt9m1dSuUNiMn.dpwCCQf7OsBYiKR42HJrOlHdq"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:19.744050"], ["updated_at", "2016-10-02 08:34:19.744050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$WCNb75IvaA/Jii2U0wPkKOGh1NLBHYpsHrQq0WsoRKc7sCVc0chfC"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:19.750645"], ["updated_at", "2016-10-02 08:34:19.750645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$P6/gxbfLohGAcO4Iye85mORkrOLV2QGopdEJMBPIfANwyJgl0VUj6"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:19.756957"], ["updated_at", "2016-10-02 08:34:19.756957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$oFpwhxGKYpQEJf/gbv5M8Ox.iOi7R8wXbA/6/huAb7UKUod5HPM3i"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:19.762908"], ["updated_at", "2016-10-02 08:34:19.762908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$mRXjoE8CmY/5tnynVUi/GOpdw8uSed3fSa8MRNVtfwAk0SuFf41C6"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:19.769155"], ["updated_at", "2016-10-02 08:34:19.769155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c901c402-cbdb-462b-a98c-c55a54492809' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$XfV30vmMPY6SV88eUGiDTud8D9fTOBgr/0JVoz.3izRp.aelSWmim"], ["stripe_id", "c901c402-cbdb-462b-a98c-c55a54492809"], ["created_at", "2016-10-02 08:34:19.774880"], ["updated_at", "2016-10-02 08:34:19.774880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 15ms (Views: 9.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (23.9ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$TuccQ1qgAm.9NCXac3MA3ulA6tdw5AIVf5zM.nrz/IKhQKC4tQKJm"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:51.885515"], ["updated_at", "2016-10-02 08:35:51.885515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$XO8OC1PNPrbcmmtdjnL98uQTMqGDDbmYSdqFyoGfhyi/df8wfQSTa"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:51.916503"], ["updated_at", "2016-10-02 08:35:51.916503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$ajMZwJ43eGTFTX.Q3QyiWuX8PIVPzswoOU.HAUhCMqZZc.7ICqYle"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:51.922373"], ["updated_at", "2016-10-02 08:35:51.922373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.4ms) Completed 200 OK in 55ms (Views: 36.0ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$RjurdJ43j5ahHS57TJEYqegK/UbcSlvaTlo4A./mStJ0ZvDMBckZC"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:52.001366"], ["updated_at", "2016-10-02 08:35:52.001366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$AeLZSzBILtDZJOivAA2SQOk2zUHUWhdP7BDsRDi6Al1yFjuZMYpsK"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:52.007423"], ["updated_at", "2016-10-02 08:35:52.007423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$n6x5iug/nKmp4lfzWQJICeFOO75WAfYfYUJaHG2o9jZnuiS/GUvQm"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:52.016403"], ["updated_at", "2016-10-02 08:35:52.016403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$43H4VtQlXytxFUwKZWi7cOqKgLbnshadViIhZXCxrOMG/rXBq69zG"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:52.024418"], ["updated_at", "2016-10-02 08:35:52.024418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$hP5mcQdPp0RqTsVy0QVgGu3dqq1vA8/XWUA0smd1yzfRifVlp9CvO"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:52.031265"], ["updated_at", "2016-10-02 08:35:52.031265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$djfRI14g./ohCY2EWiJUwOfIN87Jg0b1IDrYrwX.ChVAgARPDygdq"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:52.038440"], ["updated_at", "2016-10-02 08:35:52.038440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$../VO3MVyC40xdhTiCLZneii6oq7Cn8E/R4PWh3mqUWIsyRnPWxuu"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:52.045417"], ["updated_at", "2016-10-02 08:35:52.045417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$hev.TtxigoZiKu5M6sUp4eWpb6Y57GIjItOsoZBPao2T3qAq4aJRq"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:52.051365"], ["updated_at", "2016-10-02 08:35:52.051365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$rxjXtvFLW.ucRjFvSwLBduZ4VlNt0YpvIhLqu.PmIfCS6nGDWEZFq"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:52.056680"], ["updated_at", "2016-10-02 08:35:52.056680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$8HgYLeOYZGrrtRV4jkHQ8uXK8I9SlFP5OeRO//04fzI0pLXoE8tmO"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:52.061623"], ["updated_at", "2016-10-02 08:35:52.061623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$OG63HNCGHzd9sSK6kqoFNuxCAqz3Ws1CphW2m/cdUci7wnig3uKjO"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:52.068330"], ["updated_at", "2016-10-02 08:35:52.068330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$mSC4RlKqVT5XVaStj3Vzn.nJKAIPHpP8T9291WLezsHt2Ux53wD9S"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:52.073615"], ["updated_at", "2016-10-02 08:35:52.073615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$QwFeqjOlxe20UzMQRZbRMeYq.xp5mbC51MaFwBO1c7w1MUb5RRnUu"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:52.079109"], ["updated_at", "2016-10-02 08:35:52.079109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$jLPq5cl9SJCs15tIaaNBpegwI0NRaITp5/y3oGdSy8uuRD1qdaxDi"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:52.084563"], ["updated_at", "2016-10-02 08:35:52.084563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$HaqLq7wT3g/.VoczjqBTvueFXBK5tN7jfqlue7B2wsJsT0U4POS2u"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:52.089711"], ["updated_at", "2016-10-02 08:35:52.089711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$m2n53x0uc.D2NHGMSX44B.tqlGh2yKz4xOQmtFp2H5KjgtNol4ceO"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:52.094790"], ["updated_at", "2016-10-02 08:35:52.094790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$fx1UNv1o2hQvUgwow0vx.Ovykllc4ynBWH38hEaxTcBjCjV01IPGm"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:52.101720"], ["updated_at", "2016-10-02 08:35:52.101720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$m8eeE7aI9o8R3wsWxvoXp.AZa1FUqzFgPXi6pPAFzxADdBNMrjjEy"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:52.107352"], ["updated_at", "2016-10-02 08:35:52.107352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$tj.CzKB53972R/Sj6Fu5j.fNU2nOpAGrWI7j3sHJUbVYhPl5pOUKy"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:52.113542"], ["updated_at", "2016-10-02 08:35:52.113542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$lsU9Fil7YJXzsYubTQHaBelDQA.XAGBOArYmbZEkZqDjP38qE5076"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:52.119214"], ["updated_at", "2016-10-02 08:35:52.119214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$Q9.TbcymrZMsY1LMu5mAQeUQVUJCCjmeF.nQh4d/p3DQ/ia3hFeSi"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:52.125347"], ["updated_at", "2016-10-02 08:35:52.125347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$gOKgwYdbrfJxwHalkd2SuezB2FiAFoZkVEguwMgKDME/wMQtvy3r6"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:52.131341"], ["updated_at", "2016-10-02 08:35:52.131341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$BFMaZAhtkz/bBiT4Wh0QxOxYM7pE5dt4NimsnznoBmMt0PB1Z.7Y2"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:52.137671"], ["updated_at", "2016-10-02 08:35:52.137671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$VY9Q9X/Bgu9H5S3QDBVyf.vriR.DjCKjtoKywgeqsZFc5rS9B08SS"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:52.143805"], ["updated_at", "2016-10-02 08:35:52.143805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "gold"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:35:52.156459"], ["updated_at", "2016-10-02 08:35:52.156459"]] SQL (16.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-02 08:35:52.156459"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 16ms (Views: 13.4ms | ActiveRecord: 0.3ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$4L6vUmbLMQeFOusRGJWC1.EW5T9VmUBEndyWsTyrP3dN3OGyPbhde"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:53.059128"], ["updated_at", "2016-10-02 08:35:53.059128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "gold"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 08:35:53.063481"], ["updated_at", "2016-10-02 08:35:53.063481"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-02 08:35:53.063481"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$dvo6NIG21/28kY16DeXQT.PsH4aU/y0RN0gGDG1eURErx6eyVaFGa"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:53.429089"], ["updated_at", "2016-10-02 08:35:53.429089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$FqGMEqHtOntXB5FoszUq/uRw7Zfyl1D/2cF0MJa6NWXYi6aLbxI8W"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:53.445709"], ["updated_at", "2016-10-02 08:35:53.445709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "gold"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:35:53.448846"], ["updated_at", "2016-10-02 08:35:53.448846"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-02 08:35:53.448846"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$ivaiCH.7JpVNgi7kcAO3sO/nJZryZPfH2ZFaCb7SDIklF2uDkjEwm"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:53.841965"], ["updated_at", "2016-10-02 08:35:53.841965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$adX.AALqnEwf.6Ft5OW2S.iZYTvMjO2cTrzaDXmPa4Oi8RXH3pwXG"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:53.855956"], ["updated_at", "2016-10-02 08:35:53.855956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$3zOBSJCscN01FBJrS2skBOCBBbOzEjtZhw7cOc9yiLV.Vkmwfa0HW"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:53.868666"], ["updated_at", "2016-10-02 08:35:53.868666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$HAM8IYjFF4rvxBZJ6UfX7O8aFchznzgL5bgXBor7bPW4.dHxOxi3K"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:53.881075"], ["updated_at", "2016-10-02 08:35:53.881075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"gold", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$pNvguNpN0I/pJqBgGyaQoudiRzZtucVj7yUZugFAF4Ib22KzQmpcy"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:53.893139"], ["updated_at", "2016-10-02 08:35:53.893139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"gold", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$zjoH2uItkNtpBqfmscZlDOr5fg6RljUOreIkhBqztB52/cuPG87RK"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:53.907434"], ["updated_at", "2016-10-02 08:35:53.907434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "gold"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:35:53.910798"], ["updated_at", "2016-10-02 08:35:53.910798"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:35:53.910798"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$jZa4DA9HvT.U2O1Mpm6D1uZio8cj.vHsVkiFuar05x3LvrklutLZq"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:54.289805"], ["updated_at", "2016-10-02 08:35:54.289805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "gold"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:35:54.293650"], ["updated_at", "2016-10-02 08:35:54.293650"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:35:54.293650"], ["item_id", 5], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$2x8v.N1Q/DPTZ38V8PTdtu0pMVajE6hRDMPLhnD1me99JNAdn9UC."], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:54.664746"], ["updated_at", "2016-10-02 08:35:54.664746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "gold"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:35:54.667912"], ["updated_at", "2016-10-02 08:35:54.667912"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:35:54.667912"], ["item_id", 6], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$BJkjIPze9s1mzBv/MaIpCOpjxkxjWxFIS02uewa.aj4B5f91fYaYa"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:55.025622"], ["updated_at", "2016-10-02 08:35:55.025622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "gold"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:35:55.029044"], ["updated_at", "2016-10-02 08:35:55.029044"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:35:55.029044"], ["item_id", 7], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$6omH8rv6bLou5N9vUkrtquHouTXdQqsb1J1NmeClG0tsj0A3P085O"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:55.541498"], ["updated_at", "2016-10-02 08:35:55.541498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "gold"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:35:55.545273"], ["updated_at", "2016-10-02 08:35:55.545273"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:35:55.545273"], ["item_id", 8], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$KvkvlcTqsLRsmXi3d58YCOW8mTU.AfrM7ORmVtT.JVF/dzdfT8hR6"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:55.912368"], ["updated_at", "2016-10-02 08:35:55.912368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "gold"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:35:55.916241"], ["updated_at", "2016-10-02 08:35:55.916241"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:35:55.916241"], ["item_id", 9], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$vOgdXjRG9EEc0suRyVlf8OUb6u26uiGryoqiUqv.sHTjXCx8RXe6W"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:56.288020"], ["updated_at", "2016-10-02 08:35:56.288020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "gold"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:35:56.292412"], ["updated_at", "2016-10-02 08:35:56.292412"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:35:56.292412"], ["item_id", 10], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$UWXU.uXqQOVHgUlfMSlrS.r0tDfrGmN5Glmw0kPddkrmtVJ1CkTPW"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:56.657690"], ["updated_at", "2016-10-02 08:35:56.657690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$nR5LHYIMqm9iS8QA65Rzpe5awgXFFW/FdSPf/5/dNZJdh1jH8OsUe"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:56.663879"], ["updated_at", "2016-10-02 08:35:56.663879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$gVI64IjLT1pGvXSQaH9.FuyMPgGpsm.afhgphfqz6tGFf8D8xllfS"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:56.670437"], ["updated_at", "2016-10-02 08:35:56.670437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$Pfvomu.Q/V3x0gd1NhW/d.OpBQOj1.SECJRKF15NPEyu/QxCnOD8W"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:56.676542"], ["updated_at", "2016-10-02 08:35:56.676542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$cbbTr2M6Un7fsSIjmqHSo.I4FEq/QMCkJFTl27ANyGoag9Nruwgh6"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:56.682683"], ["updated_at", "2016-10-02 08:35:56.682683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$/zSDNEdKYXOqI4HmCuKVn.aAVwY2oZYahb82JyGykhfkP2CkHxf1W"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:56.688715"], ["updated_at", "2016-10-02 08:35:56.688715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$pDEotlp9yLtswo/kdu7wT.r3OdxgWPGaQQdV8Tzi6jwIOhBrOAIo6"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:56.694701"], ["updated_at", "2016-10-02 08:35:56.694701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$C.IQcCzBInhGng4xhqhB2.tR8/qJdSOrCPuJpV.vYJiaxR9RRQMlG"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:56.700597"], ["updated_at", "2016-10-02 08:35:56.700597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$JUv5aMJ5IbblyllKZJ/zxeFpMzIF5ecfp/8WtegMQoZXROP2K13Am"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:56.706324"], ["updated_at", "2016-10-02 08:35:56.706324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '2143b3ba-dfdf-42bb-a15a-1e827e0a879b' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$r3QpVAUsWNafyzTJ2e452uOOR.Qw7nriPB0K1k1ofXS/YUX1xmpTS"], ["stripe_id", "2143b3ba-dfdf-42bb-a15a-1e827e0a879b"], ["created_at", "2016-10-02 08:35:56.711599"], ["updated_at", "2016-10-02 08:35:56.711599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 14ms (Views: 8.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (23.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$yx5PuLpN1PRq2k8Fqnt3bO2jXOKaSzcYGYgdZoNnx9.86Yz1s5sLC"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:45.473445"], ["updated_at", "2016-10-02 08:37:45.473445"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$fFUp6iqI9/ppN7QdVwMbZuhHw7oG1m6DL1qmciCj6U1LRyDWnn1TW"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:45.505320"], ["updated_at", "2016-10-02 08:37:45.505320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$pRNhLTNyMl8Oo8L6YsjrK.dcjDp674y9uSer8D2PEuUvV6xbCWrv6"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:45.511312"], ["updated_at", "2016-10-02 08:37:45.511312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 48ms (Views: 26.1ms | ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$Em0unln3pwjxSl0bTfB/tu0BUZJRtoPOYVK4hzOmGQuzUwRfXbmGO"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:45.582363"], ["updated_at", "2016-10-02 08:37:45.582363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$hUBCWssOUWd9iXrBRNkAT.WAHJUCfG0YoclEoWan3N7AniylXG5tO"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:45.589119"], ["updated_at", "2016-10-02 08:37:45.589119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$.gafiCFuwicbx9rjoLi54OuTcF/HYI02YQ7ujy30t5/fVqlFVtTzq"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:45.605359"], ["updated_at", "2016-10-02 08:37:45.605359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$P6ttGFksg2dcStyp.EGFie6XOlj06hypkoeL.o0XKEHm6Zua4YCku"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:45.611356"], ["updated_at", "2016-10-02 08:37:45.611356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$go3hqLD9gP57c5Dxq2ygPeQXv2cYNiX166DcgFSlVtKbRasF8zvJW"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:45.617545"], ["updated_at", "2016-10-02 08:37:45.617545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$XUG6WAmQeBkOC7Rnbm2DnOAhUKvqeKKX27dcv4hih86WVNXL1vfpO"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:45.623190"], ["updated_at", "2016-10-02 08:37:45.623190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$xae1ld5SJ3i.pobuYnzzhuczdKpWsWNRs83ZKynFUhr5plUeELW7O"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:45.629522"], ["updated_at", "2016-10-02 08:37:45.629522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$rzDzS6.yiESyVzVB2BVEROCNbpCS876ECpSrnOgT8SaK7FIs.F9XS"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:45.636821"], ["updated_at", "2016-10-02 08:37:45.636821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$6UNWSyPmbd2TLMjqt6iEh.t6DQRSf3SWukC4LY.Fq.A/ZuIWu9Rwa"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:45.643431"], ["updated_at", "2016-10-02 08:37:45.643431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$ATLzRwBNNCYThqQsCGgEF.DtcMBdnJYKeUeUhK45C9t9vc/oolfty"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:45.649681"], ["updated_at", "2016-10-02 08:37:45.649681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$Yf7ACgZPpyH2rcojbeFYl.U48z4YK/P5px4C1IyFWCjGTzAlO7e02"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:45.655783"], ["updated_at", "2016-10-02 08:37:45.655783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$.3UNJw3e12AScoIc5MdH8uZDGN6AMirN.VtmwqFDmZ63JMDWLiOi2"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:45.662222"], ["updated_at", "2016-10-02 08:37:45.662222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$OIDVjoncf.jMVzXeGPlOG.BfKPQych2dTfmeDOD/VDv7yZwO7dDny"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:45.668103"], ["updated_at", "2016-10-02 08:37:45.668103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$kEbvWbtMpmKtc.aS5rsss.dKCMKfkbysKUFjcEYz.pr07KrXGtwre"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:45.673609"], ["updated_at", "2016-10-02 08:37:45.673609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$e7h6cntBu5E2WnIRyT7UQuKoUjmKRJoswIp2BKwuRsC34GIJx/RqG"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:45.678923"], ["updated_at", "2016-10-02 08:37:45.678923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$akv.jLY03G6Yt/TX/Brw/e4mVxVinx4DH7wvKp7LGEpjkYPJpjz6G"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:45.684390"], ["updated_at", "2016-10-02 08:37:45.684390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$KRhnDZtEMN.X1xmw.Ikr..qnifI/kZySuhZemnRFopHRaSoyJKFti"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:45.690191"], ["updated_at", "2016-10-02 08:37:45.690191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$d9WUZjzZWcXIbSQED/xy6uqMcj718xCYt.OmzGZx8UVUHw95wfsfi"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:45.696480"], ["updated_at", "2016-10-02 08:37:45.696480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$vmC0kA.25n75uz8BvjlN5OH2/NxBAIMNSKE0RFCwH4YQAHJvIDntG"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:45.701765"], ["updated_at", "2016-10-02 08:37:45.701765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$WKO/wFsRLuZkETjIGOMpZeU9Z8WZhF5QG7KEWpi0g0lbYemqzvUc2"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:45.707285"], ["updated_at", "2016-10-02 08:37:45.707285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$5V/kFrGk1ovlRJ4R44STKOvx7BtZbBPnAGvShKH8SwswzY/s7OPWC"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:45.712362"], ["updated_at", "2016-10-02 08:37:45.712362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$4lv8B7mu/NxWOiaaUqPT0eA.npJNWWOPq/JJv6P0hAvpdrHT7Ryta"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:45.717740"], ["updated_at", "2016-10-02 08:37:45.717740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$qs7V6HJLrYTT05ECR3y8Bu9sTpo01TjXTjIcr2ZTqTu4.c5ILNTCe"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:45.723157"], ["updated_at", "2016-10-02 08:37:45.723157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$pTGkpho.DfZYuNdW/JIY8OX.Nba4KNjKWa1I6.1g/vOT94IVDWtly"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:45.728896"], ["updated_at", "2016-10-02 08:37:45.728896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '7c7e8699-5d65-44ab-a5ce-03019f7c4aa2' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '7c7e8699-5d65-44ab-a5ce-03019f7c4aa2' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "7c7e8699-5d65-44ab-a5ce-03019f7c4aa2"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:37:45.741148"], ["updated_at", "2016-10-02 08:37:45.741148"]] SQL (12.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-02 08:37:45.741148"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 13ms (Views: 11.6ms | ActiveRecord: 0.3ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$WvtXkM3xZxRIxg4K5yqmW./J/6FgceUPbtX1P2F8DrDA4Wc53UTkW"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:46.669966"], ["updated_at", "2016-10-02 08:37:46.669966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '7c7e8699-5d65-44ab-a5ce-03019f7c4aa2' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '7c7e8699-5d65-44ab-a5ce-03019f7c4aa2' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "7c7e8699-5d65-44ab-a5ce-03019f7c4aa2"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 08:37:46.674041"], ["updated_at", "2016-10-02 08:37:46.674041"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-02 08:37:46.674041"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$E7xMKqQBeHE/jT0AJZQH1Ofy2l8roTYan5GqO36bM7V1hwxYHrzFy"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:47.317123"], ["updated_at", "2016-10-02 08:37:47.317123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$5D/rR5VXsoiLnRZgQjljW.hHIlSLSekFXoWMSmYqHdcX8mUWyz88m"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:47.333841"], ["updated_at", "2016-10-02 08:37:47.333841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '7c7e8699-5d65-44ab-a5ce-03019f7c4aa2' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '7c7e8699-5d65-44ab-a5ce-03019f7c4aa2' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "7c7e8699-5d65-44ab-a5ce-03019f7c4aa2"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:37:47.337259"], ["updated_at", "2016-10-02 08:37:47.337259"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-02 08:37:47.337259"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$ayad0QXY6Zp6EtxTBPmpDO..Z6SbPnoeIPgAxQV9FGkSL7H1dB7ES"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:47.707012"], ["updated_at", "2016-10-02 08:37:47.707012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"7c7e8699-5d65-44ab-a5ce-03019f7c4aa2", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$z8DDlK9pr2olWnjDCUsFZOlJN/DgiWatg16YiFUnocbf5cZvSSmGq"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:47.720869"], ["updated_at", "2016-10-02 08:37:47.720869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"7c7e8699-5d65-44ab-a5ce-03019f7c4aa2", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]] Completed 400 Bad Request in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$BSOSEmVP1h6KoCaGFI5fDuAvi75tVueT2HGuYV5WlgoEVfYcPMyLS"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:47.733682"], ["updated_at", "2016-10-02 08:37:47.733682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"7c7e8699-5d65-44ab-a5ce-03019f7c4aa2", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$Z1ezIu9UrqQVtIWIT500Rut1ycaKVq0iplFBhJCIjnX3G5oNM1s/S"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:47.745744"], ["updated_at", "2016-10-02 08:37:47.745744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"7c7e8699-5d65-44ab-a5ce-03019f7c4aa2", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]] Completed 400 Bad Request in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$dkRz3P6uNwKLOE0FcupoFu/ELBm8GjWaJJ7ZpN7m67TYT9JqIP1y2"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:47.757004"], ["updated_at", "2016-10-02 08:37:47.757004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"7c7e8699-5d65-44ab-a5ce-03019f7c4aa2", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$Zc0Nsx3aVI1WZljmjBkKfuUZIdFWQKFjbMM3dfb2rpNkLiTiIpA2a"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:47.769359"], ["updated_at", "2016-10-02 08:37:47.769359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '7c7e8699-5d65-44ab-a5ce-03019f7c4aa2' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '7c7e8699-5d65-44ab-a5ce-03019f7c4aa2' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "7c7e8699-5d65-44ab-a5ce-03019f7c4aa2"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:37:47.772929"], ["updated_at", "2016-10-02 08:37:47.772929"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:37:47.772929"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$VzNsk9HOM7NG4S9JusYzO.giV5xH0MRKAmz/3gxj68TVQIyExkyoW"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:48.182956"], ["updated_at", "2016-10-02 08:37:48.182956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '7c7e8699-5d65-44ab-a5ce-03019f7c4aa2' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '7c7e8699-5d65-44ab-a5ce-03019f7c4aa2' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "7c7e8699-5d65-44ab-a5ce-03019f7c4aa2"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:37:48.187050"], ["updated_at", "2016-10-02 08:37:48.187050"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:37:48.187050"], ["item_id", 5], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$SszyKYTBIf1RgTfafrh.ZeC4PtOZTs0DzoyZ7MVVIqzyDlmW5wR/S"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:48.563354"], ["updated_at", "2016-10-02 08:37:48.563354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '7c7e8699-5d65-44ab-a5ce-03019f7c4aa2' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '7c7e8699-5d65-44ab-a5ce-03019f7c4aa2' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "7c7e8699-5d65-44ab-a5ce-03019f7c4aa2"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:37:48.566702"], ["updated_at", "2016-10-02 08:37:48.566702"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:37:48.566702"], ["item_id", 6], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$dtCZIAKQaey9l1Bsud88YuIXpJBAmq91cRWZwPlc5HGlKJ4XfOsdi"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:48.934632"], ["updated_at", "2016-10-02 08:37:48.934632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '7c7e8699-5d65-44ab-a5ce-03019f7c4aa2' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '7c7e8699-5d65-44ab-a5ce-03019f7c4aa2' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "7c7e8699-5d65-44ab-a5ce-03019f7c4aa2"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:37:48.938296"], ["updated_at", "2016-10-02 08:37:48.938296"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:37:48.938296"], ["item_id", 7], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$T233VbbWNGRPs/1T3qiWNeDPzr1QT/SKgOnPV8mbojrCbAyrkbc9O"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:49.308956"], ["updated_at", "2016-10-02 08:37:49.308956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '7c7e8699-5d65-44ab-a5ce-03019f7c4aa2' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '7c7e8699-5d65-44ab-a5ce-03019f7c4aa2' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "7c7e8699-5d65-44ab-a5ce-03019f7c4aa2"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:37:49.312411"], ["updated_at", "2016-10-02 08:37:49.312411"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:37:49.312411"], ["item_id", 8], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$w3Utg9o6PvOwOwDw5pZnJeBuTXNouVua05.r6WHsMWh/N8wqCiN3O"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:49.680550"], ["updated_at", "2016-10-02 08:37:49.680550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '7c7e8699-5d65-44ab-a5ce-03019f7c4aa2' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '7c7e8699-5d65-44ab-a5ce-03019f7c4aa2' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "7c7e8699-5d65-44ab-a5ce-03019f7c4aa2"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:37:49.684186"], ["updated_at", "2016-10-02 08:37:49.684186"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:37:49.684186"], ["item_id", 9], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$4EaPPRQjJZkwyNHim6x8vO1ojq9pDUpP1.PPh2pZJKro.vXxaba8G"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:50.056440"], ["updated_at", "2016-10-02 08:37:50.056440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '7c7e8699-5d65-44ab-a5ce-03019f7c4aa2' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '7c7e8699-5d65-44ab-a5ce-03019f7c4aa2' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "7c7e8699-5d65-44ab-a5ce-03019f7c4aa2"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:37:50.059847"], ["updated_at", "2016-10-02 08:37:50.059847"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:37:50.059847"], ["item_id", 10], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$UawaE9PqZNpKnR9/i89QH.PD.BSye12TCSvVsSMgb19OBETbrHi56"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:50.426387"], ["updated_at", "2016-10-02 08:37:50.426387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$DPQKrOQF49eR2S9NeJYx9.WsgS6ZPs.QWEo.68.fIIsRqN78XPoNK"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:50.432722"], ["updated_at", "2016-10-02 08:37:50.432722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$9znIJtr9qYMGvn2xzDhCH.r4Khx0QeXb18eKqoLConc7gJABkRbvG"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:50.439116"], ["updated_at", "2016-10-02 08:37:50.439116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$sNlEaC0OdlZy6LVmzDZXoutcqZV/n4cC.bXdlpxPpX/Dd0SNAeKLa"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:50.444696"], ["updated_at", "2016-10-02 08:37:50.444696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$X/SUpT5BgQFhJtpOmnDQyeZB5GIJbMPr73.ji7TqWdyvQhm8JB8dW"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:50.450774"], ["updated_at", "2016-10-02 08:37:50.450774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$sMXvgqLhjyT9QdL.GxRebeZpuNtVv0q.BR8fsL3EVDJmePzmpUafi"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:50.456692"], ["updated_at", "2016-10-02 08:37:50.456692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$kZegI1JOGkxUPO9izMs5du1JaIZIc97MRLfNxz6igB2ZXEcA4rGDa"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:50.462593"], ["updated_at", "2016-10-02 08:37:50.462593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$tL6dRbLIWhi17tbGR/m3FepFGJe/xg2qfHt1z26Zxh0g/71ZvCa7m"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:50.468211"], ["updated_at", "2016-10-02 08:37:50.468211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$rFmhe3UhQH..bfCZJD7fZ.gEOsoTOdaCn4Q5wr.uhLhsRvGUJ79TG"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:50.474069"], ["updated_at", "2016-10-02 08:37:50.474069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b8a0f842-a328-4beb-964f-9125724d4257' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$aI8yCoTpLeqLexu6epd/8u4pUhwUaIQcUeUylZ095d0T7QqcJ9Afu"], ["stripe_id", "b8a0f842-a328-4beb-964f-9125724d4257"], ["created_at", "2016-10-02 08:37:50.480440"], ["updated_at", "2016-10-02 08:37:50.480440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 14ms (Views: 8.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (23.5ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$wWZPzXuQKPm4znmIuhfMGuOFR/GsfepFwQSMEDltkxu1g2jBTqRhG"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:33.214649"], ["updated_at", "2016-10-02 08:38:33.214649"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$9jGCLlB325TAJrCe0s9lwe3zwR.UIo/4.SP1LR5mY1bHM4XIjSA5y"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:33.247563"], ["updated_at", "2016-10-02 08:38:33.247563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$HNKeGqQSPYpcylBBHuldfONTJ49YF6tnnwMwbOVfc9YbB65vDuKWi"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:33.255256"], ["updated_at", "2016-10-02 08:38:33.255256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 48ms (Views: 28.0ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$W.bNmmMV6zxGkluxX0Uj..ycxue4R1vserQs2Q3ubejP0LOuaQuiu"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:33.326506"], ["updated_at", "2016-10-02 08:38:33.326506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$gT0st3OVh1weJM..teC20OkqvwPR.ddgHsX6Q5KsqzjXSqhhcoPh."], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:33.332254"], ["updated_at", "2016-10-02 08:38:33.332254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$4hyp0xKJb76UlKYGIVmvde3HV9PYTSee0wwMhHREnRhbiXqxDvLeC"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:33.341231"], ["updated_at", "2016-10-02 08:38:33.341231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$0u8tEqLdSGCjqPwIZ2z3cu.x0A4/5oeQTolrzDFQzlZI/PJ0qbEN2"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:33.346311"], ["updated_at", "2016-10-02 08:38:33.346311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$aNxstsEUrBKleeh6IWpuKelGyZScIDLA/GmvX.PJnTy0zRVUxx3lm"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:33.353067"], ["updated_at", "2016-10-02 08:38:33.353067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$zTYr97hBiSeaUor3YpbCG.dtjpw8TItl6ufILzbeqCL1K0loNBWiK"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:33.359716"], ["updated_at", "2016-10-02 08:38:33.359716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$ALr91EXdBuZzAS0Ic5AGPuXsAB9rUSkC46L3zREZtJz7Ejy3vwOU."], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:33.365519"], ["updated_at", "2016-10-02 08:38:33.365519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$sF3bV.BuuNRhOwt5TVYtq.qaIy.mtAg5v7lngRP.FwqbzJIGVJAgW"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:33.370634"], ["updated_at", "2016-10-02 08:38:33.370634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$tA8qD5TqW4KdNd1qNRb.8.qIqmqJthtK0SKh7Pndj6fmQozO2k3me"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:33.375711"], ["updated_at", "2016-10-02 08:38:33.375711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$BQlYo0yid4uG44RU1QffAuK8.qpYGLwkKSZqC9cwq/z.Rl/Q7ncrm"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:33.381347"], ["updated_at", "2016-10-02 08:38:33.381347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$n/Ai75mgJ2vE3cABnTdU6ei6J/xnnS303AwyBif64AJ.EjRDzGdtC"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:33.386765"], ["updated_at", "2016-10-02 08:38:33.386765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$2xlddYuqiZTrZCn3VnhRTeZJ8SAjEoFz5LVccbTdzV0T9WFPjP1Ce"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:33.392068"], ["updated_at", "2016-10-02 08:38:33.392068"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$Mqd49Jc3KxctxpL6bM9Mu.t00yMV6TQN58Y8KNzBrhQ0oMIek5fUu"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:33.397321"], ["updated_at", "2016-10-02 08:38:33.397321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$l1a6UTOlRuCAj6Quq/9JbeiicvU5vMR/MwEtRcf/qXw.srdFLTxue"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:33.402981"], ["updated_at", "2016-10-02 08:38:33.402981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$F4j0dtVjqm90HACuVZnv6eGchLWknjK.jbJElIQz7j1d.KM0NmcQK"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:33.408403"], ["updated_at", "2016-10-02 08:38:33.408403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$LLJn/HBxdKJNMI5/HUukbe5vKr5fbH.EHkGWOPlQL/lHnImWE4IjS"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:33.414074"], ["updated_at", "2016-10-02 08:38:33.414074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$kXy6J4SaECdJarhd.HaEGuxR/IYD1AQj1aKx8d8Q97wgxQPO5.XSe"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:33.419348"], ["updated_at", "2016-10-02 08:38:33.419348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$6X638.u6N6RaYBKC7fhHUurM3t0yJTf80C3qx4CU3M6zt3sxr72CW"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:33.424660"], ["updated_at", "2016-10-02 08:38:33.424660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$LfCQr3FewQgH/8ASa0qz6eBLsJ4enkp843X3QzASx7inyzqe8B6Hy"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:33.429789"], ["updated_at", "2016-10-02 08:38:33.429789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$/7k.LM9MD/kTIxugIkdOvOpim3NQnmEqWjB4g3wEZxoLl0ktcBLli"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:33.435645"], ["updated_at", "2016-10-02 08:38:33.435645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$7jj.6cHl/TNeRi1EjsDrzeCXL039NOi.cDB//9PCBPSS9IFjNs/xG"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:33.441899"], ["updated_at", "2016-10-02 08:38:33.441899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$PVEPdtM.jRkAP7kzDwsRvOFBa4tjgPfmHLVZTuM5cxQPbN2Uccfm."], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:33.447308"], ["updated_at", "2016-10-02 08:38:33.447308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$kirIyeV8LHH5oJwuyd8uTOOI/5k1kACkJJYVgC6MW6P7qYYPKKraa"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:33.453276"], ["updated_at", "2016-10-02 08:38:33.453276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$RESNJqoBdC8FItvwRS2LeOQDhG2JdDhcuygoVhBqCvbCjaqls4IdC"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:33.458961"], ["updated_at", "2016-10-02 08:38:33.458961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e7e382e4-e1b7-4fd7-abfd-e392971a7be8' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e7e382e4-e1b7-4fd7-abfd-e392971a7be8' LIMIT 1 SQL (1.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "e7e382e4-e1b7-4fd7-abfd-e392971a7be8"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:38:33.474522"], ["updated_at", "2016-10-02 08:38:33.474522"]] SQL (17.4ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-02 08:38:33.474522"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 14ms (Views: 11.6ms | ActiveRecord: 0.3ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$Q72Yuc8uy02oH1bJPwkVJ.lGu.8SgPhR5C40Iz1n.D09ZPE0yI6De"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:34.413588"], ["updated_at", "2016-10-02 08:38:34.413588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e7e382e4-e1b7-4fd7-abfd-e392971a7be8' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e7e382e4-e1b7-4fd7-abfd-e392971a7be8' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "e7e382e4-e1b7-4fd7-abfd-e392971a7be8"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 08:38:34.418114"], ["updated_at", "2016-10-02 08:38:34.418114"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-02 08:38:34.418114"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'e7e382e4-e1b7-4fd7-abfd-e392971a7be8' AND "tang_plans"."id" != 2) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$Xr/Z3.BUQxmJE2lVOkJVgO.FVGUPTiynE82VV9GkGglj6y3xmFFmu"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:34.784682"], ["updated_at", "2016-10-02 08:38:34.784682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$LwfmUAtPw4WD3.Kiz7RnmOotRPFkjbFk9.wKKstGXAyMQqsRSBeCG"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:34.802552"], ["updated_at", "2016-10-02 08:38:34.802552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e7e382e4-e1b7-4fd7-abfd-e392971a7be8' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e7e382e4-e1b7-4fd7-abfd-e392971a7be8' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "e7e382e4-e1b7-4fd7-abfd-e392971a7be8"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:38:34.807106"], ["updated_at", "2016-10-02 08:38:34.807106"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-02 08:38:34.807106"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$S5jKjkg8oSLJjng5VpTNNOA1jcw9PJ5HQH19FaCbynuvVI.iQmEfa"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:35.337251"], ["updated_at", "2016-10-02 08:38:35.337251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"e7e382e4-e1b7-4fd7-abfd-e392971a7be8", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$88A9ttJ4Tb76BCotX0o3YODYBnqcCYjQMIuED4Cqc5Ce3IL3M.VDS"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:35.351403"], ["updated_at", "2016-10-02 08:38:35.351403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"e7e382e4-e1b7-4fd7-abfd-e392971a7be8", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]] Completed 400 Bad Request in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$iVB7HKYVJtgp7kd/UFwLa.fu3SYFudchEmontPM2HltUYkSLVJcoW"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:35.363654"], ["updated_at", "2016-10-02 08:38:35.363654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"e7e382e4-e1b7-4fd7-abfd-e392971a7be8", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$GHXW2lU1sy2PRVb/sjKQb.P93CVfp1s3HYDU2vaRVR1QvVUpG5pPG"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:35.377619"], ["updated_at", "2016-10-02 08:38:35.377619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"e7e382e4-e1b7-4fd7-abfd-e392971a7be8", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]] Completed 400 Bad Request in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$IENWNy4sRzNTPcF6V6sEpuWum2xlBDFzRSQFLaUfZaOBF2qhEzeXa"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:35.389361"], ["updated_at", "2016-10-02 08:38:35.389361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"e7e382e4-e1b7-4fd7-abfd-e392971a7be8", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]] Completed 400 Bad Request in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$KIV8PuQvlccv9VK35daS0eCPi7C5Mj88aU2A9v7NgKKO3jWMwtika"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:35.400191"], ["updated_at", "2016-10-02 08:38:35.400191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e7e382e4-e1b7-4fd7-abfd-e392971a7be8' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e7e382e4-e1b7-4fd7-abfd-e392971a7be8' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "e7e382e4-e1b7-4fd7-abfd-e392971a7be8"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:38:35.403364"], ["updated_at", "2016-10-02 08:38:35.403364"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:38:35.403364"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$nQ5zj5IZtFAOv9eanXg3yupoN0GA8Be74VVPRQ./kXSXBMMv7ACKq"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:35.768088"], ["updated_at", "2016-10-02 08:38:35.768088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e7e382e4-e1b7-4fd7-abfd-e392971a7be8' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e7e382e4-e1b7-4fd7-abfd-e392971a7be8' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "e7e382e4-e1b7-4fd7-abfd-e392971a7be8"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:38:35.771663"], ["updated_at", "2016-10-02 08:38:35.771663"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:38:35.771663"], ["item_id", 5], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$tQ65McT3j03fvGnkYgM0A.Vaj3yt.2AJLkv6oCW9qXrV3dikenRGq"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:36.175303"], ["updated_at", "2016-10-02 08:38:36.175303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e7e382e4-e1b7-4fd7-abfd-e392971a7be8' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e7e382e4-e1b7-4fd7-abfd-e392971a7be8' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "e7e382e4-e1b7-4fd7-abfd-e392971a7be8"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:38:36.179259"], ["updated_at", "2016-10-02 08:38:36.179259"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:38:36.179259"], ["item_id", 6], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$ql7jJ4JbCEqdKtot1fX44uMKcNeMCeSjN8ddjihYCdC8nPWsWt99a"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:36.612595"], ["updated_at", "2016-10-02 08:38:36.612595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e7e382e4-e1b7-4fd7-abfd-e392971a7be8' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e7e382e4-e1b7-4fd7-abfd-e392971a7be8' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "e7e382e4-e1b7-4fd7-abfd-e392971a7be8"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:38:36.616137"], ["updated_at", "2016-10-02 08:38:36.616137"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:38:36.616137"], ["item_id", 7], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$XGpfzUdVzjdgZeJGDeXhLeuhc.YGjywUlAOhJ1vkt3cTQJlZqlIdS"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:37.050374"], ["updated_at", "2016-10-02 08:38:37.050374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e7e382e4-e1b7-4fd7-abfd-e392971a7be8' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e7e382e4-e1b7-4fd7-abfd-e392971a7be8' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "e7e382e4-e1b7-4fd7-abfd-e392971a7be8"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:38:37.054104"], ["updated_at", "2016-10-02 08:38:37.054104"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:38:37.054104"], ["item_id", 8], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$QzSgOySwyGuhI2WkPeN3nuZIcay/DRI346QG4vdCw5t5TEiK5K.rC"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:37.440798"], ["updated_at", "2016-10-02 08:38:37.440798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e7e382e4-e1b7-4fd7-abfd-e392971a7be8' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e7e382e4-e1b7-4fd7-abfd-e392971a7be8' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "e7e382e4-e1b7-4fd7-abfd-e392971a7be8"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:38:37.444514"], ["updated_at", "2016-10-02 08:38:37.444514"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:38:37.444514"], ["item_id", 9], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$4KpRAUm5CEd1C4wty2t2Xe6eICOBlyA1OzHWj8FZVSjKY23IHkM6S"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:37.808415"], ["updated_at", "2016-10-02 08:38:37.808415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e7e382e4-e1b7-4fd7-abfd-e392971a7be8' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e7e382e4-e1b7-4fd7-abfd-e392971a7be8' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "e7e382e4-e1b7-4fd7-abfd-e392971a7be8"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:38:37.812171"], ["updated_at", "2016-10-02 08:38:37.812171"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:38:37.812171"], ["item_id", 10], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$kvRlWmfH3KkEZ7qOBvAQu.YW.VarE5FwxETHlSAoyUPpwlJIE8OBW"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:38.176675"], ["updated_at", "2016-10-02 08:38:38.176675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$gF4chpBPgl8rxIntbRm.juIw570sDzPedEhWc9C0dgPEE7p4tJm4y"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:38.183774"], ["updated_at", "2016-10-02 08:38:38.183774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$VEXeVTKhwmPdkxIl1txNY.6yq0Td2yv.yjAAkssO1B7By5ATB0A4O"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:38.190312"], ["updated_at", "2016-10-02 08:38:38.190312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$blIUi7Tvah4gN5JQcnozLeFzspYIP1oS5HzLKQoRHX.2S4J9mq8LS"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:38.196748"], ["updated_at", "2016-10-02 08:38:38.196748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$hUPDKvx1fvHCxGF7DUYgJuIYzqy3Jf9IWJ58Np.vc0MRSi70LIPrO"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:38.202709"], ["updated_at", "2016-10-02 08:38:38.202709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$xa7CJTuS0Q30fvFXsbgezu2yslWips221C5Vh0Uo2TwqwUzYrm1ZW"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:38.208526"], ["updated_at", "2016-10-02 08:38:38.208526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$MrVHYl2yMX3MtMYiCLMQF.e9R3kIr07LaLVZMj4pH4ZSsMCBD/M5u"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:38.214485"], ["updated_at", "2016-10-02 08:38:38.214485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$jJF7Mb9IBYIjpZyyvVbJOeYBcb8CyaCr7P8u18yt/z2DF6u1SFah."], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:38.220030"], ["updated_at", "2016-10-02 08:38:38.220030"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$ts.wCnz97mYzMSUZXeFVhe0kk9tRLveSq/rtbFmWYeUqjOH2xita6"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:38.226356"], ["updated_at", "2016-10-02 08:38:38.226356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'f95344e4-2cdf-4eb9-a65e-5312d72bd068' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$ziLmY6e0asA/UPc6cUOIq.y3fngfXXaoF6PXXzj06uJFzBgycfYBC"], ["stripe_id", "f95344e4-2cdf-4eb9-a65e-5312d72bd068"], ["created_at", "2016-10-02 08:38:38.231906"], ["updated_at", "2016-10-02 08:38:38.231906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 14ms (Views: 8.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (23.8ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$R50.WLTAhp/DdDixL9xMreTag7wFBwkdaro4vl/9CzLQ5fDL8t3gy"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:38.579385"], ["updated_at", "2016-10-02 08:39:38.579385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$FkeP3RXdpBq.nXeL6fBf7uv3HA.U.FjDaRYyCVdDZWiGKgcM4CQYq"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:38.610052"], ["updated_at", "2016-10-02 08:39:38.610052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$A6hcxJVvvKoI6fSfeSSKOukZZBjNsDDOeCHohWdCG1AjMGt0CH3pC"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:38.615473"], ["updated_at", "2016-10-02 08:39:38.615473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 49ms (Views: 26.7ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$IAe4IjCt9EjDnlDIB9if6etgtqkpByiYfu74n86ss8IBfEBtHfaWK"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:38.688033"], ["updated_at", "2016-10-02 08:39:38.688033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$Ppq8TBWM.Cj4Mx71djAbAucMnkHm1BhI1dzyhzwmfG897EJlux.z."], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:38.693952"], ["updated_at", "2016-10-02 08:39:38.693952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$sdQ76HantfiSDZDvC.d/i.XI5LQsSzqGjWgZe/7DE4sb5XL/bRLRy"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:38.704815"], ["updated_at", "2016-10-02 08:39:38.704815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$131SdtI.X/tVCf3Mv5p4iesJFcpkpNeGWmmYUXB7aGh312QrGbHqm"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:38.711505"], ["updated_at", "2016-10-02 08:39:38.711505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$YXPwUKmvjRtT6lbCdM20Ee/Zc/ZYcA3r1vZ3kB9ii8UzyVM7kev.6"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:38.717733"], ["updated_at", "2016-10-02 08:39:38.717733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$uZttTEWU/iiQPX4Mo44ZxObnLZYamnyAqJvSOvJ5CM.cyO9UabYIq"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:38.724338"], ["updated_at", "2016-10-02 08:39:38.724338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$Y8MTtnpjoXNbXzzeYP.vD.kv682nJdGufTBlJfpuFwlSe8J23LxOu"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:38.730590"], ["updated_at", "2016-10-02 08:39:38.730590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$me1ke/wD4O/PzREN.8X1j.nmjYiDix7D6fjg4myhoSWDjFBlqrucG"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:38.737057"], ["updated_at", "2016-10-02 08:39:38.737057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$YrLvLTj6eLMTYSmcgtPAjO4GBOawiM.wazSlGrzEHXkGUPKm8IM6C"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:38.743117"], ["updated_at", "2016-10-02 08:39:38.743117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$4cw1uEJ6XnXuJh3a.f9bYehQrvC1B37QsDWHBRU5E0k9QzeM0KgMy"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:38.748659"], ["updated_at", "2016-10-02 08:39:38.748659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$LoJgAgjmcGxAcBCBVeWApefuo/Oc8Ho8NiMaST36.LbCqCQJ0kx/W"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:38.753643"], ["updated_at", "2016-10-02 08:39:38.753643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$alexE6lSrvfoI9/mjlx8ze2pmX6DHNX1TH.h7eIWfo2M28hqvBVSq"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:38.759544"], ["updated_at", "2016-10-02 08:39:38.759544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$uVCssXRhD1j3L.BMNakq7u6e4I.oCavUlbwpKIYt86jT4wDj8cUHq"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:38.764904"], ["updated_at", "2016-10-02 08:39:38.764904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$f.py7wMg0CAh8fzg19zIheO0uu4TVYcjQPyAPMpx7x8es5QjJxTd."], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:38.770319"], ["updated_at", "2016-10-02 08:39:38.770319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$q1eexDWd.IT.zKmwinMPEOYyX8Wl3TdM/2UlcIda04WIB7UEKH9i6"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:38.776143"], ["updated_at", "2016-10-02 08:39:38.776143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$NP6RIqKFyj4Qjny97LiSm..YBPZAhfTVORcm2HcpMdi0vNYrn3Urm"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:38.782294"], ["updated_at", "2016-10-02 08:39:38.782294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$ywnTL0LnIHJ1F5DqbveT7ew5cWKaiKBNDfiK31JoXsjXPAUOqEYoq"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:38.788258"], ["updated_at", "2016-10-02 08:39:38.788258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$pVSmjEznWT08NEjlAkliwO4oq0cUOiI8.I4BOQJVX3zh6DTfsCqJO"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:38.794122"], ["updated_at", "2016-10-02 08:39:38.794122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$cFfbgd3VJcCYfWXZQ6UD5ex.swAgqeK5YP/JkHI/lcW3TOUCblA8O"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:38.799655"], ["updated_at", "2016-10-02 08:39:38.799655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$URfOBEEUNIvZBtHZe.PblOPjIUHd4P0apvgXFEi0ZQz1ndLmPNlCC"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:38.805239"], ["updated_at", "2016-10-02 08:39:38.805239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$gOwhYWt.5gWVWqLkDPz97.wpVcBrNqSC8/WDFDBSE0UF9VN1JlGGG"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:38.810776"], ["updated_at", "2016-10-02 08:39:38.810776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$w57AEyhfe04nReoAZlQVCOFw26j2l9h3/imLIK0pBj9tohBbWgoVK"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:38.816193"], ["updated_at", "2016-10-02 08:39:38.816193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$qTRu9MGJgsCxvBOFmKcPH.fLXWl3C6kOHa45KmmLLbzeerQSWHnty"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:38.821450"], ["updated_at", "2016-10-02 08:39:38.821450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$Nqpo3qKcTNe3f/iwsA5Yje2vcvHVAfjYb2ra3gAIiWNd/J1EWsE0m"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:38.826956"], ["updated_at", "2016-10-02 08:39:38.826956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '205a1223-7066-42e7-9f74-dffc5e8f2567' LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '205a1223-7066-42e7-9f74-dffc5e8f2567' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "205a1223-7066-42e7-9f74-dffc5e8f2567"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:39:38.838619"], ["updated_at", "2016-10-02 08:39:38.838619"]] SQL (12.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-02 08:39:38.838619"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 15ms (Views: 12.6ms | ActiveRecord: 0.4ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$serrIafRteVuCkClyuI/jO7iOLGccHJvnDQTNOQFMN/HbnuL0b7Ba"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:39.687163"], ["updated_at", "2016-10-02 08:39:39.687163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '205a1223-7066-42e7-9f74-dffc5e8f2567' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '205a1223-7066-42e7-9f74-dffc5e8f2567' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "205a1223-7066-42e7-9f74-dffc5e8f2567"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 08:39:39.691657"], ["updated_at", "2016-10-02 08:39:39.691657"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-02 08:39:39.691657"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '205a1223-7066-42e7-9f74-dffc5e8f2567' AND "tang_plans"."id" != 2) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$CVlkQXLgXPUo6vBDzq7VKOCdF1PyaJ0pi5UXTusypdiOARrYyFcGa"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:40.064896"], ["updated_at", "2016-10-02 08:39:40.064896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$9w1szm4GJT6n6S9y3gZCkuSL5qMuoc7xAriY/7TYIw71A0eeh/Wcm"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:40.080674"], ["updated_at", "2016-10-02 08:39:40.080674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '205a1223-7066-42e7-9f74-dffc5e8f2567' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '205a1223-7066-42e7-9f74-dffc5e8f2567' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "205a1223-7066-42e7-9f74-dffc5e8f2567"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:39:40.084018"], ["updated_at", "2016-10-02 08:39:40.084018"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-02 08:39:40.084018"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$aPvgeH9SSdwTSDuawWopveEsnWcRfNqUYaIHttRqXeqmU7I4qpdAq"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:40.738854"], ["updated_at", "2016-10-02 08:39:40.738854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"205a1223-7066-42e7-9f74-dffc5e8f2567", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$s1bNhbkQt4CqSehNxw7s1OFtK1mNz9VcQ27KjVInD/02K.FWYZhhy"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:40.753504"], ["updated_at", "2016-10-02 08:39:40.753504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"205a1223-7066-42e7-9f74-dffc5e8f2567", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$KXfYxdWCWG/dG0sA2NgHRelmVfLEnirQmPe0FwcJMCg2oQb2/jj16"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:40.766591"], ["updated_at", "2016-10-02 08:39:40.766591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"205a1223-7066-42e7-9f74-dffc5e8f2567", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$F7U3UgihwLdisF2XuV62xejQNueMdU50FGaBXf4KBAq52mUnQtjQy"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:40.778716"], ["updated_at", "2016-10-02 08:39:40.778716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"205a1223-7066-42e7-9f74-dffc5e8f2567", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]] Completed 400 Bad Request in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$.UL40AEohLM4QO6qGL4b1uM24XuYkMuiceXsZyDXRBdORpIIUQVh6"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:40.790014"], ["updated_at", "2016-10-02 08:39:40.790014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"205a1223-7066-42e7-9f74-dffc5e8f2567", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]] Completed 400 Bad Request in 1ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$lqqCWgKtICUquwndUvSnlOfuF/7LeIatuwoiO4as0KtcElqsPviF2"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:40.800535"], ["updated_at", "2016-10-02 08:39:40.800535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '205a1223-7066-42e7-9f74-dffc5e8f2567' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '205a1223-7066-42e7-9f74-dffc5e8f2567' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "205a1223-7066-42e7-9f74-dffc5e8f2567"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:39:40.803780"], ["updated_at", "2016-10-02 08:39:40.803780"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:39:40.803780"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$KoPLujdmGxq.lYrMCcn/XepML.WMFFo5o12PS9uJCdBJ8VwUF9wyC"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:41.171700"], ["updated_at", "2016-10-02 08:39:41.171700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '205a1223-7066-42e7-9f74-dffc5e8f2567' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '205a1223-7066-42e7-9f74-dffc5e8f2567' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "205a1223-7066-42e7-9f74-dffc5e8f2567"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:39:41.175609"], ["updated_at", "2016-10-02 08:39:41.175609"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:39:41.175609"], ["item_id", 5], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$lRm554RsQwMO3FdY1PnmJezcsV1pWmZmpPkmPogR.fJO4L8YifjRu"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:41.546753"], ["updated_at", "2016-10-02 08:39:41.546753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '205a1223-7066-42e7-9f74-dffc5e8f2567' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '205a1223-7066-42e7-9f74-dffc5e8f2567' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "205a1223-7066-42e7-9f74-dffc5e8f2567"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:39:41.550516"], ["updated_at", "2016-10-02 08:39:41.550516"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:39:41.550516"], ["item_id", 6], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$0js7iGfLeMcyLzFsXtZZMeJgQdxORtU3SvlpOSl9Qc1LG1aC0iA0q"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:41.923388"], ["updated_at", "2016-10-02 08:39:41.923388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '205a1223-7066-42e7-9f74-dffc5e8f2567' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '205a1223-7066-42e7-9f74-dffc5e8f2567' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "205a1223-7066-42e7-9f74-dffc5e8f2567"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:39:41.927094"], ["updated_at", "2016-10-02 08:39:41.927094"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:39:41.927094"], ["item_id", 7], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$pBGe09oFBuWfQ9KqlFEA6OQELRVszF7fEkNY8J2KuiIf0N21jETpO"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:42.321975"], ["updated_at", "2016-10-02 08:39:42.321975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '205a1223-7066-42e7-9f74-dffc5e8f2567' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '205a1223-7066-42e7-9f74-dffc5e8f2567' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "205a1223-7066-42e7-9f74-dffc5e8f2567"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:39:42.326431"], ["updated_at", "2016-10-02 08:39:42.326431"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:39:42.326431"], ["item_id", 8], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$rxmCDSLFxB1pEa1fDDNgzOEKqrLGXdVMVMz4D0d8oXGV5gWkt299W"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:42.731749"], ["updated_at", "2016-10-02 08:39:42.731749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '205a1223-7066-42e7-9f74-dffc5e8f2567' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '205a1223-7066-42e7-9f74-dffc5e8f2567' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "205a1223-7066-42e7-9f74-dffc5e8f2567"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:39:42.735816"], ["updated_at", "2016-10-02 08:39:42.735816"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:39:42.735816"], ["item_id", 9], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$z7NHJkdLzhqdw.4KeBDzH.IPkCcFcxzljmey5Qx4lNdfoUNIeWdhS"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:43.109441"], ["updated_at", "2016-10-02 08:39:43.109441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '205a1223-7066-42e7-9f74-dffc5e8f2567' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '205a1223-7066-42e7-9f74-dffc5e8f2567' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "205a1223-7066-42e7-9f74-dffc5e8f2567"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:39:43.112628"], ["updated_at", "2016-10-02 08:39:43.112628"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:39:43.112628"], ["item_id", 10], ["item_type", "Tang::Plan"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$sSqT1FR6trl1WehLMwkB1.lfcwE7hDM8UBlppVuSa5wCr/SZUjSui"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:43.496312"], ["updated_at", "2016-10-02 08:39:43.496312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$5ufAQ4FRAPoaFrygyX05lu594z1Gg8HIrVLT1XRcyq83DHg83SdgO"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:43.503048"], ["updated_at", "2016-10-02 08:39:43.503048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$TvPd3ajwSXJY.m7ESwlYdukAiBPXlZtKu0BHd7MnDIiVLjvjB97Pu"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:43.509236"], ["updated_at", "2016-10-02 08:39:43.509236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$xan.ZAuHglqI9rreTETOSO5FFSxb7K3FEjRo0NsqMCXL0LxfWSxGG"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:43.515095"], ["updated_at", "2016-10-02 08:39:43.515095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$41owjzybs1cJRnDbC8LfaOq4pPf2HoC5pLYQO5T9/H5xxdxttt8QS"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:43.520987"], ["updated_at", "2016-10-02 08:39:43.520987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$rV5IXyAtV2c5TOl4YWl0u.AYn9ltc0lnLTe08YtzvUdAueFXk.xoS"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:43.526394"], ["updated_at", "2016-10-02 08:39:43.526394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$ue1bdG3lxgkDb5xFZEMquugHc/TTWGAlqoaYxe/vwsRnnHLMPnEMO"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:43.533554"], ["updated_at", "2016-10-02 08:39:43.533554"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$qIAfDM4mzPp5ZFjAEChpCONszdTyMiham4xWO2sOt5U03TylvaUsS"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:43.540411"], ["updated_at", "2016-10-02 08:39:43.540411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$7zJAlm86HbTUdBOt2MWzv.oNPyfLMtOq3gPr66OpHoTflL3Q4aTZK"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:43.546832"], ["updated_at", "2016-10-02 08:39:43.546832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '811918e0-6e1f-4ab4-9600-f347ec2b1ac4' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$z808LO0rpUvJN3nExS8WIOe2HwRjXyKp29/xCdIc77jdH.4IUMV6m"], ["stripe_id", "811918e0-6e1f-4ab4-9600-f347ec2b1ac4"], ["created_at", "2016-10-02 08:39:43.552504"], ["updated_at", "2016-10-02 08:39:43.552504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 15ms (Views: 8.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (22.9ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$BcpVA5FiBG115UEVkrlvdusCGAYZlXQmqPb3awR11fDLleo2bo/4e"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:39.769378"], ["updated_at", "2016-10-02 08:40:39.769378"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$6Ymfz0E58/IIo0C5XcI3IOTbYvqxFWcUXwONCjoOKjYaVmvPJvAMi"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:39.802015"], ["updated_at", "2016-10-02 08:40:39.802015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$R/9VB3RNn/SQUUZVzFJ7rufSdHsm3NZgMDkMNR8IaCuGHgACTgk8O"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:39.819317"], ["updated_at", "2016-10-02 08:40:39.819317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 49ms (Views: 27.8ms | ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$ffnxVfDFATYduRiu6kMfXuNg36/KTHhKS9b8gBem8TFMu0BrtHC.C"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:39.882605"], ["updated_at", "2016-10-02 08:40:39.882605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$Hlm8N9oOwRdPiatpxzC.KuBsnkHDMI7KihhjATa.C8bwr1r5FHnii"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:39.889936"], ["updated_at", "2016-10-02 08:40:39.889936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$0Y8VhDxUAvJLs5l6bLLqtuad4CNVpK.VyAZK5fZqzOI.0IouMA8Aa"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:39.904608"], ["updated_at", "2016-10-02 08:40:39.904608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$Iga2eozKBQGMsG.FzccvVuoxNJVmhParoR8al/OrIalNzPG1Zj5eC"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:39.910635"], ["updated_at", "2016-10-02 08:40:39.910635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$Co.ajM1hRcpb/9hHzYZVf.8jp2Ge/PIKYQmOU3J1HGp.SqIUKCHmC"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:39.916667"], ["updated_at", "2016-10-02 08:40:39.916667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$QY4SGh1.IrjkRw4KGyzkXO0SxjguGgyO1nj6YgABdHxG6TPXNoDty"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:39.922148"], ["updated_at", "2016-10-02 08:40:39.922148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$UtL0awTnFXqI2oNSzgC66.uy0yMQufYMm6/sqrzzjclUKb0UNoNYC"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:39.927923"], ["updated_at", "2016-10-02 08:40:39.927923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$SDwRqVZxxZH5UmCt9zfoc.vqbi5Hc4Jdt9ucTZLdAHYDvcPcK.u7a"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:39.933430"], ["updated_at", "2016-10-02 08:40:39.933430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$uCE2jlySel6A3IBHvO/oDuSq1ODDPUiFCuw16LpJnr34XgBR/vX6e"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:39.939022"], ["updated_at", "2016-10-02 08:40:39.939022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$EfezLf1durjvKrYA/jIdu.ZSYAGkxIfEiokQcSXWSqxsy.FrJ0qCa"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:39.944503"], ["updated_at", "2016-10-02 08:40:39.944503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$qBLOu8MDRMJlQhikJevkd.5YovjnKLMe7A9vbQ183XxrMo2aOVX9i"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:39.949973"], ["updated_at", "2016-10-02 08:40:39.949973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$NWIjYKtm4pYGxmMgzO2aveslnc.y4oG71WEiNmUYS3s8wAT9LtjFC"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:39.955821"], ["updated_at", "2016-10-02 08:40:39.955821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$jQ7weVLy9ZUCVSdDzgrv3uE7.v74Aibfp8N7AuzL6fupcc5.yzyQC"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:39.961125"], ["updated_at", "2016-10-02 08:40:39.961125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$fyFiiZ0NVDYYKFe7Po5p7O/gPlyU1DibZwwJp5CqPeGf.4uCNVbze"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:39.966392"], ["updated_at", "2016-10-02 08:40:39.966392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$xHGgwGJ5kywuLgKBHt.SRu6c7CHo.hNOdwEe8AHwUTWw3V2q01e7q"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:39.971597"], ["updated_at", "2016-10-02 08:40:39.971597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$YrBVIcRfgHU4Tyj3rzDbTOx47JImhPw9OVgAhOiPi1Ncv013GNkWq"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:39.976777"], ["updated_at", "2016-10-02 08:40:39.976777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$3T9dmLtNMzq8LUjcRySEHe0iY/mkSiUTor5oNC1XaiH6JfH2exspa"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:39.982015"], ["updated_at", "2016-10-02 08:40:39.982015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$sZiPBAD7e6Kh3YWziDfzlONvWvME3eQrexiBKD98q0gJpMPuvMQo2"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:39.987495"], ["updated_at", "2016-10-02 08:40:39.987495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$DRXjgNhv/lZtJHVk69k9W.MmjJXFLMXPJL0wna5jhFfcl9ouN2Ctm"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:39.992875"], ["updated_at", "2016-10-02 08:40:39.992875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$Y2tpZ/uKzCrHM0ZrZXIdHuZQLXt3ddP0PwF0VCKpEEZMCwKCPSryK"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:39.998254"], ["updated_at", "2016-10-02 08:40:39.998254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$3KCkyu.xYyrqAgCYjlLxZ.FS0Lkoywyu03TTZZn/1E2NrkU5TP4.2"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:40.003653"], ["updated_at", "2016-10-02 08:40:40.003653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$Yh6qFLLXjBBPX6j2AjArt.Y6YouV.79pwPmeZ3WELbCsKIaCF3UEm"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:40.009251"], ["updated_at", "2016-10-02 08:40:40.009251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$AcR2jTFsGClQGZdCz7MWIepcJ5Q6qF8JYjaM03CQgIGbeLHfStOEu"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:40.014423"], ["updated_at", "2016-10-02 08:40:40.014423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$M3/ibR5uoTyBLMx4gdw/SeUD6.sFBCNQ8vnb6U65tC2j545qcAIMa"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:40.019897"], ["updated_at", "2016-10-02 08:40:40.019897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'af7d4077-6ef9-443d-9a6a-1add18c2194a' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'af7d4077-6ef9-443d-9a6a-1add18c2194a' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "af7d4077-6ef9-443d-9a6a-1add18c2194a"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:40:40.032161"], ["updated_at", "2016-10-02 08:40:40.032161"]] SQL (12.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-02 08:40:40.032161"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 17ms (Views: 14.7ms | ActiveRecord: 0.4ms) Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$7A/SRc9Sjo3R8evkVrVj4eVznrjuegPDZ.9Hdr2jRf6//CR4664cq"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:40.958466"], ["updated_at", "2016-10-02 08:40:40.958466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'af7d4077-6ef9-443d-9a6a-1add18c2194a' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'af7d4077-6ef9-443d-9a6a-1add18c2194a' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "af7d4077-6ef9-443d-9a6a-1add18c2194a"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 08:40:40.963034"], ["updated_at", "2016-10-02 08:40:40.963034"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-02 08:40:40.963034"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'af7d4077-6ef9-443d-9a6a-1add18c2194a' AND "tang_plans"."id" != 2) LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$/b8ALxZESeY8w5UkhrQL4uEpXS9t7amu0diG.vzFyw1kaOJi.fWOu"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:41.376863"], ["updated_at", "2016-10-02 08:40:41.376863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$UovjJDn2WKIkMvpqW65NSONW.OY26chPI/Y198bdoKZDYF2niPQEC"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:41.393050"], ["updated_at", "2016-10-02 08:40:41.393050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'af7d4077-6ef9-443d-9a6a-1add18c2194a' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'af7d4077-6ef9-443d-9a6a-1add18c2194a' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "af7d4077-6ef9-443d-9a6a-1add18c2194a"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:40:41.396702"], ["updated_at", "2016-10-02 08:40:41.396702"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-02 08:40:41.396702"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$rxwj1PK79UZRAkz9MSJw.OkwTPm.fg.cBNLuVHEmUnOZuv75SwF1K"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:41.765626"], ["updated_at", "2016-10-02 08:40:41.765626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"af7d4077-6ef9-443d-9a6a-1add18c2194a", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$xeaqpSB7LP0acDqnvDAD3.EUSl3jndiAp5QGxoDk1ytE/R7yxC.sC"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:41.779900"], ["updated_at", "2016-10-02 08:40:41.779900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"af7d4077-6ef9-443d-9a6a-1add18c2194a", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]] Completed 400 Bad Request in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$OxzMhGMlKv.rsWQG7sZT2.jHxGg0Mm9pu5e2.iTKN.A36dFzR6uj2"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:41.792237"], ["updated_at", "2016-10-02 08:40:41.792237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"af7d4077-6ef9-443d-9a6a-1add18c2194a", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]] Completed 400 Bad Request in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$0OmwRte.OrkY3IG8mTF4feLDkIRgcykEKGEj3zKM9HubdwNpUz816"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:41.804296"], ["updated_at", "2016-10-02 08:40:41.804296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"af7d4077-6ef9-443d-9a6a-1add18c2194a", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]] Completed 400 Bad Request in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$E6O7CSRFmh9DClbKm5MW4evIKb1iNf45xi4/Av5zVW0/ifsLX7H7C"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:41.816992"], ["updated_at", "2016-10-02 08:40:41.816992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"af7d4077-6ef9-443d-9a6a-1add18c2194a", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]] Completed 400 Bad Request in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$LpT5eumnX20JXm.DtvvW6ukTWYRDLKKekQum8g58gthM04Ybdd7CO"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:41.830688"], ["updated_at", "2016-10-02 08:40:41.830688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'af7d4077-6ef9-443d-9a6a-1add18c2194a' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'af7d4077-6ef9-443d-9a6a-1add18c2194a' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "af7d4077-6ef9-443d-9a6a-1add18c2194a"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:40:41.834231"], ["updated_at", "2016-10-02 08:40:41.834231"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:40:41.834231"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$espUT9/IckGwzubWs6ADJuJpEjts9EPLPwcD7wA8K7/Vfqa89EKIC"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:42.236562"], ["updated_at", "2016-10-02 08:40:42.236562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'af7d4077-6ef9-443d-9a6a-1add18c2194a' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'af7d4077-6ef9-443d-9a6a-1add18c2194a' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "af7d4077-6ef9-443d-9a6a-1add18c2194a"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:40:42.239962"], ["updated_at", "2016-10-02 08:40:42.239962"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:40:42.239962"], ["item_id", 5], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$IXvz/QaKKwoB0TD.e4F20Oh66hR1iAk12OFMxUK7Y.CPGBCjJQBgC"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:42.628517"], ["updated_at", "2016-10-02 08:40:42.628517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'af7d4077-6ef9-443d-9a6a-1add18c2194a' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'af7d4077-6ef9-443d-9a6a-1add18c2194a' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "af7d4077-6ef9-443d-9a6a-1add18c2194a"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:40:42.632327"], ["updated_at", "2016-10-02 08:40:42.632327"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:40:42.632327"], ["item_id", 6], ["item_type", "Tang::Plan"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$buWY52/pUm84QTfssgV5wO.KpWGU86z1YAdFFEHgMtKwq4TNcvF5m"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:43.012990"], ["updated_at", "2016-10-02 08:40:43.012990"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'af7d4077-6ef9-443d-9a6a-1add18c2194a' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'af7d4077-6ef9-443d-9a6a-1add18c2194a' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "af7d4077-6ef9-443d-9a6a-1add18c2194a"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:40:43.017522"], ["updated_at", "2016-10-02 08:40:43.017522"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:40:43.017522"], ["item_id", 7], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$.nbXOchhu3RqNkrh.qxKDuNRtZMfoAjkjrGgqJSbF.8Iisz03ZWmy"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:43.444509"], ["updated_at", "2016-10-02 08:40:43.444509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'af7d4077-6ef9-443d-9a6a-1add18c2194a' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'af7d4077-6ef9-443d-9a6a-1add18c2194a' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "af7d4077-6ef9-443d-9a6a-1add18c2194a"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:40:43.448589"], ["updated_at", "2016-10-02 08:40:43.448589"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:40:43.448589"], ["item_id", 8], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$sBz2ROhFM2oLE4DRtsMv6OwnY7LIyfRyJegx.TWDkVhQfn0vYenB6"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:43.814085"], ["updated_at", "2016-10-02 08:40:43.814085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'af7d4077-6ef9-443d-9a6a-1add18c2194a' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'af7d4077-6ef9-443d-9a6a-1add18c2194a' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "af7d4077-6ef9-443d-9a6a-1add18c2194a"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:40:43.817346"], ["updated_at", "2016-10-02 08:40:43.817346"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:40:43.817346"], ["item_id", 9], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$I9Bsr4UhQeB2UPm9BU2nwuEEMwNYZUJBRlHaXPqW0GzPj1jICc52K"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:44.182812"], ["updated_at", "2016-10-02 08:40:44.182812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'af7d4077-6ef9-443d-9a6a-1add18c2194a' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'af7d4077-6ef9-443d-9a6a-1add18c2194a' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "af7d4077-6ef9-443d-9a6a-1add18c2194a"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:40:44.187037"], ["updated_at", "2016-10-02 08:40:44.187037"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:40:44.187037"], ["item_id", 10], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$gynUtD3hy/aVdfVLUw7YeuebDylX/svwXp/zF14xIyupLOdZBxKkq"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:44.554263"], ["updated_at", "2016-10-02 08:40:44.554263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$4HNDnNMvsA2ON8LexqhBH.h4LUavBCyRXEbRjfGN1XO56raKqmygS"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:44.561020"], ["updated_at", "2016-10-02 08:40:44.561020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$WrSxhs6NpyuGnYWUlgMrS.vP4BqbR3HeJdBOmzvINGwcOaewPkbuG"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:44.567227"], ["updated_at", "2016-10-02 08:40:44.567227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$EzkrHMSUumNZmrPetyEOcuzM.1wqcvi5gZygkACZXopO8cXcAr7Eq"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:44.573177"], ["updated_at", "2016-10-02 08:40:44.573177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$0Kaht3yGI2WkIEwtXc.5eOqhk7Iv1CRqj7Y4khnNwrccNJaPve4.O"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:44.579487"], ["updated_at", "2016-10-02 08:40:44.579487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$FxrLNYjNK9HjTkHept7hkOdd.MHm9j8Fgm9WWRyZbnWucaV3hiCkS"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:44.585425"], ["updated_at", "2016-10-02 08:40:44.585425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$Jd2s8F56EjJ5RQC5CAPvDOd2Lo8TM0pwXlzJeAw5FEQMTObZh3rd."], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:44.592060"], ["updated_at", "2016-10-02 08:40:44.592060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$sPw6jH0n8cMsf3Z4rFyuNOX7oru5HNVe.Cl3QKVY11orG8QYzrCgW"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:44.599345"], ["updated_at", "2016-10-02 08:40:44.599345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$aAGDgmIAtIejQqtPnM0Hc.gx89KElmgx6mwqxreJ1CTuaeh7VZk16"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:44.606793"], ["updated_at", "2016-10-02 08:40:44.606793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '114fd882-30f7-40c5-b2c5-d2478e193caa' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$V7J0mVer24Curypey7aJcu0gZXC93VIb4q8tOvJwdkWrYmi9P8ASS"], ["stripe_id", "114fd882-30f7-40c5-b2c5-d2478e193caa"], ["created_at", "2016-10-02 08:40:44.614124"], ["updated_at", "2016-10-02 08:40:44.614124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 16ms (Views: 9.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (29.9ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$qUHt8djA8EMsyoLrfPuHKehNopEGIPP68p/kGmhjEiNb.BfeObGeS"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:45.116540"], ["updated_at", "2016-10-02 08:42:45.116540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$BDBrRZUXndhu7MkDcckzEu8jq6JhFi2DH6jULSv7INViRVryqYqjy"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:45.153693"], ["updated_at", "2016-10-02 08:42:45.153693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$nR70vwITgpZNs2IT1v1gHeylhcibzBrLNef1jhVhrj068CpTA6Npi"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:45.168607"], ["updated_at", "2016-10-02 08:42:45.168607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 47ms (Views: 26.7ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$0uKMiSzs8MPIgRXsw3leYO6tA3CANVN9ntL3M4EqeCP8iO.1Bvw9C"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:45.228526"], ["updated_at", "2016-10-02 08:42:45.228526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$JBe6LpFkTknQD57VIzdzZexjb4QeuxDvdM1E1wHsEKCfsRALfndIe"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:45.236176"], ["updated_at", "2016-10-02 08:42:45.236176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$RdcZkwUrGyPsHevOJ2TH4.fp0QFu5/cNV8U5WFexI5agouXfc7XIG"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:45.247184"], ["updated_at", "2016-10-02 08:42:45.247184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$s.dxTn.e90lo6TAbN0LaP.FtYb9b5eCqK8BfzoYGQHl0.V9sjaPNO"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:45.252929"], ["updated_at", "2016-10-02 08:42:45.252929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$.drxouRS9hXvXn01/k94mu40vwOwct25eziN33o.yIDrpjxmBMiY2"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:45.258155"], ["updated_at", "2016-10-02 08:42:45.258155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$raAaYH6GBkUBUjHYqeTy6OHjTNxavrjqaB3WMImGplExg2lxBWuDq"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:45.263959"], ["updated_at", "2016-10-02 08:42:45.263959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$aTiI7glCYkCTvEP.YFmGWepBEtFiU12/1Bfi2XmxiMHeYMDaoILLi"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:45.269691"], ["updated_at", "2016-10-02 08:42:45.269691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$cUXf6mNegNzNobHQliUxCeuMwOBmy5pDObVLaY9oAZnoEoAh8EQNu"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:45.275082"], ["updated_at", "2016-10-02 08:42:45.275082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$1rAAptn3JNJ.LXz6ldoVo.WJVOobE7W4zkbmDwk9kRYekp/npTOfy"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:45.280010"], ["updated_at", "2016-10-02 08:42:45.280010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$JpH4XOorryvOzFsUO9T.UeNWDF/QTt8eLs3DS.SLw5LvBiCZgJZ.y"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:45.285155"], ["updated_at", "2016-10-02 08:42:45.285155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$eZiV.5omk0bsABJQxqsvy.s.yKM1Lz.IxC4Sq9VcuJYYSuF6.Afs6"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:45.290675"], ["updated_at", "2016-10-02 08:42:45.290675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$OA5v8T8OQLsZC5SReD8Dzezur.l0soQpHBERQX531eBb6er0FEL0i"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:45.296178"], ["updated_at", "2016-10-02 08:42:45.296178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$eRh9hs3TCpWMhd3ATbnlIegvPGy2pNGcD.jCpJ9CLU44S1uMlR83a"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:45.301512"], ["updated_at", "2016-10-02 08:42:45.301512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$GwR8j/i6XkSrIsWc/gIQnOSageaYfcWjvJACjRqi92ptkffpd.FXK"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:45.306818"], ["updated_at", "2016-10-02 08:42:45.306818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$qbUJA1Zx9jJQJCsOjRYMO.fpxhfil57qq8UMild2YAH4wQEhO3rAC"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:45.311685"], ["updated_at", "2016-10-02 08:42:45.311685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$O3p6oJgiJ5I4UAt7x4VGgO6f/oCVyPunwxklTwFaoAk9tLvcJr6HK"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:45.317410"], ["updated_at", "2016-10-02 08:42:45.317410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$PQCykyxj88keVlC.Ox8W5..lNWyUEOKmwXONn5uOFIxbmiFowo1hW"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:45.322875"], ["updated_at", "2016-10-02 08:42:45.322875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$irXaKUKB.i1bOa3EsuzTDOaZElN7adbrrPJnQyuX6dLrGq76CmX7i"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:45.327831"], ["updated_at", "2016-10-02 08:42:45.327831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$Pd5AHlZaRqGqrDXxKWkU5.wf.4RE3ucienmtA1lOO4ysdyMF17FSi"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:45.332890"], ["updated_at", "2016-10-02 08:42:45.332890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$3wZ77WeD6sJwpGGQnCmXn.ePp8wOvQDfc2KhkBDBN6EqjHCgRFxSa"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:45.339177"], ["updated_at", "2016-10-02 08:42:45.339177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$UoQtdePXkTWv6b.r0XSb0OSIs40KXzXDngr.mjK6BNtnyTgAJZUH6"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:45.344546"], ["updated_at", "2016-10-02 08:42:45.344546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$0FVVI80Kqv7vl0xtFLM/X.kLM4DaBRSU2r3WaZ1Iv7AkPxZ37VrBC"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:45.350006"], ["updated_at", "2016-10-02 08:42:45.350006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$42N/vmO1O8reL822rRFUGe8oMuPRExIX2WbsMqWUrqhLKn3cbaZLu"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:45.355083"], ["updated_at", "2016-10-02 08:42:45.355083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$/qugLlO/iGTpPxMT4h6P.OGTi8xC29uCxdf4rCRYpNQoWxDQGAeHi"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:45.361155"], ["updated_at", "2016-10-02 08:42:45.361155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f6326e1a-21b4-4ad8-ba0a-a8a36c4ce820' LIMIT 1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f6326e1a-21b4-4ad8-ba0a-a8a36c4ce820' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "f6326e1a-21b4-4ad8-ba0a-a8a36c4ce820"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:42:45.376057"], ["updated_at", "2016-10-02 08:42:45.376057"]] SQL (17.7ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-02 08:42:45.376057"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 13ms (Views: 11.3ms | ActiveRecord: 0.3ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$agv6fe9mXeHvYeijeCciu.Ob9Y2VCtsCuaV5fTHrqG3oDQ0m4LGFC"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:45.888710"], ["updated_at", "2016-10-02 08:42:45.888710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f6326e1a-21b4-4ad8-ba0a-a8a36c4ce820' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f6326e1a-21b4-4ad8-ba0a-a8a36c4ce820' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "f6326e1a-21b4-4ad8-ba0a-a8a36c4ce820"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 08:42:45.893749"], ["updated_at", "2016-10-02 08:42:45.893749"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-02 08:42:45.893749"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'f6326e1a-21b4-4ad8-ba0a-a8a36c4ce820' AND "tang_plans"."id" != 2) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$clNcwhz5j/ExhlcWrBNOgOhGEu.nV4IpyKrwF3q9yW2jvOnH443FC"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:46.350408"], ["updated_at", "2016-10-02 08:42:46.350408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$PjK7XEK9DHm6l1BwCeOAEeE2rcsjUfJAhZcrRjhnHDFnqTp0oIIx2"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:46.367541"], ["updated_at", "2016-10-02 08:42:46.367541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f6326e1a-21b4-4ad8-ba0a-a8a36c4ce820' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f6326e1a-21b4-4ad8-ba0a-a8a36c4ce820' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "f6326e1a-21b4-4ad8-ba0a-a8a36c4ce820"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:42:46.370423"], ["updated_at", "2016-10-02 08:42:46.370423"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-02 08:42:46.370423"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$ca/4u31c3Smn6D7K9QbXxuizQiuNqYvQksL/nJm/0bso4NnnyttYO"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:46.769175"], ["updated_at", "2016-10-02 08:42:46.769175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"f6326e1a-21b4-4ad8-ba0a-a8a36c4ce820", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$BuWWrNZPWiouJwKzDd63relWwhRV6dqu1Sx5fYDwG357hZDDb4wzK"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:46.783359"], ["updated_at", "2016-10-02 08:42:46.783359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"f6326e1a-21b4-4ad8-ba0a-a8a36c4ce820", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$PA4b6VyfS3SJgtakO.3h6OokwljuKU8M42lPr9UY.wcOthheBaW72"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:46.796448"], ["updated_at", "2016-10-02 08:42:46.796448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"f6326e1a-21b4-4ad8-ba0a-a8a36c4ce820", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$StudUwaB7ecYUyWZZtwjtOX08ZiCrt9CwITMAFo2gXiWM0RL6uguu"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:46.810170"], ["updated_at", "2016-10-02 08:42:46.810170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"f6326e1a-21b4-4ad8-ba0a-a8a36c4ce820", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]] Completed 400 Bad Request in 1ms (ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$mSaH4pR8Qk1nWXbZPLkRAeG05Cj37raKJuipbINuEiNLWiPZIMaxW"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:46.822185"], ["updated_at", "2016-10-02 08:42:46.822185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"f6326e1a-21b4-4ad8-ba0a-a8a36c4ce820", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$ZoTjIAHPZCPCYribSBbdrO1t/tc3mB5Er6SZWc5y1hZN40gJjcjK6"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:46.836743"], ["updated_at", "2016-10-02 08:42:46.836743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f6326e1a-21b4-4ad8-ba0a-a8a36c4ce820' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f6326e1a-21b4-4ad8-ba0a-a8a36c4ce820' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "f6326e1a-21b4-4ad8-ba0a-a8a36c4ce820"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:42:46.841163"], ["updated_at", "2016-10-02 08:42:46.841163"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:42:46.841163"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$MoZIHLa29jjb6zO6zrv.4ewXhs/7NCoDhTjyoqg62Rrz5yqg8i3MG"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:47.217473"], ["updated_at", "2016-10-02 08:42:47.217473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f6326e1a-21b4-4ad8-ba0a-a8a36c4ce820' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f6326e1a-21b4-4ad8-ba0a-a8a36c4ce820' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "f6326e1a-21b4-4ad8-ba0a-a8a36c4ce820"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:42:47.221348"], ["updated_at", "2016-10-02 08:42:47.221348"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:42:47.221348"], ["item_id", 5], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$TIRbDq6U8IFTReUKutU.F.uahRNR59HlLiAXXdIRy7T7cG0gYmLKy"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:47.645083"], ["updated_at", "2016-10-02 08:42:47.645083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f6326e1a-21b4-4ad8-ba0a-a8a36c4ce820' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f6326e1a-21b4-4ad8-ba0a-a8a36c4ce820' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "f6326e1a-21b4-4ad8-ba0a-a8a36c4ce820"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:42:47.649223"], ["updated_at", "2016-10-02 08:42:47.649223"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:42:47.649223"], ["item_id", 6], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$K.4l9LZo70rzkmPezd8zf.L5A9mUoQy8gllk7/naBBH0gBWku22zq"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:48.006388"], ["updated_at", "2016-10-02 08:42:48.006388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f6326e1a-21b4-4ad8-ba0a-a8a36c4ce820' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f6326e1a-21b4-4ad8-ba0a-a8a36c4ce820' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "f6326e1a-21b4-4ad8-ba0a-a8a36c4ce820"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:42:48.009842"], ["updated_at", "2016-10-02 08:42:48.009842"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:42:48.009842"], ["item_id", 7], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$s2fuzlf/1LeRzl2A507XQOpBq.X9LV6076L9G0WQmaEgPWZEXPuHC"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:48.424649"], ["updated_at", "2016-10-02 08:42:48.424649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f6326e1a-21b4-4ad8-ba0a-a8a36c4ce820' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f6326e1a-21b4-4ad8-ba0a-a8a36c4ce820' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "f6326e1a-21b4-4ad8-ba0a-a8a36c4ce820"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:42:48.428142"], ["updated_at", "2016-10-02 08:42:48.428142"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:42:48.428142"], ["item_id", 8], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$RuTl5P5aZuwbpIyYsrjbOusprQy8h3SwjB23TC05qfU.p3LGYkePy"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:48.801633"], ["updated_at", "2016-10-02 08:42:48.801633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f6326e1a-21b4-4ad8-ba0a-a8a36c4ce820' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f6326e1a-21b4-4ad8-ba0a-a8a36c4ce820' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "f6326e1a-21b4-4ad8-ba0a-a8a36c4ce820"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:42:48.805212"], ["updated_at", "2016-10-02 08:42:48.805212"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:42:48.805212"], ["item_id", 9], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$D.uUpehRa3RKRoZ0KSf3EeELYkRGKNec2rxof62AtPBq9T0MTL9Zq"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:49.183663"], ["updated_at", "2016-10-02 08:42:49.183663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f6326e1a-21b4-4ad8-ba0a-a8a36c4ce820' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f6326e1a-21b4-4ad8-ba0a-a8a36c4ce820' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "f6326e1a-21b4-4ad8-ba0a-a8a36c4ce820"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:42:49.187287"], ["updated_at", "2016-10-02 08:42:49.187287"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:42:49.187287"], ["item_id", 10], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$xOk2.T4NHZBo4M9MDbdBOeS6QE0ZTbDq7i5BfE5i2gBXQFa1SAp1K"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:49.560319"], ["updated_at", "2016-10-02 08:42:49.560319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$75HAJO9KreooooQH4BbJbObY.B51sDQsKSS2x1lHal0QvfUUR/Pwu"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:49.566985"], ["updated_at", "2016-10-02 08:42:49.566985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$tJIZDH8g.bo0IvEADqWjF.xEu/RFTiyfCqn1FPrfIErXnpEsKp.eq"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:49.573393"], ["updated_at", "2016-10-02 08:42:49.573393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$ECsEDXHgHnnVgC6IBF57huXEdjlzVX50nL8FicW3dq4AEqu7vki1q"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:49.579738"], ["updated_at", "2016-10-02 08:42:49.579738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$O6dwXsyzgH7v8XYTfwE3Ve0O6/mVPdQ25YIJ5U8kfGeKYgXSmyRTK"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:49.586510"], ["updated_at", "2016-10-02 08:42:49.586510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$uqvOtLIGG73seI9ba0KIeeWQ/QB2Kqh.xdWGPGT2twSejZvy7z7aa"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:49.593951"], ["updated_at", "2016-10-02 08:42:49.593951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$Ck.GYJbGfMgf/kz0G58fm.cC98wbotJh/fsw5dffNIaLqJU18Fz6O"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:49.600728"], ["updated_at", "2016-10-02 08:42:49.600728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$94PdK7nsW4DcApkeN6JuSuODQ7vmYDNvgsiH4ei4rjNSowmaI5zCa"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:49.607215"], ["updated_at", "2016-10-02 08:42:49.607215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$kUBtUoKvLMD73uaVyVixQerOymzZVu/744Tp7mt5JL16cLjL3ApSu"], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:49.613278"], ["updated_at", "2016-10-02 08:42:49.613278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5c5f0a4-b221-4547-8d50-d066250f2713' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$I6HC.Gxo0VQf03Mpr01Uxu4ySIBm6KpZHrKiHMZFtHFstNC8w888."], ["stripe_id", "c5c5f0a4-b221-4547-8d50-d066250f2713"], ["created_at", "2016-10-02 08:42:49.619062"], ["updated_at", "2016-10-02 08:42:49.619062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 15ms (Views: 8.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (22.6ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$fLYBxYdml3WD9epGv1r1QuPJqEGc5g8WmxWEug6amSEXYvt6ouCJG"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:06.539265"], ["updated_at", "2016-10-02 08:44:06.539265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$BoAXhDsFSX5T6J.o3KXfrO5XgJJAhmdZ.j5wPjbZpPHJoH0jUxqpK"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:06.569073"], ["updated_at", "2016-10-02 08:44:06.569073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$z1acBQFdraX6z/YpojoFu.84J719JzCtO0i8c1ThnNsECKNdEj2Wy"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:06.584979"], ["updated_at", "2016-10-02 08:44:06.584979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 50ms (Views: 26.6ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$MwHlBXxfu91CswPYZ8/Qiut5iezmRFwOMuKxxaQEyZz9MYQQ.wTNy"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:06.650729"], ["updated_at", "2016-10-02 08:44:06.650729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$ZYvOU6WW9eyUBDvz/dYBR.Ip9p9fYzxjoACo9PQXlgCL2ipsaVy7C"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:06.658514"], ["updated_at", "2016-10-02 08:44:06.658514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$01GLBWHDINXUWiDE/ZvahudfKl1/O43H2OXbKYQj0FpBkTEMRz.7K"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:06.671979"], ["updated_at", "2016-10-02 08:44:06.671979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$kTQ/8LJo/B1N.jGGFoDOw.eg/FvFggSG2MYF7fHlh/WF8lOgh2BKi"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:06.678849"], ["updated_at", "2016-10-02 08:44:06.678849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$bmvIMBjvOx4XmwRHjYlNbOEJRyoEdlWkYzHJkUchrea2SlCV/FgNq"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:06.684943"], ["updated_at", "2016-10-02 08:44:06.684943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$KtT.sGFpsYZWbK9zT4V3BufnT9k90Z7QZjSeHkht7jOKkkXWdK08y"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:06.690226"], ["updated_at", "2016-10-02 08:44:06.690226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$3oO61zLSKYhFXoBtpUKivuJ2NlaFNstcfUoupYdF585.cLIuL4732"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:06.695890"], ["updated_at", "2016-10-02 08:44:06.695890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$5TNHJhKLazhme8RiaJBaNusf56WXCqNi7LhSBRSzge5Z82DMEhmwS"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:06.701189"], ["updated_at", "2016-10-02 08:44:06.701189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$mLaloWFdNY2KIpPN4IAb/.yDEPymIOAwVU.HkK5DI7xiz4APsNj3W"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:06.706213"], ["updated_at", "2016-10-02 08:44:06.706213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$gHwDN4t5gA91aB6fH14Wm.tRuP32vt/BcACeIiGmNIU1m/AUsUQxK"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:06.711704"], ["updated_at", "2016-10-02 08:44:06.711704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$.jl4bJn8y3U5aO8mNKpn7uBGR9QEyXWLNATP/EWc1OxQ1065ZxLSC"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:06.717197"], ["updated_at", "2016-10-02 08:44:06.717197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$hYBIiudkwUZa4YhFLfIleuZD5RTdZr1yOKIVNqxt92Q9QVHXWcbM2"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:06.723017"], ["updated_at", "2016-10-02 08:44:06.723017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$WCHE02aYgoFCWTuHWY8FROSjmhe/f5kzQOiYv/m27h/zgwjHhGKlS"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:06.728882"], ["updated_at", "2016-10-02 08:44:06.728882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$nIPQzceWCaO4zYfCjWqKPOwrTByziMTmjRtLW5QnLGEss1z/559ka"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:06.734853"], ["updated_at", "2016-10-02 08:44:06.734853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$bZeDgC74BLM7SAj91q6mYezj4uHIbedsspWMmEhVnaRZdXD7aeaua"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:06.740410"], ["updated_at", "2016-10-02 08:44:06.740410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$gXQfjbq4sISSjzI8cj/byOSn3cxVWCe/lKd2ccbcT1xHnWocE/vCe"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:06.746783"], ["updated_at", "2016-10-02 08:44:06.746783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$9s6.0ktxfs/q93NcBFvhoedv.muORxFqOGq5Oo3/9DyL0ehJ2lMEy"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:06.752815"], ["updated_at", "2016-10-02 08:44:06.752815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$rKHHTUwMPY3ZfBR3zxPb4eBlLiMBXyYsoTKCxWaDLhNSaePiUg9fm"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:06.758845"], ["updated_at", "2016-10-02 08:44:06.758845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$Bt6CqbF2PqAolyhmb1ZbseE5F7yZQrRlmTiyX0j/K8FSvJ53SD4zu"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:06.765069"], ["updated_at", "2016-10-02 08:44:06.765069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$XeyYW9m6QRmw9q.kycofPuUIeRDlhQ7eagoGQCH.WjwTrw8mE5ORG"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:06.770697"], ["updated_at", "2016-10-02 08:44:06.770697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$RyA/btfMlzBs/zLkMfEsSecHOUBj57CXgXqHj3oyb6lNppxzVmvhO"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:06.775871"], ["updated_at", "2016-10-02 08:44:06.775871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$90toNKuIl0MGJPZc8vnTyOW0FijllOdfjj2ZgQCF2Q9QifLWqwsbS"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:06.781006"], ["updated_at", "2016-10-02 08:44:06.781006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$JykD6CQoSo15ZlkUQZesee55CqHbQV1nbq9PRkS5H0ttrWeb.mhX6"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:06.786552"], ["updated_at", "2016-10-02 08:44:06.786552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$DIdIR8OV1PTB2o5OiHyj0e6OgB0TWOOuHKRUVH.l35e94nEAa/HXe"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:06.792647"], ["updated_at", "2016-10-02 08:44:06.792647"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '010cdd21-6ad5-4222-989d-51743fc8d6be' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '010cdd21-6ad5-4222-989d-51743fc8d6be' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "010cdd21-6ad5-4222-989d-51743fc8d6be"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:44:06.807611"], ["updated_at", "2016-10-02 08:44:06.807611"]] SQL (17.7ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-02 08:44:06.807611"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 15ms (Views: 12.5ms | ActiveRecord: 0.3ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$uSDJADBI5eSHjaBCu/EFoey/AV0Ry2fpjAdIJrBeyAH2PC24jWal."], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:07.664574"], ["updated_at", "2016-10-02 08:44:07.664574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '010cdd21-6ad5-4222-989d-51743fc8d6be' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '010cdd21-6ad5-4222-989d-51743fc8d6be' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "010cdd21-6ad5-4222-989d-51743fc8d6be"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 08:44:07.669131"], ["updated_at", "2016-10-02 08:44:07.669131"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-02 08:44:07.669131"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '010cdd21-6ad5-4222-989d-51743fc8d6be' AND "tang_plans"."id" != 2) LIMIT 1 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 28]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (0.3ms) Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$4L0QtN8lSHur0PSSem9Msum/pF/gGORLIDBWwwM2aHbK2./iVzrzi"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:08.078378"], ["updated_at", "2016-10-02 08:44:08.078378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$Q97aBVM/xyfXR0jCH3170.mKBCtOxt2aEVOipqCRbQzl2akoM.fv."], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:08.098009"], ["updated_at", "2016-10-02 08:44:08.098009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '010cdd21-6ad5-4222-989d-51743fc8d6be' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '010cdd21-6ad5-4222-989d-51743fc8d6be' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "010cdd21-6ad5-4222-989d-51743fc8d6be"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:44:08.102420"], ["updated_at", "2016-10-02 08:44:08.102420"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-02 08:44:08.102420"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$eE7ST1alC6eRoJEsXhzzI.9HHHaVgR/EQXEPAF9KeF8o1Cx7ZOnwK"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:08.512350"], ["updated_at", "2016-10-02 08:44:08.512350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"010cdd21-6ad5-4222-989d-51743fc8d6be", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$kyb7sQv0Egguiajty1noQO6o4GP.nBo0eke5T5Sd4hzde5tdEUiDy"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:08.527472"], ["updated_at", "2016-10-02 08:44:08.527472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"010cdd21-6ad5-4222-989d-51743fc8d6be", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$67U75IQATZWV08q.BH1go.SswVyojHZ0aUjJaXH6gW6rz0imc2daC"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:08.541811"], ["updated_at", "2016-10-02 08:44:08.541811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"010cdd21-6ad5-4222-989d-51743fc8d6be", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]] Completed 400 Bad Request in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$wPxuZ0t6R5RBUcqZWOJUMOmSeqgzpH7YA94ehOpnHUfLqPZ.Ye/a."], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:08.554340"], ["updated_at", "2016-10-02 08:44:08.554340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"010cdd21-6ad5-4222-989d-51743fc8d6be", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$MfJYJX9ivq9HmzAlS.oi4OEmzvH4QMLLtnL9xG0ERNRf0T1JZFP32"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:08.567888"], ["updated_at", "2016-10-02 08:44:08.567888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"010cdd21-6ad5-4222-989d-51743fc8d6be", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$IqQDlB5V9fvfWZHIq42f4uXwYNbjJa9TisApd7F1rzXQ6oAO5ZO/S"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:08.581070"], ["updated_at", "2016-10-02 08:44:08.581070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '010cdd21-6ad5-4222-989d-51743fc8d6be' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '010cdd21-6ad5-4222-989d-51743fc8d6be' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "010cdd21-6ad5-4222-989d-51743fc8d6be"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:44:08.584904"], ["updated_at", "2016-10-02 08:44:08.584904"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:44:08.584904"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$cFV18dX69EboAsyIOXVRAeMl4ZoTMF38ggrgZtT23RtK1ZEkPeZk6"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:08.972946"], ["updated_at", "2016-10-02 08:44:08.972946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '010cdd21-6ad5-4222-989d-51743fc8d6be' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '010cdd21-6ad5-4222-989d-51743fc8d6be' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "010cdd21-6ad5-4222-989d-51743fc8d6be"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:44:08.977021"], ["updated_at", "2016-10-02 08:44:08.977021"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:44:08.977021"], ["item_id", 5], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$CAEy7qqFpSgzUXh7e4J4UOOHqNsQ9JJUqIM9Bbj411FYcHN8DsJkW"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:09.395194"], ["updated_at", "2016-10-02 08:44:09.395194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '010cdd21-6ad5-4222-989d-51743fc8d6be' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '010cdd21-6ad5-4222-989d-51743fc8d6be' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "010cdd21-6ad5-4222-989d-51743fc8d6be"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:44:09.399231"], ["updated_at", "2016-10-02 08:44:09.399231"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:44:09.399231"], ["item_id", 6], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$qOGGRb0pmFYP.7xEv9nwNOOwDEhFsCdAbaoI04n9FYKZnSusk6ke6"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:09.791965"], ["updated_at", "2016-10-02 08:44:09.791965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '010cdd21-6ad5-4222-989d-51743fc8d6be' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '010cdd21-6ad5-4222-989d-51743fc8d6be' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "010cdd21-6ad5-4222-989d-51743fc8d6be"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:44:09.795492"], ["updated_at", "2016-10-02 08:44:09.795492"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:44:09.795492"], ["item_id", 7], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$7VDrPStbYbR9vV1w74XhDuzYd7x7rvsCjqdzN8F/pzc00zjBjSneq"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:10.166106"], ["updated_at", "2016-10-02 08:44:10.166106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '010cdd21-6ad5-4222-989d-51743fc8d6be' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '010cdd21-6ad5-4222-989d-51743fc8d6be' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "010cdd21-6ad5-4222-989d-51743fc8d6be"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:44:10.170619"], ["updated_at", "2016-10-02 08:44:10.170619"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:44:10.170619"], ["item_id", 8], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$xA5wggJ552QgdfXhFT/UJO3WrNLu/HwbX4QFmUwMN2IgpgooA6k.S"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:10.547222"], ["updated_at", "2016-10-02 08:44:10.547222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '010cdd21-6ad5-4222-989d-51743fc8d6be' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '010cdd21-6ad5-4222-989d-51743fc8d6be' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "010cdd21-6ad5-4222-989d-51743fc8d6be"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:44:10.551625"], ["updated_at", "2016-10-02 08:44:10.551625"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:44:10.551625"], ["item_id", 9], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$AnIYhYb9GfKz1oFqC5JFs.kB8fdNFaHmIRgixnNebTlCLTu/o2VzS"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:10.963325"], ["updated_at", "2016-10-02 08:44:10.963325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '010cdd21-6ad5-4222-989d-51743fc8d6be' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '010cdd21-6ad5-4222-989d-51743fc8d6be' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "010cdd21-6ad5-4222-989d-51743fc8d6be"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:44:10.967426"], ["updated_at", "2016-10-02 08:44:10.967426"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:44:10.967426"], ["item_id", 10], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$xJ/O.YJzakFB/op0ykBrOuObIkYMXT3WMUH5bXdlm/fqvwDODfcHm"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:11.368480"], ["updated_at", "2016-10-02 08:44:11.368480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$Y21DB7L5m0v4aiuw7hRKpuTP7i1W5q1dMKz6aJk7NYtJTZUEtwfJq"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:11.374882"], ["updated_at", "2016-10-02 08:44:11.374882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$U.2JFjn0NA2NTglwW2JsV.8BCk8y81.GhewrmXnEzk/eFy/xH3CNG"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:11.382684"], ["updated_at", "2016-10-02 08:44:11.382684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$Bm/fuC7iT0lreIKrnD.Ne.gAKgJoVuF80fjhjemhVDgPvlAk3tifS"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:11.388399"], ["updated_at", "2016-10-02 08:44:11.388399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$aLYYTBeW3yqWoF3Vvl6Q5eSiGL4OGnUmUODlkWn6yOyPdu6KPMroe"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:11.395089"], ["updated_at", "2016-10-02 08:44:11.395089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$bgc1w.WxDkQoHSsMIesMFu8qyRcFLDxbL.ceDLPxMNOfFwx/VUXoq"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:11.401390"], ["updated_at", "2016-10-02 08:44:11.401390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$PJB8x7/J2uAPX2BHei8L1uBCCKgiK7FApWe7IODGUlVHs56e2uYWu"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:11.407490"], ["updated_at", "2016-10-02 08:44:11.407490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$z6lvpEpp4m6CMe8gcFXODOc1CYTPpeCoPQMm0oYQQYt91GbKCnSqW"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:11.413375"], ["updated_at", "2016-10-02 08:44:11.413375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$6Dy7nLbKTX1blMR/0uDcjOARavWC/IHGkC81pkQF52ED3P6bpEZrq"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:11.419750"], ["updated_at", "2016-10-02 08:44:11.419750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a6f6ac76-c55f-4d9a-9b55-39e06cff8380' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$nY0A3PdfvUTpeZpKfwUPGuSm0LSzUqPUPh2EvoqvwgMMxDD3nFvWO"], ["stripe_id", "a6f6ac76-c55f-4d9a-9b55-39e06cff8380"], ["created_at", "2016-10-02 08:44:11.425771"], ["updated_at", "2016-10-02 08:44:11.425771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 14ms (Views: 8.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (7.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$PQAARdNMfSXJgDSZ9HYQbe0GF0FmgfKscCefeGC7Y54P1o6dltkwK"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:34.170143"], ["updated_at", "2016-10-02 08:44:34.170143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$Dtzos35GM4TfbVc6iDwVR.OjoIciAhzNRQWwFGaY0hKUgDfmb1M7a"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:34.185221"], ["updated_at", "2016-10-02 08:44:34.185221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$7dLe5.XuLPL/VdIESkMrle/6FKk.M88tOYGjndPFHFzdL/gZZKAc2"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:34.199660"], ["updated_at", "2016-10-02 08:44:34.199660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 43ms (Views: 24.3ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$A7lfjrzyRotS8Gk.cJ/QDu4kcfMU2gLyC6vEa/SuXiNiJQAOakqUC"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:34.256943"], ["updated_at", "2016-10-02 08:44:34.256943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$6oOR/fq3pPVvQrwpIxAniOKuz8Zx5WrZ1yZayhZF/HIf7Nh8lkkpq"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:34.263930"], ["updated_at", "2016-10-02 08:44:34.263930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$AZAwMwOU5cuCqnlO9QC7fOZmI9o6NAQJ58ZLfGshwiq.Afu0FXCea"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:34.273439"], ["updated_at", "2016-10-02 08:44:34.273439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$4.//K7xzDgGgaWQHo5LzHeNzW3pKDsGlyvaLNhSMdOcZSDFBNgJEq"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:34.278983"], ["updated_at", "2016-10-02 08:44:34.278983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$F8I8pYvY3Av3Q645o.j9T.sSUJ2d33ph4kRNQgeiLtZFBzqT4a2jy"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:34.284531"], ["updated_at", "2016-10-02 08:44:34.284531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$IfaEwgt2XA6fb9txlcYTFuo2Xw//uNi5TKqLzDmelMMRtCdhIU0Gq"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:34.290448"], ["updated_at", "2016-10-02 08:44:34.290448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$BHCMpCaSUhUv.Y4MdIUpx.G.gl6wHbrqCF2p3RojcyJM3tNPcZnGu"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:34.295980"], ["updated_at", "2016-10-02 08:44:34.295980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$TKCrXXRDST122ZrqLCbnVuMqbJOOnAaB0zx9gIQnHnXJf1TIX4EbW"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:34.301848"], ["updated_at", "2016-10-02 08:44:34.301848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$FE0BnPR27/QE/9.iMqeKBu9pVN9EBYToFU97gmSs1idx32Yagem42"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:34.308782"], ["updated_at", "2016-10-02 08:44:34.308782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$GKbXmSnBoiWqqjOZ6E.1N.nNuWksncIJ8.goO0tpLINSkbHLDJFEO"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:34.315679"], ["updated_at", "2016-10-02 08:44:34.315679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$r3tsB6KGRzbdT50Cjthky.fjqEnMH0Mg322pIne4aRdbubriILGC."], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:34.321686"], ["updated_at", "2016-10-02 08:44:34.321686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$Bq11sbD59nd/71UG3xNSGeT3lYLCaDn85Z0JWor5q1Ux6WdfmoyPy"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:34.327301"], ["updated_at", "2016-10-02 08:44:34.327301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$wI2YHz5G8J1YpsHeQ.Pd3O9JtGzNC7d9d8JAiVdQe2UYZzdpYloPK"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:34.332297"], ["updated_at", "2016-10-02 08:44:34.332297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$P73b2H9N8mwlaAVXhF/jGetFUJDROUvfIUwSh9RlSMPDm.yVCQ.aK"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:34.337786"], ["updated_at", "2016-10-02 08:44:34.337786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$HIxDLbx1lY7aTOUt06CeH.FW6aILakmLDyL/WOdNQS8n3R7/szmCi"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:34.343010"], ["updated_at", "2016-10-02 08:44:34.343010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$4n1VfX7bPEtdKG9HL8jL2eRnqwRA.QpV9E3tKBigBiVXbJUWWqp/6"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:34.348187"], ["updated_at", "2016-10-02 08:44:34.348187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$.Y/LykRhaLjp2frm7SmvCO.T4AkRDlcAz/5eoQmoQTiTn62xNAZV."], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:34.353453"], ["updated_at", "2016-10-02 08:44:34.353453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$5bZTaD8AEqPGjlBqUCk3wOoEj5QruXm7LaZA/7FlYVpFOj648xunu"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:34.358849"], ["updated_at", "2016-10-02 08:44:34.358849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$nr1lvKHJoIph87VXe4KEVOQz9..xCW3X.WkTF7o3wRs9mfkI.vU9e"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:34.364137"], ["updated_at", "2016-10-02 08:44:34.364137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$3NI/s.WZUu0.NG2Q9J9d.uKBO5U70tk.hXdnrY1moAPFip0aTCK8."], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:34.370070"], ["updated_at", "2016-10-02 08:44:34.370070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$7AVsSFyc2C5aZwDiA9czYeV6u6i717o.QnEkmLnWIesqK4txlt5ni"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:34.375329"], ["updated_at", "2016-10-02 08:44:34.375329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$Y9IIv9WdOK.rfFUwMAmm/ueewNa/Y.YD4BzPtvt36S4.J33pN2aUa"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:34.382332"], ["updated_at", "2016-10-02 08:44:34.382332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$FsvsoXF3hmZ33jHdW2i80enmo4oylIZ3B52kaKFZceRHIka4ywAwa"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:34.389052"], ["updated_at", "2016-10-02 08:44:34.389052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$5480wES30dXjkb.pmf98q.8E9dcy40YkgsCKpINhTORzO07biGZ.a"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:34.395759"], ["updated_at", "2016-10-02 08:44:34.395759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '74ed2b82-4d31-41cc-bd32-36b20c26c4eb' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '74ed2b82-4d31-41cc-bd32-36b20c26c4eb' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "74ed2b82-4d31-41cc-bd32-36b20c26c4eb"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:44:34.409035"], ["updated_at", "2016-10-02 08:44:34.409035"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-02 08:44:34.409035"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.6ms) Completed 200 OK in 18ms (Views: 16.2ms | ActiveRecord: 0.2ms) Tang::Plan Load (0.5ms) SELECT "tang_plans".* FROM "tang_plans"  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$9fFjn6j86gr7hn.4W/7/yewMBukE34QibWxWv6bi537wEdzEmDZc."], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:35.302193"], ["updated_at", "2016-10-02 08:44:35.302193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '74ed2b82-4d31-41cc-bd32-36b20c26c4eb' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '74ed2b82-4d31-41cc-bd32-36b20c26c4eb' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "74ed2b82-4d31-41cc-bd32-36b20c26c4eb"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 08:44:35.308248"], ["updated_at", "2016-10-02 08:44:35.308248"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-02 08:44:35.308248"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '74ed2b82-4d31-41cc-bd32-36b20c26c4eb' AND "tang_plans"."id" != 2) LIMIT 1 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"2"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 28]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (0.4ms) Completed 200 OK in 13ms (Views: 6.5ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$a6VyIbRo/tjVwE1T.JiovO8XRhIWTYm9KoMH1NWAueWn5iG5ChQaa"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:35.698739"], ["updated_at", "2016-10-02 08:44:35.698739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.4ms) Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$K5MbWQqivrBCJb5.UdyHz.UVbQ6Gqn5cUqbO7UR3vUthhJKLV9zu."], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:35.715389"], ["updated_at", "2016-10-02 08:44:35.715389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '74ed2b82-4d31-41cc-bd32-36b20c26c4eb' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '74ed2b82-4d31-41cc-bd32-36b20c26c4eb' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "74ed2b82-4d31-41cc-bd32-36b20c26c4eb"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:44:35.719136"], ["updated_at", "2016-10-02 08:44:35.719136"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-02 08:44:35.719136"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$2vMqGcdEcg7R/ajrV9KwT.lXcj5kKjyi8oSp5rLacfa27uZFNECmK"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:36.082425"], ["updated_at", "2016-10-02 08:44:36.082425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"74ed2b82-4d31-41cc-bd32-36b20c26c4eb", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$WcLlb2uc1BA1n28yfiKCqexQA1ZO9E1OAECGdrAT7hgZJ9uUZyZmi"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:36.096038"], ["updated_at", "2016-10-02 08:44:36.096038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"74ed2b82-4d31-41cc-bd32-36b20c26c4eb", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$vLT6BH0mfoohCHHPHYFn3uhj/OaIOGNvoWPo8N8QbVkbhcKmQjkqS"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:36.110194"], ["updated_at", "2016-10-02 08:44:36.110194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"74ed2b82-4d31-41cc-bd32-36b20c26c4eb", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$qSze7X1XEFHouI1DXeb74.y2ajxs2wTuAnTp/JCRHqAOkUvxikjFa"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:36.123171"], ["updated_at", "2016-10-02 08:44:36.123171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"74ed2b82-4d31-41cc-bd32-36b20c26c4eb", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]] Completed 400 Bad Request in 1ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$lheO5DyvXod2j5A7sFK9qusOp807d1HDNOJ8xUvjSrZSCrMTn9Cx2"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:36.134248"], ["updated_at", "2016-10-02 08:44:36.134248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"74ed2b82-4d31-41cc-bd32-36b20c26c4eb", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$FfAWVlzMiECM5j86dU8AEu.nRNvBqBQcG/G7eFoCXkfsmpKV375By"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:36.146713"], ["updated_at", "2016-10-02 08:44:36.146713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '74ed2b82-4d31-41cc-bd32-36b20c26c4eb' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '74ed2b82-4d31-41cc-bd32-36b20c26c4eb' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "74ed2b82-4d31-41cc-bd32-36b20c26c4eb"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:44:36.150341"], ["updated_at", "2016-10-02 08:44:36.150341"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:44:36.150341"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$nEEvEfXE.6MK2boUxIM6PewuwiUEyEDsnWUiv18hO496P1t8jFOyy"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:36.520984"], ["updated_at", "2016-10-02 08:44:36.520984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '74ed2b82-4d31-41cc-bd32-36b20c26c4eb' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '74ed2b82-4d31-41cc-bd32-36b20c26c4eb' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "74ed2b82-4d31-41cc-bd32-36b20c26c4eb"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:44:36.525038"], ["updated_at", "2016-10-02 08:44:36.525038"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:44:36.525038"], ["item_id", 5], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$L.TfmmwjH/feWSdWRgXGsuNAiJJiH9xQzhVHKoqEyQxrSMwvQo0va"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:36.888100"], ["updated_at", "2016-10-02 08:44:36.888100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '74ed2b82-4d31-41cc-bd32-36b20c26c4eb' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '74ed2b82-4d31-41cc-bd32-36b20c26c4eb' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "74ed2b82-4d31-41cc-bd32-36b20c26c4eb"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:44:36.891641"], ["updated_at", "2016-10-02 08:44:36.891641"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:44:36.891641"], ["item_id", 6], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$wXmqLeyO48aek91DFGEdfO/3DuUiF1oQndLwb3GnWBm/Mnhe1mK7q"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:37.257330"], ["updated_at", "2016-10-02 08:44:37.257330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '74ed2b82-4d31-41cc-bd32-36b20c26c4eb' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '74ed2b82-4d31-41cc-bd32-36b20c26c4eb' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "74ed2b82-4d31-41cc-bd32-36b20c26c4eb"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:44:37.261447"], ["updated_at", "2016-10-02 08:44:37.261447"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:44:37.261447"], ["item_id", 7], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$kYWBaGNNvb5BMMgp2AojNeNgma8GIcYvNzuKfHoqOUvkYP7JcSbMm"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:37.634747"], ["updated_at", "2016-10-02 08:44:37.634747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '74ed2b82-4d31-41cc-bd32-36b20c26c4eb' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '74ed2b82-4d31-41cc-bd32-36b20c26c4eb' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "74ed2b82-4d31-41cc-bd32-36b20c26c4eb"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:44:37.639041"], ["updated_at", "2016-10-02 08:44:37.639041"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:44:37.639041"], ["item_id", 8], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$/575rbskH.MmUQkyFMSFUeWg8Nbvq98KV.WaAV2GeYn1HYN2j6U.e"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:38.100570"], ["updated_at", "2016-10-02 08:44:38.100570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '74ed2b82-4d31-41cc-bd32-36b20c26c4eb' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '74ed2b82-4d31-41cc-bd32-36b20c26c4eb' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "74ed2b82-4d31-41cc-bd32-36b20c26c4eb"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:44:38.104349"], ["updated_at", "2016-10-02 08:44:38.104349"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:44:38.104349"], ["item_id", 9], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$2b2Ayf3AcCQIqLq3Gs7FtejODS3MIX4H3CqZk/WqiVMI8.2S9.5qO"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:38.530780"], ["updated_at", "2016-10-02 08:44:38.530780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '74ed2b82-4d31-41cc-bd32-36b20c26c4eb' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '74ed2b82-4d31-41cc-bd32-36b20c26c4eb' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "74ed2b82-4d31-41cc-bd32-36b20c26c4eb"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:44:38.534194"], ["updated_at", "2016-10-02 08:44:38.534194"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:44:38.534194"], ["item_id", 10], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$LsZVFD5xK2PyWXuXqIVoZuvjKoULVuUsiydAs1IPA6whV1kRccweu"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:39.035456"], ["updated_at", "2016-10-02 08:44:39.035456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$HGwSrq9ItV5FWPSAv1jWt.zCoRHv4OlrGt/FSXWQGS6p5om2HXSwy"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:39.041692"], ["updated_at", "2016-10-02 08:44:39.041692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$0p2E5cmJhPBjM0d4nFScreApRkFZA.AyevRpl2xw.q9Ji71Npz0/6"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:39.048018"], ["updated_at", "2016-10-02 08:44:39.048018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$Cuoxe6DdJyW0jV.PsX8.q.yLvSldNagRd0owRCnJUC8p55TuVkHna"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:39.054499"], ["updated_at", "2016-10-02 08:44:39.054499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$W1QmRc1K84mXYELx5QqUpOJkwMRf2cute2M6E1efKqFhZo50BiEf6"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:39.060027"], ["updated_at", "2016-10-02 08:44:39.060027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$wRoxJv2M64d9qkwE7Kt5B.T50Q6s0fA1m0Qlgm/qJKA610lgejM/."], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:39.065760"], ["updated_at", "2016-10-02 08:44:39.065760"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$g0ktjpNmLFqdFXFUlZV4ReKykWMq0W5tGDAkWLTJKD8g7R2RvQ8tW"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:39.071561"], ["updated_at", "2016-10-02 08:44:39.071561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$qr7xm6QauL2kmooKl2dhj.koWn5ZE7KJ8QoACRTvk8MeChLkE6W92"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:39.076627"], ["updated_at", "2016-10-02 08:44:39.076627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$g76SVYO3TEROSCB7SYGAn.nr.kGPtlJcBCQNcbwqULPzO2k4xNbim"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:39.081766"], ["updated_at", "2016-10-02 08:44:39.081766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$ACP0SOle.z7nzM8UagIUCOfxmfsl4TQ7LpY4PGMB1Vt5fTwUFPGhm"], ["stripe_id", "c7d5c879-6e1b-4fe6-9e1a-ef3b6b266344"], ["created_at", "2016-10-02 08:44:39.086800"], ["updated_at", "2016-10-02 08:44:39.086800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 14ms (Views: 7.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$14lGzHj/fJdj3b3pX4RWd.r/vLIwEhXThVvgqMev/yb.24MblaEci"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:07.112496"], ["updated_at", "2016-10-02 08:45:07.112496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$7qYScRVSZ1clwvdx0sPpd.NngsbYU1HGHNfoH2K6BUsSAFVaWOV06"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:07.121289"], ["updated_at", "2016-10-02 08:45:07.121289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$1N78lysiNDiYTNaR0fndH.Eoa/NAjXBNy7iUIGYuWc1xKFBZWvIn."], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:07.136797"], ["updated_at", "2016-10-02 08:45:07.136797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 45ms (Views: 26.4ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$Nvr2StVLon1ggOGdIg2v9O8u4RgCigMeytfTqj2Kd4S6lwE/i/UBy"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:07.195207"], ["updated_at", "2016-10-02 08:45:07.195207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$q9X4K0M5585rGyibGwwM0OPSxYXCsAbPtJteZ48MciSsTmaP4EY7u"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:07.202391"], ["updated_at", "2016-10-02 08:45:07.202391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$MZ4LiB5VH0oUCXAd0s.jUuwqaOYpAtruCDQ0bbDcPcTCdRayA6yf2"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:07.212305"], ["updated_at", "2016-10-02 08:45:07.212305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$Y9nDUSdibc8C5T7QM6EYOeTcsettolAzjI9sHLcMPeYKMCga3OQfS"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:07.217813"], ["updated_at", "2016-10-02 08:45:07.217813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$AAN9dvzHhZ1kOK32884CJuK7YLCfXFxJrzKhxuqP3P7ThYEccnhb2"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:07.222950"], ["updated_at", "2016-10-02 08:45:07.222950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$f.K31m11c0kaE32ZuPw6j.s5TRJ2MpqkZ.H.Qrq4ed3exb0vMLKnW"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:07.228445"], ["updated_at", "2016-10-02 08:45:07.228445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$aDbSH97VM3.VyGGHn9eNUew1I3DSbW.dFTmQ6V2SxCvXxmK83GvFe"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:07.234091"], ["updated_at", "2016-10-02 08:45:07.234091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$qFr5YDZHQAJauafRLyC8c.2gIDEKzw.olH1KFuNj/GqUX3cafzJZC"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:07.239817"], ["updated_at", "2016-10-02 08:45:07.239817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$mbKlieANMIN2Qyh5b.AXIOqLQ9VxRZU9o25KDAV7PKlTN6GTd/WXq"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:07.245357"], ["updated_at", "2016-10-02 08:45:07.245357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$toBeQ.mJ1npVvcydYdtU.et6U42TJEwfaUBV2TMZkvRh7TNrZPoXK"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:07.250482"], ["updated_at", "2016-10-02 08:45:07.250482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$wIBIGVRn125POX9Za41LYelcb0yiWsVZmZ2Bmc9ECCl0mwqb8a4r."], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:07.255852"], ["updated_at", "2016-10-02 08:45:07.255852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$Lm/TPeeb7EZsPbDNuCD6xuo4JBjDi3AFpkRzmy5W5AenmmJoAdmFy"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:07.261252"], ["updated_at", "2016-10-02 08:45:07.261252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$Mw4j/AMOGc.HETKTOJU4C.Mk1QTc71YKxJQ6xvaqDbhaFX52hDQZu"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:07.266570"], ["updated_at", "2016-10-02 08:45:07.266570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$iCG/J9RiFvVvSiYh6XgTDudulAm1W/jqPZq/m2s22xsqcQn/gcAaS"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:07.271823"], ["updated_at", "2016-10-02 08:45:07.271823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$VQHTPTu9kuAieuadYcJlAeRex9Po7hW6qwLJFEEAqBNR.x7HobT5O"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:07.277079"], ["updated_at", "2016-10-02 08:45:07.277079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$NnoI1kLb2WbrtKII0uxnIeGYJmVZBQMyy4KO93nncGvhZbesMXIfa"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:07.282985"], ["updated_at", "2016-10-02 08:45:07.282985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$puE6xAuyTXtCpxlIfuaD.OQ2Mb5ddqwqoBMXI3xkbNApm1fJHQMW."], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:07.288600"], ["updated_at", "2016-10-02 08:45:07.288600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$o/FjVbWtYIBoAcb9AEZ4qOISFQ8JOGcGM1EzM7ana9Ojim0e57Xg."], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:07.293809"], ["updated_at", "2016-10-02 08:45:07.293809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$o0a7emL6dOLiqkX5WPJALujL3xWij0mtal15Uf9aVD3i2gUfJeE4O"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:07.299154"], ["updated_at", "2016-10-02 08:45:07.299154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$1QFW0doa2DycVo/vETgZcecE23ykssHwPzonw3LS7ycH89HoO.XAi"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:07.304902"], ["updated_at", "2016-10-02 08:45:07.304902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$hqs9aXhXcZFEf6DNq24KZuOFcOrGJeKoVGsV6QnV1wKThKKKpQtC2"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:07.310376"], ["updated_at", "2016-10-02 08:45:07.310376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$EWLYz2fv4GAD6taRXz94BuhT2Fmzg3PEgPPZycUkrR8x1cAlNQoRG"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:07.316565"], ["updated_at", "2016-10-02 08:45:07.316565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$wT6NvGW.aiLThv.87dw4euICZb41o4uGkogD9HPTXcmgf1B31VfDS"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:07.322928"], ["updated_at", "2016-10-02 08:45:07.322928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$AGurTBiR2ySfX5YI4trHN.cF4GRw0/DrAgZxsqg/jky7K8YF2M9oO"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:07.329012"], ["updated_at", "2016-10-02 08:45:07.329012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6c92aa4b-9937-4fa0-94b7-5f6dd2910213' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6c92aa4b-9937-4fa0-94b7-5f6dd2910213' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "6c92aa4b-9937-4fa0-94b7-5f6dd2910213"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:45:07.343693"], ["updated_at", "2016-10-02 08:45:07.343693"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-02 08:45:07.343693"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 15ms (Views: 13.1ms | ActiveRecord: 0.3ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$kdtR2AXmFzTz0uWHyjIejeWLQMkHxFiuaBvouuPxzE0mDjRPHdvBe"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:08.237536"], ["updated_at", "2016-10-02 08:45:08.237536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6c92aa4b-9937-4fa0-94b7-5f6dd2910213' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6c92aa4b-9937-4fa0-94b7-5f6dd2910213' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "6c92aa4b-9937-4fa0-94b7-5f6dd2910213"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:45:08.241458"], ["updated_at", "2016-10-02 08:45:08.241458"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-02 08:45:08.241458"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 28]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (0.2ms) Completed 200 OK in 12ms (Views: 6.1ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$uU150k0280oRhL6fsjQtlehzkUqFGz4bdOBQpkyo39./gTNG6Z3Ga"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:08.657787"], ["updated_at", "2016-10-02 08:45:08.657787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$g65K.ppwBuBhvpprUBEcCuI5sJSPNJTZUI70.4PumBjq25us0x.lq"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:08.675844"], ["updated_at", "2016-10-02 08:45:08.675844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6c92aa4b-9937-4fa0-94b7-5f6dd2910213' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6c92aa4b-9937-4fa0-94b7-5f6dd2910213' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "6c92aa4b-9937-4fa0-94b7-5f6dd2910213"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:45:08.680283"], ["updated_at", "2016-10-02 08:45:08.680283"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-02 08:45:08.680283"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$Qli78HEqcSB5xYdTyucaX.Co0YffKbpp97Jti7RkHLLPDQ6touuDu"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:09.185177"], ["updated_at", "2016-10-02 08:45:09.185177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"6c92aa4b-9937-4fa0-94b7-5f6dd2910213", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$tQ8eDrgCAHiNEI0VUBJuKOs6y1cOCbXet0B5.ikGsFCDgBX4MQfzS"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:09.198794"], ["updated_at", "2016-10-02 08:45:09.198794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"6c92aa4b-9937-4fa0-94b7-5f6dd2910213", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$a0XVTC3AuPqR/1FXOvpw6eCtJHVOcC/4/rRYl37qBa8M7RAJqogoW"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:09.213508"], ["updated_at", "2016-10-02 08:45:09.213508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"6c92aa4b-9937-4fa0-94b7-5f6dd2910213", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$JOLA3b5GjdViPdCXvIZTMuY7FGyft8wHPkPuNBAVJMLw8aMf.MZs."], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:09.226822"], ["updated_at", "2016-10-02 08:45:09.226822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"6c92aa4b-9937-4fa0-94b7-5f6dd2910213", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]] Completed 400 Bad Request in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$wJckWIiM3JGEzCMiHSeDveZN.sFLMq5qJ9N7Aoxn2VDg29GiTGqca"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:09.239924"], ["updated_at", "2016-10-02 08:45:09.239924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"params"=>{"plan"=>{"stripe_id"=>"6c92aa4b-9937-4fa0-94b7-5f6dd2910213", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]] Completed 400 Bad Request in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$4p5sHGn/0dky2kRX7mvLjeS3.E1FYRr12TIcgWVkEv5zcXONtjdI6"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:09.252842"], ["updated_at", "2016-10-02 08:45:09.252842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6c92aa4b-9937-4fa0-94b7-5f6dd2910213' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6c92aa4b-9937-4fa0-94b7-5f6dd2910213' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "6c92aa4b-9937-4fa0-94b7-5f6dd2910213"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:45:09.256679"], ["updated_at", "2016-10-02 08:45:09.256679"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:45:09.256679"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$/DagC2DqQhldvflILiXZQuuhGNOKFta3ieHxySIf8oxgmtdWLti2W"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:09.686703"], ["updated_at", "2016-10-02 08:45:09.686703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6c92aa4b-9937-4fa0-94b7-5f6dd2910213' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6c92aa4b-9937-4fa0-94b7-5f6dd2910213' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "6c92aa4b-9937-4fa0-94b7-5f6dd2910213"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:45:09.690929"], ["updated_at", "2016-10-02 08:45:09.690929"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:45:09.690929"], ["item_id", 5], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$wf6iEahL7TjI.DvQRbdS6eWdKRCAPdgzVDOLBxM2U2lhTZFP8oydu"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:10.088851"], ["updated_at", "2016-10-02 08:45:10.088851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6c92aa4b-9937-4fa0-94b7-5f6dd2910213' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6c92aa4b-9937-4fa0-94b7-5f6dd2910213' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "6c92aa4b-9937-4fa0-94b7-5f6dd2910213"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:45:10.092003"], ["updated_at", "2016-10-02 08:45:10.092003"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:45:10.092003"], ["item_id", 6], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$E3TZkmooXJZmWR.5qQXNNOstSzN4FsQbdRJO5PXKJFb0LJmAnvdYW"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:10.501479"], ["updated_at", "2016-10-02 08:45:10.501479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6c92aa4b-9937-4fa0-94b7-5f6dd2910213' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6c92aa4b-9937-4fa0-94b7-5f6dd2910213' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "6c92aa4b-9937-4fa0-94b7-5f6dd2910213"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:45:10.504789"], ["updated_at", "2016-10-02 08:45:10.504789"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:45:10.504789"], ["item_id", 7], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$UWBhfOzv0kGkAzPsJLRXBeGo/VF.L.aAtVdFhKqm9Z76VXiL.X3/C"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:10.888704"], ["updated_at", "2016-10-02 08:45:10.888704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6c92aa4b-9937-4fa0-94b7-5f6dd2910213' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6c92aa4b-9937-4fa0-94b7-5f6dd2910213' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "6c92aa4b-9937-4fa0-94b7-5f6dd2910213"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:45:10.892456"], ["updated_at", "2016-10-02 08:45:10.892456"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:45:10.892456"], ["item_id", 8], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$cFtq/S.UJZtLbSqrMseBK.zU/72gP8uwMqozhzdwzob.IS.Q6N25e"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:11.266553"], ["updated_at", "2016-10-02 08:45:11.266553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6c92aa4b-9937-4fa0-94b7-5f6dd2910213' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6c92aa4b-9937-4fa0-94b7-5f6dd2910213' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "6c92aa4b-9937-4fa0-94b7-5f6dd2910213"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:45:11.269632"], ["updated_at", "2016-10-02 08:45:11.269632"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:45:11.269632"], ["item_id", 9], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$cY2/zaIKjAZx68G39B1yaem5b6CGKvzQOldQ9aMpByEDnwmg/KK82"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:11.651416"], ["updated_at", "2016-10-02 08:45:11.651416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6c92aa4b-9937-4fa0-94b7-5f6dd2910213' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6c92aa4b-9937-4fa0-94b7-5f6dd2910213' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "6c92aa4b-9937-4fa0-94b7-5f6dd2910213"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:45:11.655458"], ["updated_at", "2016-10-02 08:45:11.655458"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:45:11.655458"], ["item_id", 10], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$H2i2kP9ivSr4rikL3NuVnOtcbysF5F.PuDz0UzRXSkrEJIbvOuME2"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:12.312262"], ["updated_at", "2016-10-02 08:45:12.312262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$Wf65Me/xGgW2v7fGTHQgY.4pzmg6xSs0EBHkJU3H1.ZfGZFszATme"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:12.319530"], ["updated_at", "2016-10-02 08:45:12.319530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$xt0k15nolAzJkPZnyDnxyu.76M82XxkUAKh1Fu.CQRvJUK8KUvgQ6"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:12.326453"], ["updated_at", "2016-10-02 08:45:12.326453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$PFF9NCOob61OkKQUrdD9IehFh5NZNwfA3GDHbYknD6ozwqE7ANdR2"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:12.332883"], ["updated_at", "2016-10-02 08:45:12.332883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$c61ceTiEKnPNAA2JSGVsEONjipvCMkoqXIhCbq3AXaAHaQNalfbSe"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:12.338486"], ["updated_at", "2016-10-02 08:45:12.338486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$a3naULnfdqUy99y8/Xhl9OV5lwRgfWgcIddhtD/9KycIFISJ33KhW"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:12.344269"], ["updated_at", "2016-10-02 08:45:12.344269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$rJWmji6EetVWQ0/4R2X6k.F/uNBaeUd.z23L/34bbr5SwuYREe6eu"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:12.349988"], ["updated_at", "2016-10-02 08:45:12.349988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$kJINL3aWEEf45jxd8Ba2T.fs4QJVcHn6md5otW0oTkbXYaTjpMnQ6"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:12.355460"], ["updated_at", "2016-10-02 08:45:12.355460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$xydgHz4kitafhMogDZz0Get6ed.eZoi.W9EC.3HRMjqilucmryCQy"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:12.362164"], ["updated_at", "2016-10-02 08:45:12.362164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '48aad7bd-496f-4181-b611-a378019816ae' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$xK6ElXHXZ7QZGeUbV2du0eRfeXU5OqfUCAxvOos9MJUXnX/L1LTLm"], ["stripe_id", "48aad7bd-496f-4181-b611-a378019816ae"], ["created_at", "2016-10-02 08:45:12.368720"], ["updated_at", "2016-10-02 08:45:12.368720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 14ms (Views: 8.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (1.8ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$khrXKqZc2dEo90mtUenB/eP1VgJMiLvQ./.p5XrpDWXsfFJu91ldO"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:19.323350"], ["updated_at", "2016-10-02 08:46:19.323350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$tw8DGP3Ja2mVmARbOdOj6erNVz0dVu1Ta3KAw9ai9Uc6NyDX6z9Xi"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:19.333412"], ["updated_at", "2016-10-02 08:46:19.333412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$rI7X.97f7Lxu6URSEDi0IeDJc89cjdU3Ea7/f3InkmVwcyKMhnKaO"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:19.349622"], ["updated_at", "2016-10-02 08:46:19.349622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 45ms (Views: 27.8ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$fcIYqWG4J4omdVqPvn6bQuVN2lUAn7hEkZ2.3ElShoZteSiqo/S/S"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:19.406130"], ["updated_at", "2016-10-02 08:46:19.406130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$cvC1HWBslIlaJzcg0q.NfOihBEpp9m8QJS1a5hVy5Dc9X1pXkgfBW"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:19.411453"], ["updated_at", "2016-10-02 08:46:19.411453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$RL7JHcr8G5yLIZ3hHnfON.YZyt8hvi7S1Yk273FA3PJBcUbaQBuFy"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:19.420774"], ["updated_at", "2016-10-02 08:46:19.420774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$eZqhipXciIXIaYXpcl8U7uxTHePHmmLyEcOixxpgKiy8UXDBbZS36"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:19.425835"], ["updated_at", "2016-10-02 08:46:19.425835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$fKwpT6f8f6OlPchUsJYYTOfIF/Zlmbt8Z19wlwDqEnpheh6h6APy."], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:19.432318"], ["updated_at", "2016-10-02 08:46:19.432318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$1GUUmq5OF12gnuKG78xtEe8AA2eXPXPVQxKlihH.uTJLlvA7ZxMTW"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:19.438715"], ["updated_at", "2016-10-02 08:46:19.438715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$AKv7XbxqRrziaa1ysJvizO.lcQ0DUtR9Mo5wM7BOf2KbJD60nqbke"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:19.444958"], ["updated_at", "2016-10-02 08:46:19.444958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$9hirSfYTIFhdKbGj5JZ9J.nI1Qz0bh9zkRralRhd4oLKwZ6/o7w0i"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:19.450493"], ["updated_at", "2016-10-02 08:46:19.450493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$hCnGT7bCnLIBTHn2ZvGNguLQ9AqWAmlzGgHaots4tZrjp1nxcwXi2"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:19.456167"], ["updated_at", "2016-10-02 08:46:19.456167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$ZBDbBRtnxT87UP/LeM8K2.SEu3UEauK10uov5pmRe/4TgzC0FYYPW"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:19.461468"], ["updated_at", "2016-10-02 08:46:19.461468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$pZg2yd3KlR.rSmEiVzZwieBkIcwBtjoNGfBB9e7YYEKEEKO19gsOu"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:19.466448"], ["updated_at", "2016-10-02 08:46:19.466448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$p6JZ5XutuXK2Y8kcIgb0C.Fw7n/XIBcPdiSIMFWpD.9chd5zDcxt6"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:19.471538"], ["updated_at", "2016-10-02 08:46:19.471538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$YJdpXe5MzANiOSlqW1QsKOajdN/PM3T9zxEFacKVZvCL.mcPo6d3S"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:19.476414"], ["updated_at", "2016-10-02 08:46:19.476414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$N4odWySv5QjtTbRRlOKzoel6hGa8ygfAjf3bGXXi4.xkWIpaPfCb2"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:19.482004"], ["updated_at", "2016-10-02 08:46:19.482004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$E1pIcMytv0I509vRYgHcBOZk8KNykOyZiA8TyEtlh1YfUib73ZKfS"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:19.487425"], ["updated_at", "2016-10-02 08:46:19.487425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$oWSnnQf9WfOEmxZxruNVp.5RB1HH8wmqsgQa.CN74sjNQavHumbNm"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:19.492763"], ["updated_at", "2016-10-02 08:46:19.492763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$mjFhOPSJUcwe01UFis7Mm.CiuvyNMMTye5.U466O2SpCis.7E0816"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:19.498032"], ["updated_at", "2016-10-02 08:46:19.498032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$EqQg7iAh7oN5oioPN8ObqOFjSHHJyQ8R8Sg8XEMzCAzpCbHG.fRBu"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:19.503274"], ["updated_at", "2016-10-02 08:46:19.503274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$S7HctS5Gqpp9BgSzrJMeCu2AitKNWPB9nyFVpuet1Kv9FjuuZ0YeC"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:19.508498"], ["updated_at", "2016-10-02 08:46:19.508498"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$QYJCaMOrLKDh1MsbBWlvIOmfYh.roZtI/sBBNOx2kgyH4eIVzILAK"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:19.513847"], ["updated_at", "2016-10-02 08:46:19.513847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$e1.fdgys20M0/KJGtPbD8Of7PQtaScXcQX4dNrQ3XcBr2Qx63CEiC"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:19.520134"], ["updated_at", "2016-10-02 08:46:19.520134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$izMsey7XecHBeCJxFfLWCO5UE4zTAuaxbmSJe88Ro7e/XUNWxnxUq"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:19.527584"], ["updated_at", "2016-10-02 08:46:19.527584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$YAYttxMLqEmrsjEd6uYtE.Gnng9uiiH7z3Nt/gTKlYGeaHy0oXp72"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:19.534296"], ["updated_at", "2016-10-02 08:46:19.534296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$jfz8p6DBS0ClrnD2tYaBK.TQbi.yeM.r9JyxTvOOrY.DILJCnGnuy"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:19.541309"], ["updated_at", "2016-10-02 08:46:19.541309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '907af14b-452a-4402-b804-f6369cd6ca4e' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '907af14b-452a-4402-b804-f6369cd6ca4e' LIMIT 1 SQL (0.7ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "907af14b-452a-4402-b804-f6369cd6ca4e"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:46:19.553474"], ["updated_at", "2016-10-02 08:46:19.553474"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-02 08:46:19.553474"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 13ms (Views: 10.9ms | ActiveRecord: 0.3ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$vfCVqWBFlwZXCRPBf.Ab4.p5DtCpC9Iiy/1gtfaoxC3aHpBUBHsGe"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:20.474810"], ["updated_at", "2016-10-02 08:46:20.474810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '907af14b-452a-4402-b804-f6369cd6ca4e' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '907af14b-452a-4402-b804-f6369cd6ca4e' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "907af14b-452a-4402-b804-f6369cd6ca4e"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:46:20.479327"], ["updated_at", "2016-10-02 08:46:20.479327"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-02 08:46:20.479327"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 28]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (0.2ms) Completed 200 OK in 9ms (Views: 5.2ms | ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$cNuos3hCwHv2V.jhDS/wtuCbVfAVDixKI3BCb00hNBMe4dYDGfBcq"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:20.897395"], ["updated_at", "2016-10-02 08:46:20.897395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$BiB5xlI3VavCflkLtMhbreF.qoQmcM/J5j0cpNYC416scSVE2TwLW"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:20.913780"], ["updated_at", "2016-10-02 08:46:20.913780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '907af14b-452a-4402-b804-f6369cd6ca4e' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '907af14b-452a-4402-b804-f6369cd6ca4e' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "907af14b-452a-4402-b804-f6369cd6ca4e"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:46:20.918149"], ["updated_at", "2016-10-02 08:46:20.918149"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-02 08:46:20.918149"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#edit as HTML Parameters: {"id"=>"3"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 30]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.4ms) Completed 200 OK in 10ms (Views: 7.2ms | ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$bI1RQ9QDfyH5zO3ztZPo5O706OJtIxe0.UWSfrLxDN2v4jIErju/u"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:21.330616"], ["updated_at", "2016-10-02 08:46:21.330616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"907af14b-452a-4402-b804-f6369cd6ca4e", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '907af14b-452a-4402-b804-f6369cd6ca4e' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '907af14b-452a-4402-b804-f6369cd6ca4e' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "907af14b-452a-4402-b804-f6369cd6ca4e"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["created_at", "2016-10-02 08:46:21.339367"], ["updated_at", "2016-10-02 08:46:21.339367"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "31"], ["created_at", "2016-10-02 08:46:21.339367"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/4 Completed 302 Found in 620ms (ActiveRecord: 1.2ms)  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$M11HxifsEQ/hMhA7CSfzzus2sweHocPgVxZypMOVwoEzkTdZRpLCW"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:21.962875"], ["updated_at", "2016-10-02 08:46:21.962875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"907af14b-452a-4402-b804-f6369cd6ca4e", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '907af14b-452a-4402-b804-f6369cd6ca4e' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '907af14b-452a-4402-b804-f6369cd6ca4e' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "907af14b-452a-4402-b804-f6369cd6ca4e"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["created_at", "2016-10-02 08:46:21.971705"], ["updated_at", "2016-10-02 08:46:21.971705"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "32"], ["created_at", "2016-10-02 08:46:21.971705"], ["item_id", 5], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/5 Completed 302 Found in 412ms (ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$UIP40Qakusr6Uvi0utuYD.wEafZ13AqJv//GCG7dmRu3rUD4372vC"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:22.391778"], ["updated_at", "2016-10-02 08:46:22.391778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"907af14b-452a-4402-b804-f6369cd6ca4e", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '907af14b-452a-4402-b804-f6369cd6ca4e' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '907af14b-452a-4402-b804-f6369cd6ca4e' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "907af14b-452a-4402-b804-f6369cd6ca4e"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["created_at", "2016-10-02 08:46:22.399986"], ["updated_at", "2016-10-02 08:46:22.399986"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "33"], ["created_at", "2016-10-02 08:46:22.399986"], ["item_id", 6], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/6 Completed 302 Found in 370ms (ActiveRecord: 1.2ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$ReviyrGYiNcCMCy/BuiDJeSORtHhfNM2DfqBlegNTmfAfcSBuFbKK"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:22.774801"], ["updated_at", "2016-10-02 08:46:22.774801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"907af14b-452a-4402-b804-f6369cd6ca4e", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]]  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '907af14b-452a-4402-b804-f6369cd6ca4e' LIMIT 1  (11.5ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.0ms) Completed 200 OK in 27ms (Views: 0.6ms | ActiveRecord: 12.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$v/Kg2WC6ZwlG76UChdHtZuCcLgzHqegAQRpR83c63L081bWar8Fva"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:22.812859"], ["updated_at", "2016-10-02 08:46:22.812859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"907af14b-452a-4402-b804-f6369cd6ca4e", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '907af14b-452a-4402-b804-f6369cd6ca4e' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$HJg.FiMVc00/crJnzo7y7.vcRIngXI9UnWDgqPCvDMvpPjYF0mefi"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:22.827522"], ["updated_at", "2016-10-02 08:46:22.827522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '907af14b-452a-4402-b804-f6369cd6ca4e' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '907af14b-452a-4402-b804-f6369cd6ca4e' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "907af14b-452a-4402-b804-f6369cd6ca4e"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:46:22.830659"], ["updated_at", "2016-10-02 08:46:22.830659"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:46:22.830659"], ["item_id", 7], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$IRso8q9hWs0h2A8m7HkvnOYtU9dA82YlWGKS3ETvxmUSjGsyPQ14."], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:23.209855"], ["updated_at", "2016-10-02 08:46:23.209855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '907af14b-452a-4402-b804-f6369cd6ca4e' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '907af14b-452a-4402-b804-f6369cd6ca4e' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "907af14b-452a-4402-b804-f6369cd6ca4e"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:46:23.213075"], ["updated_at", "2016-10-02 08:46:23.213075"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:46:23.213075"], ["item_id", 8], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"907af14b-452a-4402-b804-f6369cd6ca4e", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"8"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 37]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 8]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '907af14b-452a-4402-b804-f6369cd6ca4e' AND "tang_plans"."id" != 8) LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '907af14b-452a-4402-b804-f6369cd6ca4e' AND "tang_plans"."id" != 8) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/8 Completed 302 Found in 750ms (ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$.pJpjF/dldBfqiwYwiXFme3L5B9dJdl03k7iMwZKWqcCwr0P/.zrG"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:24.379276"], ["updated_at", "2016-10-02 08:46:24.379276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '907af14b-452a-4402-b804-f6369cd6ca4e' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '907af14b-452a-4402-b804-f6369cd6ca4e' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "907af14b-452a-4402-b804-f6369cd6ca4e"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:46:24.383170"], ["updated_at", "2016-10-02 08:46:24.383170"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "37"], ["created_at", "2016-10-02 08:46:24.383170"], ["item_id", 9], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"907af14b-452a-4402-b804-f6369cd6ca4e", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"9"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 38]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 9]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '907af14b-452a-4402-b804-f6369cd6ca4e' AND "tang_plans"."id" != 9) LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '907af14b-452a-4402-b804-f6369cd6ca4e' AND "tang_plans"."id" != 9) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/9 Completed 302 Found in 747ms (ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$J5nE.ztXnSulIjsvCpemPeMqdi59Oh9TGB9I83fxlOBiRLFez1drS"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:25.540977"], ["updated_at", "2016-10-02 08:46:25.540977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '907af14b-452a-4402-b804-f6369cd6ca4e' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '907af14b-452a-4402-b804-f6369cd6ca4e' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "907af14b-452a-4402-b804-f6369cd6ca4e"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:46:25.545233"], ["updated_at", "2016-10-02 08:46:25.545233"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "38"], ["created_at", "2016-10-02 08:46:25.545233"], ["item_id", 10], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"907af14b-452a-4402-b804-f6369cd6ca4e", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"10"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 39]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 10]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '907af14b-452a-4402-b804-f6369cd6ca4e' AND "tang_plans"."id" != 10) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$zTQ2k29tzlJRnHTFJUfnnO/jnSpZXATFIOqdtELvLko7oELuWbTg."], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:25.932773"], ["updated_at", "2016-10-02 08:46:25.932773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '907af14b-452a-4402-b804-f6369cd6ca4e' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '907af14b-452a-4402-b804-f6369cd6ca4e' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "907af14b-452a-4402-b804-f6369cd6ca4e"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:46:25.935912"], ["updated_at", "2016-10-02 08:46:25.935912"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "39"], ["created_at", "2016-10-02 08:46:25.935912"], ["item_id", 11], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"907af14b-452a-4402-b804-f6369cd6ca4e", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"11"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 40]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 11]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '907af14b-452a-4402-b804-f6369cd6ca4e' AND "tang_plans"."id" != 11) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 6ms (Views: 0.7ms | ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$Z1dshvfkzCnDERxwr8Mht.A62QfsA0qeAH4cF.wY/S5eoePY/oTBC"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:26.323110"], ["updated_at", "2016-10-02 08:46:26.323110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '907af14b-452a-4402-b804-f6369cd6ca4e' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '907af14b-452a-4402-b804-f6369cd6ca4e' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "907af14b-452a-4402-b804-f6369cd6ca4e"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:46:26.326174"], ["updated_at", "2016-10-02 08:46:26.326174"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "40"], ["created_at", "2016-10-02 08:46:26.326174"], ["item_id", 12], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"12"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 41]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 12]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 12], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 12\nstripe_id: 907af14b-452a-4402-b804-f6369cd6ca4e\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: \nhighlight: false\ncreated_at: 2016-10-02 08:46:26.326174000 Z\nupdated_at: 2016-10-02 08:46:26.326174000 Z\n"], ["whodunnit", "41"], ["created_at", "2016-10-02 08:46:26.691760"]] SQL (0.3ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 762ms (ActiveRecord: 1.0ms)  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$oWl2bva7ooxfB8d5d6aBV..58CvP65m5h1xsqIvXUBI0QbyzvC6XG"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:27.454187"], ["updated_at", "2016-10-02 08:46:27.454187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '907af14b-452a-4402-b804-f6369cd6ca4e' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '907af14b-452a-4402-b804-f6369cd6ca4e' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "907af14b-452a-4402-b804-f6369cd6ca4e"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:46:27.458033"], ["updated_at", "2016-10-02 08:46:27.458033"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "41"], ["created_at", "2016-10-02 08:46:27.458033"], ["item_id", 13], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"13"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 42]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 13]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 13], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 13\nstripe_id: 907af14b-452a-4402-b804-f6369cd6ca4e\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: \nhighlight: false\ncreated_at: 2016-10-02 08:46:27.458033000 Z\nupdated_at: 2016-10-02 08:46:27.458033000 Z\n"], ["whodunnit", "42"], ["created_at", "2016-10-02 08:46:27.862146"]] SQL (0.3ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 784ms (ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$LGQOVVn3NCj/jTt7sS4tHuwD9kPmVhVGQRIksjehp82L4b45gtnQi"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:28.648275"], ["updated_at", "2016-10-02 08:46:28.648275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$Ey00G2Fl8YrLA1uCpNmb6uQgsN2FYbUnXnSrO.UCJ5o2hLWTb1iOS"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:28.654547"], ["updated_at", "2016-10-02 08:46:28.654547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$BOtKwVaRHICWilmRdoB1UuJWC4MxYbprVc72xwcnKSASmyMcoFZU6"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:28.661488"], ["updated_at", "2016-10-02 08:46:28.661488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$3WpKdPpv3BuviE19Ez9bkueOZ9PYNuB.jv1p6Zm8SsJwl.lW/XjOq"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:28.667530"], ["updated_at", "2016-10-02 08:46:28.667530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$bmU24oR6NJ1rOeKe.VgqXOXn8edxSeu/LxVnLyGf.N4QZ86Wbd6Q2"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:28.672875"], ["updated_at", "2016-10-02 08:46:28.672875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$CSNpADpv8oKZSlAxFtqJjuFyQkE5POlG0wbb5PzKC1wrArWv/BuRC"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:28.678148"], ["updated_at", "2016-10-02 08:46:28.678148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$Xm.jbzx7FGgfTNegwjM6BeNSn.UCz0jpiu/QGhgX4paD9djhugZpm"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:28.683490"], ["updated_at", "2016-10-02 08:46:28.683490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$lFPsJmZ6/UQV.8nS03RS.OBjxW4.K0jCsbNEnb4nKXfdHD3Rcanbm"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:28.688448"], ["updated_at", "2016-10-02 08:46:28.688448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$/MSW0K5dVR1xGmci1v5lS.WBUh/m3mvBRP/Ba9IyZGipabvVcL/va"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:28.693717"], ["updated_at", "2016-10-02 08:46:28.693717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a55bf8d1-3cad-4031-94fd-012d8be806ce' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$PoIf3eGURZoAnbZT22dXKOLJwisV0iHuBe3c/5AKq4kokWHXd4SOe"], ["stripe_id", "a55bf8d1-3cad-4031-94fd-012d8be806ce"], ["created_at", "2016-10-02 08:46:28.698770"], ["updated_at", "2016-10-02 08:46:28.698770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 14ms (Views: 7.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$mLw2shNrrVtxKIKvlwB4I.Y5xLnufwpZozzg5YyHVk5i5rtJWMTCO"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:46.381097"], ["updated_at", "2016-10-02 08:47:46.381097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$wshYAllI37t6JDY.dDsgieoaLFrmrJ7Lq799YSToORy6O8SbyyakS"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:46.389350"], ["updated_at", "2016-10-02 08:47:46.389350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$hZBUUPIA8TFRY24dsWPmFefdC5IKY7uH.UtDQ3uv3VlbkakouCe8q"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:46.395562"], ["updated_at", "2016-10-02 08:47:46.395562"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 40ms (Views: 23.5ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$6ODZ.xQj2wc0aVlZmxdDbenYcNt/atkTps.ldHpdTCugoADQu6x2q"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:46.457693"], ["updated_at", "2016-10-02 08:47:46.457693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$A7ahvyCcOkMu8YeA8MmKgu6dTsgoYm6oO4j.jDz4WtVnkPqpvCZ46"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:46.464041"], ["updated_at", "2016-10-02 08:47:46.464041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$oi0VnoM1m0fcxNi69ukf6ueyW1IsqE5SY937F8rGjzu9WLXXKJtQO"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:46.472352"], ["updated_at", "2016-10-02 08:47:46.472352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$xDudJHk.293jZL1rBDzZ2e78aoqCQtr4EDK8jB75QbuBFl19zJA4C"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:46.478429"], ["updated_at", "2016-10-02 08:47:46.478429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$I.lgW3FvZXxDrmvjqk218OjzR9i/BgB5rYum6Bofi/CmIfEUAE68e"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:46.485576"], ["updated_at", "2016-10-02 08:47:46.485576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$idpZbQLA44pxzxq.o7e/Bu0psGglU2.ysgmMZhOLJ5F9wfKmrkMFm"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:46.492509"], ["updated_at", "2016-10-02 08:47:46.492509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$MhwHZSWO.w4XVZVlg/QH0u6.MlQmZBg6zVlMXXpjpofDL0RGzhMGK"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:46.498234"], ["updated_at", "2016-10-02 08:47:46.498234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$M6L6DD80BNBV898k4mkFquqTHIoFwORq8S56TyBxU90AO3UtCucFm"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:46.503059"], ["updated_at", "2016-10-02 08:47:46.503059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$XNSibQqXVco0RU62WiFOKuBdKagDiNIgL4LhRRfrwNWmLcmA3Ypvq"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:46.509263"], ["updated_at", "2016-10-02 08:47:46.509263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$76Pm17Ti0DC/u9Bn5lDzJufDQ/e67GC1Mt0sLmEL38UCNKIUeJnqG"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:46.515829"], ["updated_at", "2016-10-02 08:47:46.515829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$HbC.0C38K1iUUferj51dBuetM1p6Ae9nBFvmjZc1SH0rx0GcBvDBu"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:46.521720"], ["updated_at", "2016-10-02 08:47:46.521720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$Rw3sgWOsV3CJorTG6Sr6jeTerdaXg4B5EIDX03PzaOGbEvxFfeQDW"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:46.527618"], ["updated_at", "2016-10-02 08:47:46.527618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$w3TN.WmcDhBJ/92HIZ21M.WQ1m4n5fUngaVC2t97P.yvMY/sTuAQq"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:46.532813"], ["updated_at", "2016-10-02 08:47:46.532813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$9QKa6sJSJNOIpXqJc1tydO7WfvonFX/.vlV3Y8erllKF0Zg.mYIJm"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:46.538085"], ["updated_at", "2016-10-02 08:47:46.538085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$DYrzhimm.C2jYM9IpSKpuu5EjbDgQILusdpv7pjeOB6gS7hvyAtIe"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:46.544233"], ["updated_at", "2016-10-02 08:47:46.544233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$UMortHyWUn.NVtpGmm2eU.FGNxanqh/7jsh3JvzUVgcWDDhEvqOCa"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:46.551393"], ["updated_at", "2016-10-02 08:47:46.551393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$oaBmf7iVjrc3NWwXqsxql.NV0iSIqyj0.OWMge1KgZb4Z3Kpwra8a"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:46.557995"], ["updated_at", "2016-10-02 08:47:46.557995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$N8m1mij3rR84cPswzYS3LOBkXkylPGLOtC35xydt4v.Q7pbPkJ/Nq"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:46.564140"], ["updated_at", "2016-10-02 08:47:46.564140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$tcUUo8BP2I3ptcQ23Hf3rugVi9DEtxWxX1YFcNEWrNh9unyUnpef6"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:46.569480"], ["updated_at", "2016-10-02 08:47:46.569480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$EZ.hTJC1waMtGMqjO0x3MukPKXC7d6.p0c1Ov.zXJF5jSEB0CdHQa"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:46.574761"], ["updated_at", "2016-10-02 08:47:46.574761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$QEjTYq09s/74/c/VMIVpp.gTFR/lICtyifGY60G25ef5RkAwyUdEq"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:46.580019"], ["updated_at", "2016-10-02 08:47:46.580019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$VaLs6bj.35nGNk653GF.4uW92/Ss0NNZjYJKprGA0/zhjU3CXVpaO"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:46.586926"], ["updated_at", "2016-10-02 08:47:46.586926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$nCS3QREhsb9OlZZ4aQzU/.Ozc5oZQIDx87QOWbbqUnSaeSsLAm28W"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:46.592124"], ["updated_at", "2016-10-02 08:47:46.592124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$bf0Zj7TAMxPHqMy3Hh6ViucOo0SRXtRdtuONF2CTFN3BrDCREFLiy"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:46.598130"], ["updated_at", "2016-10-02 08:47:46.598130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6787badc-f950-44a6-9871-5b58006fd797' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6787badc-f950-44a6-9871-5b58006fd797' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "6787badc-f950-44a6-9871-5b58006fd797"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:47:46.610456"], ["updated_at", "2016-10-02 08:47:46.610456"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-02 08:47:46.610456"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 12ms (Views: 10.5ms | ActiveRecord: 0.3ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans"  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$CkLGz17XrsWhWJZh8fc6ZOW3MzIpbiyKgNB4vvPwyG44YtB4sai.m"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:47.527413"], ["updated_at", "2016-10-02 08:47:47.527413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6787badc-f950-44a6-9871-5b58006fd797' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6787badc-f950-44a6-9871-5b58006fd797' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "6787badc-f950-44a6-9871-5b58006fd797"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:47:47.531354"], ["updated_at", "2016-10-02 08:47:47.531354"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-02 08:47:47.531354"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 28]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (0.2ms) Completed 200 OK in 10ms (Views: 5.3ms | ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$VpSS8xZzwfMfcOmvztJrkuUV6tnP.nHgzOhWkIaU.8Mi7yoexa1dS"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:48.008874"], ["updated_at", "2016-10-02 08:47:48.008874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$sV5XQMrW64ch5tj25DPc/euvV3qXlB.I.ufln19WsrrNz8G54a/9K"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:48.028963"], ["updated_at", "2016-10-02 08:47:48.028963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6787badc-f950-44a6-9871-5b58006fd797' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6787badc-f950-44a6-9871-5b58006fd797' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "6787badc-f950-44a6-9871-5b58006fd797"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:47:48.033395"], ["updated_at", "2016-10-02 08:47:48.033395"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-02 08:47:48.033395"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#edit as HTML Parameters: {"id"=>"3"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 30]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 9ms (Views: 5.9ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$ACxJsrx1AU8.mZ4yAwcM8.eIIF27vwROvVLO4k/MOxamQvq9KelOy"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:48.498238"], ["updated_at", "2016-10-02 08:47:48.498238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"6787badc-f950-44a6-9871-5b58006fd797", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6787badc-f950-44a6-9871-5b58006fd797' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6787badc-f950-44a6-9871-5b58006fd797' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "6787badc-f950-44a6-9871-5b58006fd797"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["created_at", "2016-10-02 08:47:48.508293"], ["updated_at", "2016-10-02 08:47:48.508293"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "31"], ["created_at", "2016-10-02 08:47:48.508293"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/4 Completed 302 Found in 410ms (ActiveRecord: 1.4ms)  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$cCDOlb8jEIiFeE1vaJSA7ucXzI9AnaqoopkyXxPPREHbaXShurhle"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:48.921549"], ["updated_at", "2016-10-02 08:47:48.921549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"6787badc-f950-44a6-9871-5b58006fd797", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6787badc-f950-44a6-9871-5b58006fd797' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6787badc-f950-44a6-9871-5b58006fd797' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "6787badc-f950-44a6-9871-5b58006fd797"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["created_at", "2016-10-02 08:47:48.931253"], ["updated_at", "2016-10-02 08:47:48.931253"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "32"], ["created_at", "2016-10-02 08:47:48.931253"], ["item_id", 5], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/5 Completed 302 Found in 423ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$nMvzhvvo.hr7WE33pFEPPeS4SCqt.zUv76biyRPYWBcZRFlcqFu22"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:49.357943"], ["updated_at", "2016-10-02 08:47:49.357943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"6787badc-f950-44a6-9871-5b58006fd797", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]]  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6787badc-f950-44a6-9871-5b58006fd797' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6787badc-f950-44a6-9871-5b58006fd797' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "6787badc-f950-44a6-9871-5b58006fd797"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["created_at", "2016-10-02 08:47:49.366709"], ["updated_at", "2016-10-02 08:47:49.366709"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "33"], ["created_at", "2016-10-02 08:47:49.366709"], ["item_id", 6], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/6 Completed 302 Found in 410ms (ActiveRecord: 1.2ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."id" DESC LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$Gi58pTGPgA1aabX46X9KWO/2sF/THBriFP/DeP4zL8IBXOKcqse0W"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:49.781024"], ["updated_at", "2016-10-02 08:47:49.781024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"6787badc-f950-44a6-9871-5b58006fd797", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6787badc-f950-44a6-9871-5b58006fd797' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.0ms) Completed 200 OK in 10ms (Views: 0.5ms | ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$/oQgEY9dDiHzA3ynP5Eb7OruaxzMx1zD3IcdPIKU/2AJxxRJbXST6"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:49.801457"], ["updated_at", "2016-10-02 08:47:49.801457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"6787badc-f950-44a6-9871-5b58006fd797", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6787badc-f950-44a6-9871-5b58006fd797' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.0ms) Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$SbSOhO/quSWbpdas.HZP.euLEO1A.ZBbuXC7hVO7ZX6QdrdQTqeMa"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:49.816275"], ["updated_at", "2016-10-02 08:47:49.816275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6787badc-f950-44a6-9871-5b58006fd797' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6787badc-f950-44a6-9871-5b58006fd797' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "6787badc-f950-44a6-9871-5b58006fd797"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:47:49.819721"], ["updated_at", "2016-10-02 08:47:49.819721"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:47:49.819721"], ["item_id", 7], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$TSr1SdfW8N0/r6coFibIHupBDS7B2BvR5SmQS31KIeyh6ybBzMFCa"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:50.402467"], ["updated_at", "2016-10-02 08:47:50.402467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6787badc-f950-44a6-9871-5b58006fd797' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6787badc-f950-44a6-9871-5b58006fd797' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "6787badc-f950-44a6-9871-5b58006fd797"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:47:50.406383"], ["updated_at", "2016-10-02 08:47:50.406383"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:47:50.406383"], ["item_id", 8], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"6787badc-f950-44a6-9871-5b58006fd797", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"8"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 37]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 8]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '6787badc-f950-44a6-9871-5b58006fd797' AND "tang_plans"."id" != 8) LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '6787badc-f950-44a6-9871-5b58006fd797' AND "tang_plans"."id" != 8) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/8 Completed 302 Found in 757ms (ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$Zk/L6nT1k4qOOn1Me1QQieUZnZWvP6IZbw6wQpCx7SC4KwGMb6bj2"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:51.548488"], ["updated_at", "2016-10-02 08:47:51.548488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6787badc-f950-44a6-9871-5b58006fd797' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6787badc-f950-44a6-9871-5b58006fd797' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "6787badc-f950-44a6-9871-5b58006fd797"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:47:51.552378"], ["updated_at", "2016-10-02 08:47:51.552378"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "37"], ["created_at", "2016-10-02 08:47:51.552378"], ["item_id", 9], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"6787badc-f950-44a6-9871-5b58006fd797", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"9"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 38]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 9]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '6787badc-f950-44a6-9871-5b58006fd797' AND "tang_plans"."id" != 9) LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '6787badc-f950-44a6-9871-5b58006fd797' AND "tang_plans"."id" != 9) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/9 Completed 302 Found in 722ms (ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$PNhRHFx7XU.CVbsAA3KlEekylOja0D/ydeiHXp1T/B0LQ8oiJdKM."], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:52.868898"], ["updated_at", "2016-10-02 08:47:52.868898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6787badc-f950-44a6-9871-5b58006fd797' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6787badc-f950-44a6-9871-5b58006fd797' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "6787badc-f950-44a6-9871-5b58006fd797"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:47:52.872351"], ["updated_at", "2016-10-02 08:47:52.872351"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "38"], ["created_at", "2016-10-02 08:47:52.872351"], ["item_id", 10], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"6787badc-f950-44a6-9871-5b58006fd797", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"10"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 39]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 10]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '6787badc-f950-44a6-9871-5b58006fd797' AND "tang_plans"."id" != 10) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 6ms (Views: 0.7ms | ActiveRecord: 0.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$l2DzqkdJ0HmPKMbE8o3O..zsrw1R2e5YHN6HiHTATGbmQabTaqpiy"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:53.304936"], ["updated_at", "2016-10-02 08:47:53.304936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6787badc-f950-44a6-9871-5b58006fd797' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6787badc-f950-44a6-9871-5b58006fd797' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "6787badc-f950-44a6-9871-5b58006fd797"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:47:53.308223"], ["updated_at", "2016-10-02 08:47:53.308223"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "39"], ["created_at", "2016-10-02 08:47:53.308223"], ["item_id", 11], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"6787badc-f950-44a6-9871-5b58006fd797", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"11"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 40]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 11]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '6787badc-f950-44a6-9871-5b58006fd797' AND "tang_plans"."id" != 11) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$.pRpZ3g7LfbxbLFX.EW5meGuNFjnQXdMyDMnPunjjVxrAZUGwCfmy"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:53.915913"], ["updated_at", "2016-10-02 08:47:53.915913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6787badc-f950-44a6-9871-5b58006fd797' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6787badc-f950-44a6-9871-5b58006fd797' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "6787badc-f950-44a6-9871-5b58006fd797"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:47:53.919040"], ["updated_at", "2016-10-02 08:47:53.919040"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "40"], ["created_at", "2016-10-02 08:47:53.919040"], ["item_id", 12], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"12"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 41]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 12]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 12], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 12\nstripe_id: 6787badc-f950-44a6-9871-5b58006fd797\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: \nhighlight: false\ncreated_at: 2016-10-02 08:47:53.919040000 Z\nupdated_at: 2016-10-02 08:47:53.919040000 Z\n"], ["whodunnit", "41"], ["created_at", "2016-10-02 08:47:54.301364"]] SQL (0.3ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 805ms (ActiveRecord: 1.0ms)  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$gNQAZrq0QQSgjASplFmXlOKDpMhUD0Btaymsf3OuX5d05bBL7n8/e"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:55.108532"], ["updated_at", "2016-10-02 08:47:55.108532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6787badc-f950-44a6-9871-5b58006fd797' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6787badc-f950-44a6-9871-5b58006fd797' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "6787badc-f950-44a6-9871-5b58006fd797"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:47:55.111813"], ["updated_at", "2016-10-02 08:47:55.111813"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "41"], ["created_at", "2016-10-02 08:47:55.111813"], ["item_id", 13], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"13"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 42]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 13]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 13], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 13\nstripe_id: 6787badc-f950-44a6-9871-5b58006fd797\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: \nhighlight: false\ncreated_at: 2016-10-02 08:47:55.111813000 Z\nupdated_at: 2016-10-02 08:47:55.111813000 Z\n"], ["whodunnit", "42"], ["created_at", "2016-10-02 08:47:55.497732"]] SQL (0.3ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 742ms (ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$dtL8AaYshraNNdayEn00sO76.zPyE0mAHXbus9gOre1yOUd0pWT/q"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:56.243737"], ["updated_at", "2016-10-02 08:47:56.243737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (2.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$ZavHiAhUA.CrWMffxvj.R.kY2YusQO/22uNhzyDpfnBGlSuDbXifO"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:56.250116"], ["updated_at", "2016-10-02 08:47:56.250116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$tjLoRSHIQ1jHRjlZCELTUuQFvt/N9CbqAV.zuMphuIrUiM5hw1VNS"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:56.259341"], ["updated_at", "2016-10-02 08:47:56.259341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$AfveNUcabr46yAlbiFeCqOc2uEfJ/2XI4oVgFG2Q49ViXkPykH/M2"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:56.265134"], ["updated_at", "2016-10-02 08:47:56.265134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$LvEz9eZzXtxhYg0Eq9XQoueqUMUoBH7SIIA8IdUkcYWPGDOlf6OQ6"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:56.270107"], ["updated_at", "2016-10-02 08:47:56.270107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$Jsbx7vaniOpcXKY9ZnUMzOb.udmYP2gz0ErdyIFepPhzsicqr34kS"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:56.276015"], ["updated_at", "2016-10-02 08:47:56.276015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$FeUDX3gahOb2nc9sIy.RrOMJrpWJMZcb.97Wpq/R3IJqwcplgZQk."], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:56.281779"], ["updated_at", "2016-10-02 08:47:56.281779"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$daud9WTQ2wKUnk1Welp6muna3DdggMdJgWHK9y3Qpumgd/I14GFYS"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:56.287633"], ["updated_at", "2016-10-02 08:47:56.287633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$VPuIFCx8zosPMhUPGG7aVO3XekskuekjygLCbAm7TfnddoqsGBOky"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:56.293635"], ["updated_at", "2016-10-02 08:47:56.293635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'b9e1c39c-a71d-4ad1-93d5-5ee078ea571a' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$mYN/.1YzesSxXPHJ9bIkEeR/BGhYGjkhIj24QQRkLZuDiQmwS2C5G"], ["stripe_id", "b9e1c39c-a71d-4ad1-93d5-5ee078ea571a"], ["created_at", "2016-10-02 08:47:56.299003"], ["updated_at", "2016-10-02 08:47:56.299003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 15ms (Views: 9.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 04:47:59 -0400 Processing by Tang::Admin::PlansController#new as HTML Completed 401 Unauthorized in 18ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 04:47:59 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.2ms) Rendered devise/sessions/new.html.erb within layouts/application (25.9ms) Completed 200 OK in 297ms (Views: 293.2ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 04:48:00 -0400 Processing by Tang::Admin::PlansController#new as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 04:48:00 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.5ms) Rendered devise/sessions/new.html.erb within layouts/application (3.0ms) Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 04:48:00 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 04:48:00 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.2ms) Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 04:48:00 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 04:48:00 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.2ms) Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$P4XSMkj9bRMfuhuWVZcPke18kn9yyWSmDWHbq7PL2FLRxBdySZaSi"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:07.479090"], ["updated_at", "2016-10-02 08:50:07.479090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$etdtgUg8P8Lbt7B0xqq7GuVC9H7ZXZ8AG7IohNZeXFadFx89fcIO6"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:07.487661"], ["updated_at", "2016-10-02 08:50:07.487661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$2js17/wYtVqMXevxg9V9vOfkfMq8PZbJ01T5mbsXXPlAJmcR.3rpO"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:07.493767"], ["updated_at", "2016-10-02 08:50:07.493767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 47ms (Views: 25.2ms | ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$.VUoAqy1DoPqdvX00Tl2GOYndHYNFPeTia4d6iT2v9q.wjDbOhomq"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:07.562133"], ["updated_at", "2016-10-02 08:50:07.562133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$v2Ie.q1bopZ3/plDVz6shuwR2wwYInLUKlNlWMB/77Rx85iYaKMOm"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:07.569213"], ["updated_at", "2016-10-02 08:50:07.569213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$tL291e2KQf9KJLnmFzrwUeUEbwQj.SRrlUttWJ0CoyPBAJP8v1vVi"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:07.578548"], ["updated_at", "2016-10-02 08:50:07.578548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$DvT61zRZFW1P63/08FZQI.k8wh07nXw80688fcXDVec/D18ao8npO"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:07.585458"], ["updated_at", "2016-10-02 08:50:07.585458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$6kG0uygYl0MU3rE6RhREfO9.y4pky3/XYzEaLKucP9du0sudzyqEC"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:07.592181"], ["updated_at", "2016-10-02 08:50:07.592181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$yHlB085QhMf1j3M56XbpB.AAcJkr8Ug5XPAuRsJbGo667S54Lt7V."], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:07.599039"], ["updated_at", "2016-10-02 08:50:07.599039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$okJmhthTLUL0HQSlJkotiuSzBVIJ5ECKefIn1VLkpDJ6gSR9Gkd6W"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:07.605058"], ["updated_at", "2016-10-02 08:50:07.605058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$9i0ZUdqBbPx0CJBgkRi/Gee7aX/X2TZpLF3c96eYNU.dQaHSvEzBu"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:07.610499"], ["updated_at", "2016-10-02 08:50:07.610499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$T1oTCamztFqvuwrWZtdZWOuE46sNKsFvAGOh92275welcEumnAGhi"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:07.617436"], ["updated_at", "2016-10-02 08:50:07.617436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$n6QMsGvqoROv/GK/B.bpy.yleAr7jMwPRUCrKFYlsjona0PeCF6hO"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:07.622855"], ["updated_at", "2016-10-02 08:50:07.622855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$yGHGvEmU9Z4O47BT.zyA4ezD8DzLjjWL9aS2A5h1m8e5qAABVFdmS"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:07.629076"], ["updated_at", "2016-10-02 08:50:07.629076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$AwBVYduU5iMo9dG7Bg6oWefOr.yR2o61tZPKaH9O49IWNQuUwBX6a"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:07.634648"], ["updated_at", "2016-10-02 08:50:07.634648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$bPZ8xEO2rzo0S6c/sJ4kTeZEMs23RBRthzQt0V6Uf54TCK9glyurK"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:07.639918"], ["updated_at", "2016-10-02 08:50:07.639918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$loo6.zLal5isIYhHVWreAeuBbbrNv7q2E8vSOwoDXUKgwH83Wpx.S"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:07.645354"], ["updated_at", "2016-10-02 08:50:07.645354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$QCqT7drS72qWyN/R47jRS.tXBaxSsd41TdgPe1WOFjYnn.kHTr3MC"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:07.650790"], ["updated_at", "2016-10-02 08:50:07.650790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$CrNqodCXWrjIXqBQenD4geKZkx9W9WT76D0hwU3m6xhbBSEhe6/t6"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:07.656016"], ["updated_at", "2016-10-02 08:50:07.656016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$85i5rrlV3gl0C0MpN4r.ueSJ.Rsm7271AXr0CKy97v8Pg5xTaV9xK"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:07.661304"], ["updated_at", "2016-10-02 08:50:07.661304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$xvYn9TwZknx5KkORYvAd8O/iKJvbfRqR4uOmTMjpaKb9QHkdw7AWK"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:07.666495"], ["updated_at", "2016-10-02 08:50:07.666495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$iy.qcIMSu7p/yJIG14zlx./TSxAw/wk5HmiH5gMPgawqNJl0AbcUm"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:07.673264"], ["updated_at", "2016-10-02 08:50:07.673264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$u90a7e4XDJPpKShIjFC8e.cgIsMfETbCnCGorpWqsWLBr8OXljI5e"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:07.678866"], ["updated_at", "2016-10-02 08:50:07.678866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$poJhmJ7uwydOJh2fTe8izuCNuXFEAVv3Ew.1r43h03Jo53rOmBISe"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:07.684466"], ["updated_at", "2016-10-02 08:50:07.684466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$sqQnemUqllQZWBKILKvToeQajkm9sSICGQUulgRHrlNFWz6z3xCJu"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:07.690687"], ["updated_at", "2016-10-02 08:50:07.690687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$v.oalomkKXRuULitH5BWVOoXX71MkRJItzMs8rm5RUafPiZYJ8F2."], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:07.696794"], ["updated_at", "2016-10-02 08:50:07.696794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$Md3Q8uMhg44EzAmko5deHeXxFLSR1Q6mEQ.7Ri8g6c/wbZ7qDdAZa"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:07.704443"], ["updated_at", "2016-10-02 08:50:07.704443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8fef1f4-d107-4ee7-86de-613a5c173a33' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8fef1f4-d107-4ee7-86de-613a5c173a33' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "b8fef1f4-d107-4ee7-86de-613a5c173a33"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:50:07.717455"], ["updated_at", "2016-10-02 08:50:07.717455"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-02 08:50:07.717455"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 15ms (Views: 12.7ms | ActiveRecord: 0.3ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans"  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$O9MOQ1e.oZ1UDWDRMe/T2upSnhvgoqptGCK7eL4gXbbzL5pipnudC"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:08.673389"], ["updated_at", "2016-10-02 08:50:08.673389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8fef1f4-d107-4ee7-86de-613a5c173a33' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8fef1f4-d107-4ee7-86de-613a5c173a33' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "b8fef1f4-d107-4ee7-86de-613a5c173a33"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:50:08.676989"], ["updated_at", "2016-10-02 08:50:08.676989"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-02 08:50:08.676989"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 28]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (0.2ms) Completed 200 OK in 10ms (Views: 5.8ms | ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$Xx/wilgrtG5j52URR/BXx./th8yAkcahN5xyyWiz7zqlaHzuUqq/O"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:09.103577"], ["updated_at", "2016-10-02 08:50:09.103577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.4ms) Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$FcsOdOCm.CSNhjZ5qCQ4C.ASYfCk2Tj4BAHVtseRt2ch9pasAIiJi"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:09.120919"], ["updated_at", "2016-10-02 08:50:09.120919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8fef1f4-d107-4ee7-86de-613a5c173a33' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8fef1f4-d107-4ee7-86de-613a5c173a33' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "b8fef1f4-d107-4ee7-86de-613a5c173a33"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:50:09.124464"], ["updated_at", "2016-10-02 08:50:09.124464"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-02 08:50:09.124464"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#edit as HTML Parameters: {"id"=>"3"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 30]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.2ms) Completed 200 OK in 10ms (Views: 6.9ms | ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$B4yynRAgzEH6e69oE3P.heSFpq3GrvP4ktT5RWQN4Elt7esx5WdlS"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:09.516048"], ["updated_at", "2016-10-02 08:50:09.516048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"b8fef1f4-d107-4ee7-86de-613a5c173a33", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8fef1f4-d107-4ee7-86de-613a5c173a33' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8fef1f4-d107-4ee7-86de-613a5c173a33' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "b8fef1f4-d107-4ee7-86de-613a5c173a33"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["created_at", "2016-10-02 08:50:09.525816"], ["updated_at", "2016-10-02 08:50:09.525816"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "31"], ["created_at", "2016-10-02 08:50:09.525816"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/4 Completed 302 Found in 423ms (ActiveRecord: 1.2ms)  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$srFboPq.sMBjuaE8cXEdJOjU0G7KiaeRdZEE7WzJZl1AOr1WUanIC"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:09.952240"], ["updated_at", "2016-10-02 08:50:09.952240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"b8fef1f4-d107-4ee7-86de-613a5c173a33", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8fef1f4-d107-4ee7-86de-613a5c173a33' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8fef1f4-d107-4ee7-86de-613a5c173a33' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "b8fef1f4-d107-4ee7-86de-613a5c173a33"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["created_at", "2016-10-02 08:50:09.960658"], ["updated_at", "2016-10-02 08:50:09.960658"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "32"], ["created_at", "2016-10-02 08:50:09.960658"], ["item_id", 5], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/5 Completed 302 Found in 373ms (ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$HTXCS4pt2csSC4ESbM1WBeOYz0MDR51oAylAGOEpMzbmuDt3FLQXi"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:10.338244"], ["updated_at", "2016-10-02 08:50:10.338244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"b8fef1f4-d107-4ee7-86de-613a5c173a33", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8fef1f4-d107-4ee7-86de-613a5c173a33' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8fef1f4-d107-4ee7-86de-613a5c173a33' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "b8fef1f4-d107-4ee7-86de-613a5c173a33"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["created_at", "2016-10-02 08:50:10.346899"], ["updated_at", "2016-10-02 08:50:10.346899"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "33"], ["created_at", "2016-10-02 08:50:10.346899"], ["item_id", 6], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/6 Completed 302 Found in 498ms (ActiveRecord: 1.3ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$PpbdadA1SG2fxHZxBqmhXer44d9LAmMOa20TFa5a2VIFWDuqDEQjm"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:10.851001"], ["updated_at", "2016-10-02 08:50:10.851001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"b8fef1f4-d107-4ee7-86de-613a5c173a33", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8fef1f4-d107-4ee7-86de-613a5c173a33' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.1ms) Completed 200 OK in 11ms (Views: 0.6ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$G/yM8k1h5ybCmzriIFayz.ahQWw9SU.2zYmMaAfxw/o4F15BPvEDm"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:10.872255"], ["updated_at", "2016-10-02 08:50:10.872255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"b8fef1f4-d107-4ee7-86de-613a5c173a33", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8fef1f4-d107-4ee7-86de-613a5c173a33' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.0ms) Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$FjD2QSK4JoyCp/U5TVzn1eUCgHhFlQqpYOUNt6M/ZOjqQ96lI338G"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:10.887417"], ["updated_at", "2016-10-02 08:50:10.887417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8fef1f4-d107-4ee7-86de-613a5c173a33' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8fef1f4-d107-4ee7-86de-613a5c173a33' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "b8fef1f4-d107-4ee7-86de-613a5c173a33"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:50:10.890645"], ["updated_at", "2016-10-02 08:50:10.890645"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:50:10.890645"], ["item_id", 7], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$0gse0pQdsQrX7gL8wLaFy.DdosTdRHuIONhRiDmGoaRpn1kDwAYJq"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:11.267974"], ["updated_at", "2016-10-02 08:50:11.267974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8fef1f4-d107-4ee7-86de-613a5c173a33' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8fef1f4-d107-4ee7-86de-613a5c173a33' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "b8fef1f4-d107-4ee7-86de-613a5c173a33"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:50:11.271211"], ["updated_at", "2016-10-02 08:50:11.271211"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 08:50:11.271211"], ["item_id", 8], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"b8fef1f4-d107-4ee7-86de-613a5c173a33", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"8"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 37]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 8]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'b8fef1f4-d107-4ee7-86de-613a5c173a33' AND "tang_plans"."id" != 8) LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'b8fef1f4-d107-4ee7-86de-613a5c173a33' AND "tang_plans"."id" != 8) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/8 Completed 302 Found in 729ms (ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$Gxorb71YxKYy1Y4CUheUXOa7O2JUJhtuGfDcQaVCILmQ.WswhofQy"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:12.378738"], ["updated_at", "2016-10-02 08:50:12.378738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8fef1f4-d107-4ee7-86de-613a5c173a33' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8fef1f4-d107-4ee7-86de-613a5c173a33' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "b8fef1f4-d107-4ee7-86de-613a5c173a33"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:50:12.382261"], ["updated_at", "2016-10-02 08:50:12.382261"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "37"], ["created_at", "2016-10-02 08:50:12.382261"], ["item_id", 9], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"b8fef1f4-d107-4ee7-86de-613a5c173a33", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"9"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 38]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 9]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'b8fef1f4-d107-4ee7-86de-613a5c173a33' AND "tang_plans"."id" != 9) LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'b8fef1f4-d107-4ee7-86de-613a5c173a33' AND "tang_plans"."id" != 9) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/9 Completed 302 Found in 799ms (ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$KMBCe/up.X5wAC7ndzm4d.1E.mQ4DqgfUt/Ge5Va02qQS7WJv/F5m"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:13.634922"], ["updated_at", "2016-10-02 08:50:13.634922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8fef1f4-d107-4ee7-86de-613a5c173a33' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8fef1f4-d107-4ee7-86de-613a5c173a33' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "b8fef1f4-d107-4ee7-86de-613a5c173a33"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:50:13.638394"], ["updated_at", "2016-10-02 08:50:13.638394"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "38"], ["created_at", "2016-10-02 08:50:13.638394"], ["item_id", 10], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"b8fef1f4-d107-4ee7-86de-613a5c173a33", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"10"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 39]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 10]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'b8fef1f4-d107-4ee7-86de-613a5c173a33' AND "tang_plans"."id" != 10) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 6ms (Views: 0.6ms | ActiveRecord: 0.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$UL.vqmgv7y8p8rttHc7UA.QbdwEk/lGM9mktReHFour23yDzgOVaq"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:14.028528"], ["updated_at", "2016-10-02 08:50:14.028528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8fef1f4-d107-4ee7-86de-613a5c173a33' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8fef1f4-d107-4ee7-86de-613a5c173a33' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "b8fef1f4-d107-4ee7-86de-613a5c173a33"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:50:14.032369"], ["updated_at", "2016-10-02 08:50:14.032369"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "39"], ["created_at", "2016-10-02 08:50:14.032369"], ["item_id", 11], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"b8fef1f4-d107-4ee7-86de-613a5c173a33", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"11"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 40]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 11]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'b8fef1f4-d107-4ee7-86de-613a5c173a33' AND "tang_plans"."id" != 11) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 5ms (Views: 0.7ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$BSn30PrpU5NfV0EgVv06jOXnyURcdrVxjs.4AFka9Wh5yZXK3aFqe"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:14.517551"], ["updated_at", "2016-10-02 08:50:14.517551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8fef1f4-d107-4ee7-86de-613a5c173a33' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8fef1f4-d107-4ee7-86de-613a5c173a33' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "b8fef1f4-d107-4ee7-86de-613a5c173a33"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:50:14.520727"], ["updated_at", "2016-10-02 08:50:14.520727"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "40"], ["created_at", "2016-10-02 08:50:14.520727"], ["item_id", 12], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"12"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 41]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 12]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 12], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 12\nstripe_id: b8fef1f4-d107-4ee7-86de-613a5c173a33\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: \nhighlight: false\ncreated_at: 2016-10-02 08:50:14.520727000 Z\nupdated_at: 2016-10-02 08:50:14.520727000 Z\n"], ["whodunnit", "41"], ["created_at", "2016-10-02 08:50:14.912129"]] SQL (0.3ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 758ms (ActiveRecord: 1.0ms)  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$8Ug3oNhzVLweuM3fprx0gO5xJde9CbqVooKj7vonKdOf6yqGPQa9m"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:15.672299"], ["updated_at", "2016-10-02 08:50:15.672299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8fef1f4-d107-4ee7-86de-613a5c173a33' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8fef1f4-d107-4ee7-86de-613a5c173a33' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "b8fef1f4-d107-4ee7-86de-613a5c173a33"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 08:50:15.675259"], ["updated_at", "2016-10-02 08:50:15.675259"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "41"], ["created_at", "2016-10-02 08:50:15.675259"], ["item_id", 13], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"13"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 42]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 13]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 13], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 13\nstripe_id: b8fef1f4-d107-4ee7-86de-613a5c173a33\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: \nhighlight: false\ncreated_at: 2016-10-02 08:50:15.675259000 Z\nupdated_at: 2016-10-02 08:50:15.675259000 Z\n"], ["whodunnit", "42"], ["created_at", "2016-10-02 08:50:16.340255"]] SQL (0.3ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 858ms (ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$FxNuWkr3NDVSP64d97jTJuSiWd9zhEEFVWQmjK3ydy20gLWWC/FbO"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:17.202283"], ["updated_at", "2016-10-02 08:50:17.202283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$ghMbm98ULN/uHWQPMGo5SuLTwyc3QlqJZSPbG77MAC/ernJopDDwy"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:17.208513"], ["updated_at", "2016-10-02 08:50:17.208513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$5LSrZBmvZ3Whe9KWfTAbceeyZAO0lTt2rLYod7tbYi/clGJZaPv76"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:17.214497"], ["updated_at", "2016-10-02 08:50:17.214497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$HjYnidj8qisH4Y4ZrIEMaer.Cn2UwnQpQfWvuZFKFK73BAQh1e./W"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:17.219946"], ["updated_at", "2016-10-02 08:50:17.219946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$HIzAZOEEGAgvd1FxvLbLQeKxiAyHmf6YwPoyp9oEtbLV6.3ZGw5AG"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:17.225637"], ["updated_at", "2016-10-02 08:50:17.225637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$ipobuBDXXVs/DO/oDnHNM.vSJLMBnA1kS5usqHdjBBWGlkbT9B/gq"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:17.230756"], ["updated_at", "2016-10-02 08:50:17.230756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$cVQigRzAf9AJP28fgATvyu7MDhlxCOOiy5gwiYd9uMluyCv9xdODO"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:17.236669"], ["updated_at", "2016-10-02 08:50:17.236669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$U6puugJgghNmpmtz1kSVE.n.Cnnk8kI99WFGp3PmO5vRIxDDWhGgm"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:17.241963"], ["updated_at", "2016-10-02 08:50:17.241963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$C0VSV6eDHQSNz4wl0k131uXCOKD70B.ltNh.ORNBLotTP55rGbtNC"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:17.247711"], ["updated_at", "2016-10-02 08:50:17.247711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '3f4d0908-7863-48b3-a2f9-74c27ea4e2c2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$l20SSX64sMnLVi1d1eyk/Ofe1PCV1WdFz89Pvp2KI.RkTYI9HS/nu"], ["stripe_id", "3f4d0908-7863-48b3-a2f9-74c27ea4e2c2"], ["created_at", "2016-10-02 08:50:17.253187"], ["updated_at", "2016-10-02 08:50:17.253187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 14ms (Views: 8.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 04:50:20 -0400 Processing by Tang::Admin::PlansController#new as HTML Completed 401 Unauthorized in 23ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 04:50:20 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (23.3ms) Completed 200 OK in 258ms (Views: 255.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 04:50:20 -0400 Processing by Tang::Admin::PlansController#new as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 04:50:20 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.5ms) Rendered devise/sessions/new.html.erb within layouts/application (2.8ms) Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 04:50:20 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 04:50:20 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.7ms) Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 04:50:20 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 04:50:20 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.5ms) Rendered devise/sessions/new.html.erb within layouts/application (2.6ms) Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (22.7ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$AN9Wj5gRSm0VU4dRnpzHtu1/ahTVvNzIqa.u6Zv0TvS7P2XLyP.fq"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:22.057924"], ["updated_at", "2016-10-02 09:03:22.057924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$uuoauLfUtg.wNiqYBvflbOXogjrUOZUyicrM4QMzGEQfouNGEYBqe"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:22.087465"], ["updated_at", "2016-10-02 09:03:22.087465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$bOUeuPWAy4Qx2fv/nCP9U.iO0XPpoXRnbX2xH7N7dfM3EiagEjfVO"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:22.093229"], ["updated_at", "2016-10-02 09:03:22.093229"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 51ms (Views: 29.7ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$uPHMdL5f.Vb/GTI1KbjqQ.Ze1bVubsiSGmhVsZmPkl0priEIlVI4S"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:22.165392"], ["updated_at", "2016-10-02 09:03:22.165392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$sIf02oFI5k08Ctgt40ftXuvSUbQi9.comeSjkTA9FEXw8pbGBj3EK"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:22.171081"], ["updated_at", "2016-10-02 09:03:22.171081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$NX3bdv.xj5BJDru1CArKNejht9K3/m28Wha0NG0MEY7NQj1ENNleO"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:22.180364"], ["updated_at", "2016-10-02 09:03:22.180364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$Nseey.wNWXd9mLkzGTZpF.xg5h1WN2ZH/YsY2X8TbpcYDocYEkEsq"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:22.185738"], ["updated_at", "2016-10-02 09:03:22.185738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$4EKN.n5o7rPy.NND2AMGpustQEfVPG9yrPPSwbtgKOgZ0vvRXyiNm"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:22.191151"], ["updated_at", "2016-10-02 09:03:22.191151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$qlqMWRNQUr6qbWE8voiL8OkiBmgSfEcu6RinMTP254ZBwUli5nYZO"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:22.196506"], ["updated_at", "2016-10-02 09:03:22.196506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$Mr6YLt0yxeNxsXFksOfL8uDSV9rryFI9FKjvGBFq0viSsoRUh5Xpi"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:22.203655"], ["updated_at", "2016-10-02 09:03:22.203655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$weyxmWPqyOwGvpZSsmTW2uk/0dx4CoiyRY7.VBLf1w95eZKcLB8.y"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:22.209759"], ["updated_at", "2016-10-02 09:03:22.209759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$xlnQvZbmhBWbUi7WDx.Y2eIzoUYhMlblfqGyTj7d0/RpuRvsDrXwm"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:22.216608"], ["updated_at", "2016-10-02 09:03:22.216608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$pgjgEmw3MTzehZSKNoqf5eNULfSSVxxgF.2q/YorqS3A96CyPqoxa"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:22.222441"], ["updated_at", "2016-10-02 09:03:22.222441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$eMgVf2b9CE1F/dy3ixg/lOTj63YTIhM/VOifDK84jleOdELBaaVOy"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:22.229083"], ["updated_at", "2016-10-02 09:03:22.229083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$s8I.261PiKoYG5xLCtPJguux66WXVimjXJXQxae70EYqhR6Qe3C6C"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:22.236093"], ["updated_at", "2016-10-02 09:03:22.236093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$eGyZRUMWDBeoL6THW0NE8uSPiBKnEWl344rWPULafz4xmUBjbY5jO"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:22.242138"], ["updated_at", "2016-10-02 09:03:22.242138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$KpIaQrTBF1CSKtbJZoALuuJvHL7xOogwnTRdMx0th6kskQvD9vz.q"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:22.248220"], ["updated_at", "2016-10-02 09:03:22.248220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$rN9tFgiLyJtzSoBuuYITLeUPsT41qyqk3coSpy52CCcCHCHtY22Oy"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:22.254024"], ["updated_at", "2016-10-02 09:03:22.254024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$7t2Jm4PAuUjnWI9hQ2xn4e7w93W.ZasKHEomwQHc/RZbB.gyv7n/S"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:22.259103"], ["updated_at", "2016-10-02 09:03:22.259103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$ERUVNC2tPzc4VYXVVRpkQOaVh17su4oqNwWVaWqdxt6vvEWfN.2q6"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:22.264423"], ["updated_at", "2016-10-02 09:03:22.264423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$KAZ6r1fMWSdZurcFcFlgf.OCGevhKCltnWHeolkA3EJCX4q46/2MO"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:22.269520"], ["updated_at", "2016-10-02 09:03:22.269520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$GW9zbB8M1HL7RL46uLpJQO7rOzCqJvfUVBu65BdA0XrfSBdokA/B2"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:22.274702"], ["updated_at", "2016-10-02 09:03:22.274702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$WzZOHTbEzcD0t3PZEETq8.IbysxjNNA.3gLDywW.fw/w8Xq1og9Bi"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:22.280006"], ["updated_at", "2016-10-02 09:03:22.280006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$AlO6VjxU8zoBTJzC.Q0yRefTU8AWciik77tJNe7X7nDagldKJ1Fka"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:22.285842"], ["updated_at", "2016-10-02 09:03:22.285842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$6Y6oWsMDNLaLoxVNLudRnu1TC3Duvyj/WB5yVlES1TQdojY/IkQRa"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:22.291328"], ["updated_at", "2016-10-02 09:03:22.291328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$ZAm13ZWmxk0OCVWXJsn6KeE1su.cF3Fr.ouCoYBlOoKzOi4SXxrSW"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:22.296259"], ["updated_at", "2016-10-02 09:03:22.296259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$CpcIUYReh8jxpMrY.mZK7eJzy7adjLdfbbM9iKOJx9Fg8QdZvF/0i"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:22.303549"], ["updated_at", "2016-10-02 09:03:22.303549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9e239a0a-11eb-48e2-beb3-fa21abc3edc3' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9e239a0a-11eb-48e2-beb3-fa21abc3edc3' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "9e239a0a-11eb-48e2-beb3-fa21abc3edc3"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 09:03:22.316882"], ["updated_at", "2016-10-02 09:03:22.316882"]] SQL (17.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-02 09:03:22.316882"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 16ms (Views: 13.7ms | ActiveRecord: 0.3ms) Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$TUgYDLevWvaJNkR/fF6Km.c6XI8O0p53CEOcarcXpsXjZyDtEfcZ6"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:22.840304"], ["updated_at", "2016-10-02 09:03:22.840304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9e239a0a-11eb-48e2-beb3-fa21abc3edc3' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9e239a0a-11eb-48e2-beb3-fa21abc3edc3' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "9e239a0a-11eb-48e2-beb3-fa21abc3edc3"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 09:03:22.844270"], ["updated_at", "2016-10-02 09:03:22.844270"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-02 09:03:22.844270"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"2"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 28]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (0.2ms) Completed 200 OK in 10ms (Views: 5.2ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$WKCwTRCb6MsTrqPQuW0v3.igl1lii0LVy8D/0R0vrwfDI.k5OOOki"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:23.220732"], ["updated_at", "2016-10-02 09:03:23.220732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$eEQ/PCr.8mDPa8/iuEvNvuL28MYYlRpHPgttYzZPGReA4ALdizZvq"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:23.237482"], ["updated_at", "2016-10-02 09:03:23.237482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9e239a0a-11eb-48e2-beb3-fa21abc3edc3' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9e239a0a-11eb-48e2-beb3-fa21abc3edc3' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "9e239a0a-11eb-48e2-beb3-fa21abc3edc3"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 09:03:23.241593"], ["updated_at", "2016-10-02 09:03:23.241593"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-02 09:03:23.241593"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#edit as HTML Parameters: {"id"=>"3"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 30]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.4ms) Completed 200 OK in 12ms (Views: 9.2ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$LQDOIE9IGBTmzZiDb7Ugx.IxI6jMeKK.9430sU5wJp/x3PbhIsayy"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:23.617014"], ["updated_at", "2016-10-02 09:03:23.617014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"9e239a0a-11eb-48e2-beb3-fa21abc3edc3", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9e239a0a-11eb-48e2-beb3-fa21abc3edc3' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9e239a0a-11eb-48e2-beb3-fa21abc3edc3' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "9e239a0a-11eb-48e2-beb3-fa21abc3edc3"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["created_at", "2016-10-02 09:03:23.630006"], ["updated_at", "2016-10-02 09:03:23.630006"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "31"], ["created_at", "2016-10-02 09:03:23.630006"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/4 Completed 302 Found in 371ms (ActiveRecord: 1.6ms)  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$wxtXIAQ1v3lxd/9GSRwzyO0hih7xwSe.lVNCNhnkS/JpXRnhooCY6"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:24.003011"], ["updated_at", "2016-10-02 09:03:24.003011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"9e239a0a-11eb-48e2-beb3-fa21abc3edc3", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9e239a0a-11eb-48e2-beb3-fa21abc3edc3' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9e239a0a-11eb-48e2-beb3-fa21abc3edc3' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "9e239a0a-11eb-48e2-beb3-fa21abc3edc3"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["created_at", "2016-10-02 09:03:24.010547"], ["updated_at", "2016-10-02 09:03:24.010547"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "32"], ["created_at", "2016-10-02 09:03:24.010547"], ["item_id", 5], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/5 Completed 302 Found in 372ms (ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$Hya1mafE6Yl3WkZw5a5Kk.oWWepnL9iHakZT.dL5ZoMlJpjMsFChq"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:24.388190"], ["updated_at", "2016-10-02 09:03:24.388190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"9e239a0a-11eb-48e2-beb3-fa21abc3edc3", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9e239a0a-11eb-48e2-beb3-fa21abc3edc3' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9e239a0a-11eb-48e2-beb3-fa21abc3edc3' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "9e239a0a-11eb-48e2-beb3-fa21abc3edc3"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["created_at", "2016-10-02 09:03:24.396923"], ["updated_at", "2016-10-02 09:03:24.396923"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "33"], ["created_at", "2016-10-02 09:03:24.396923"], ["item_id", 6], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/6 Completed 302 Found in 367ms (ActiveRecord: 1.4ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$AkIJUNasWn92tMNaqzd4H.aaxO3vTNHHlYfxSvIjOQrSgTmYDdNw2"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:24.769118"], ["updated_at", "2016-10-02 09:03:24.769118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"9e239a0a-11eb-48e2-beb3-fa21abc3edc3", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9e239a0a-11eb-48e2-beb3-fa21abc3edc3' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.1ms) Completed 200 OK in 17ms (Views: 0.6ms | ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$L6MKMSlQpLeuT0CTwu0EY.EyPAsCNTOWTsospMX2dkrRsX2omObJS"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:24.797938"], ["updated_at", "2016-10-02 09:03:24.797938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"9e239a0a-11eb-48e2-beb3-fa21abc3edc3", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9e239a0a-11eb-48e2-beb3-fa21abc3edc3' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.0ms) Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$BDBKhhgGRpb1A6Mfqgr7EeKFTlAdyteeuqf1P9sQcJessdn/Vlos2"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:24.813914"], ["updated_at", "2016-10-02 09:03:24.813914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9e239a0a-11eb-48e2-beb3-fa21abc3edc3' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9e239a0a-11eb-48e2-beb3-fa21abc3edc3' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "9e239a0a-11eb-48e2-beb3-fa21abc3edc3"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 09:03:24.817057"], ["updated_at", "2016-10-02 09:03:24.817057"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 09:03:24.817057"], ["item_id", 7], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$3WIB0ORdxUbZ1aY7inQU5eyxtgCV.FZhQHH9NLt6DxFR0Y3TH1OrC"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:25.181837"], ["updated_at", "2016-10-02 09:03:25.181837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9e239a0a-11eb-48e2-beb3-fa21abc3edc3' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9e239a0a-11eb-48e2-beb3-fa21abc3edc3' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "9e239a0a-11eb-48e2-beb3-fa21abc3edc3"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 09:03:25.185498"], ["updated_at", "2016-10-02 09:03:25.185498"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 09:03:25.185498"], ["item_id", 8], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"9e239a0a-11eb-48e2-beb3-fa21abc3edc3", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"8"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 37]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 8]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '9e239a0a-11eb-48e2-beb3-fa21abc3edc3' AND "tang_plans"."id" != 8) LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '9e239a0a-11eb-48e2-beb3-fa21abc3edc3' AND "tang_plans"."id" != 8) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/8 Completed 302 Found in 724ms (ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$XpSJVyao8h27D8WAwjlvZ.jRT4TQQtoW2kHCaZMBOxjgWwJs.utRG"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:26.354815"], ["updated_at", "2016-10-02 09:03:26.354815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9e239a0a-11eb-48e2-beb3-fa21abc3edc3' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9e239a0a-11eb-48e2-beb3-fa21abc3edc3' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "9e239a0a-11eb-48e2-beb3-fa21abc3edc3"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 09:03:26.358690"], ["updated_at", "2016-10-02 09:03:26.358690"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "37"], ["created_at", "2016-10-02 09:03:26.358690"], ["item_id", 9], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"9e239a0a-11eb-48e2-beb3-fa21abc3edc3", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"9"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 38]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 9]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '9e239a0a-11eb-48e2-beb3-fa21abc3edc3' AND "tang_plans"."id" != 9) LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '9e239a0a-11eb-48e2-beb3-fa21abc3edc3' AND "tang_plans"."id" != 9) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/9 Completed 302 Found in 1177ms (ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$hTRrQcVCX4kvp2EXUe18buM0zK4Pg9ryYWwJLfw2yX0EH2zbHXQy2"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:27.906212"], ["updated_at", "2016-10-02 09:03:27.906212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9e239a0a-11eb-48e2-beb3-fa21abc3edc3' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9e239a0a-11eb-48e2-beb3-fa21abc3edc3' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "9e239a0a-11eb-48e2-beb3-fa21abc3edc3"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 09:03:27.909924"], ["updated_at", "2016-10-02 09:03:27.909924"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "38"], ["created_at", "2016-10-02 09:03:27.909924"], ["item_id", 10], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"9e239a0a-11eb-48e2-beb3-fa21abc3edc3", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"10"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 39]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 10]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '9e239a0a-11eb-48e2-beb3-fa21abc3edc3' AND "tang_plans"."id" != 10) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 6ms (Views: 0.6ms | ActiveRecord: 0.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$Ma6h3HvklS/ygFW/2U323eodcgZ4pVkFGv4HQ3fy0nw/IBYgwTuOy"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:28.278920"], ["updated_at", "2016-10-02 09:03:28.278920"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9e239a0a-11eb-48e2-beb3-fa21abc3edc3' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9e239a0a-11eb-48e2-beb3-fa21abc3edc3' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "9e239a0a-11eb-48e2-beb3-fa21abc3edc3"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 09:03:28.282512"], ["updated_at", "2016-10-02 09:03:28.282512"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "39"], ["created_at", "2016-10-02 09:03:28.282512"], ["item_id", 11], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"9e239a0a-11eb-48e2-beb3-fa21abc3edc3", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"11"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 40]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 11]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '9e239a0a-11eb-48e2-beb3-fa21abc3edc3' AND "tang_plans"."id" != 11) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$C5URSLz71RscsmN7CVzknu3G8isu2RPfzVCXtQIKDCkBR1QhRmLRC"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:28.656932"], ["updated_at", "2016-10-02 09:03:28.656932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9e239a0a-11eb-48e2-beb3-fa21abc3edc3' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9e239a0a-11eb-48e2-beb3-fa21abc3edc3' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "9e239a0a-11eb-48e2-beb3-fa21abc3edc3"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 09:03:28.660394"], ["updated_at", "2016-10-02 09:03:28.660394"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "40"], ["created_at", "2016-10-02 09:03:28.660394"], ["item_id", 12], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"12"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 41]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 12]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 12], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 12\nstripe_id: 9e239a0a-11eb-48e2-beb3-fa21abc3edc3\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: \nhighlight: false\ncreated_at: 2016-10-02 09:03:28.660394000 Z\nupdated_at: 2016-10-02 09:03:28.660394000 Z\n"], ["whodunnit", "41"], ["created_at", "2016-10-02 09:03:29.056090"]] SQL (0.2ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 770ms (ActiveRecord: 1.0ms)  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$G9.KGUrIPSNbLdYm6fQ9Fu3mP6OxZLIhT4Xd6QvfrE2vcJVlSQUmS"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:29.828014"], ["updated_at", "2016-10-02 09:03:29.828014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9e239a0a-11eb-48e2-beb3-fa21abc3edc3' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9e239a0a-11eb-48e2-beb3-fa21abc3edc3' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "9e239a0a-11eb-48e2-beb3-fa21abc3edc3"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 09:03:29.831377"], ["updated_at", "2016-10-02 09:03:29.831377"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "41"], ["created_at", "2016-10-02 09:03:29.831377"], ["item_id", 13], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"13"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 42]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 13]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 13], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 13\nstripe_id: 9e239a0a-11eb-48e2-beb3-fa21abc3edc3\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: \nhighlight: false\ncreated_at: 2016-10-02 09:03:29.831377000 Z\nupdated_at: 2016-10-02 09:03:29.831377000 Z\n"], ["whodunnit", "42"], ["created_at", "2016-10-02 09:03:30.203681"]] SQL (0.3ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 762ms (ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$sQ5qGeyFwPIWbU311Y9wTuDnjaRUcjyoOt/vDVMPbjViEeqvX77eS"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:30.970364"], ["updated_at", "2016-10-02 09:03:30.970364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$JSDho4be2aIh4uH9nzhbne5w2zgVKzWH6zotbFt2ycnH/Q4wQPLdq"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:30.976327"], ["updated_at", "2016-10-02 09:03:30.976327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$l0HUbSdY8Q4W6LUljGlaLe0qIo1iuK6QZh4A0jS0CbkLlgX3q8B.K"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:30.982168"], ["updated_at", "2016-10-02 09:03:30.982168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$ZPX.cOFxStbXtkk2N9f8iO6ty5lFVugYkrFbN5Ck2VbGQuBQe72UC"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:30.988108"], ["updated_at", "2016-10-02 09:03:30.988108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$flKy97Ru2E.hghUSf7wheeSpIZGPefxD.PguQoXTnkK0lHJ1YkXvy"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:30.993634"], ["updated_at", "2016-10-02 09:03:30.993634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$gZUc3FKSU9YuRA.k1nJwbuTwuAf0EvBJQH2m40cgmevJADwHqXlO."], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:30.999223"], ["updated_at", "2016-10-02 09:03:30.999223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$9W6LdfVomeQu.fQidMcr6ebUmZSxk8Lnh/5URnLhtdigdmFx7TPgC"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:31.005178"], ["updated_at", "2016-10-02 09:03:31.005178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$2aiOHgGmfeBR6VQ9eFFu5O1LCv/ausRDZYNVdJ/0LnVwOMwKNz0eq"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:31.011126"], ["updated_at", "2016-10-02 09:03:31.011126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$hDZm0kNS5qzF8931op7uGe0zEVNWdhMfu/KH0ylBY2K3LqxJKnCGi"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:31.017110"], ["updated_at", "2016-10-02 09:03:31.017110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '98b785e0-b84a-4cc9-a423-04b5aa21bb9c' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$YvjUeGbgurLTDWR1Hmp6yONCtwe4L7eG52FtTyt0JdjEYdshfT.92"], ["stripe_id", "98b785e0-b84a-4cc9-a423-04b5aa21bb9c"], ["created_at", "2016-10-02 09:03:31.022839"], ["updated_at", "2016-10-02 09:03:31.022839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 16ms (Views: 8.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:03:34 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.2ms) Rendered devise/sessions/new.html.erb within layouts/application (32.3ms) Completed 200 OK in 327ms (Views: 292.3ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:03:34 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.7ms) Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 05:03:34 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:03:34 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (6.7ms) Completed 200 OK in 19ms (Views: 10.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 05:03:34 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:03:34 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (5.0ms) Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$LUHxxRooUIXTfx8mFETelOjYKNOWhreIQKi1RP3/3v6J8eGSZI8O2"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:40.149809"], ["updated_at", "2016-10-02 09:04:40.149809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$e31rgqllvzWud5HsfAkl3uDgqBE0awpUZPR0MU4Vd8gHd9l4g4vjW"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:40.157430"], ["updated_at", "2016-10-02 09:04:40.157430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$3Z0XDM8SNetX51xBYf7Age6DrUyx1lNcqyRY5IHAqHM9NaL1Q2dmO"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:40.173011"], ["updated_at", "2016-10-02 09:04:40.173011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 44ms (Views: 26.0ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$l1JBtZ/Wn0HW0RBEGt1gf.hOpG5b5h3M19QT/ZcxUXEIUuxh4HKEa"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:40.228988"], ["updated_at", "2016-10-02 09:04:40.228988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$84EpJExVmdVZhQ85fnI0kO/pVrD2rrk.Zwkuz3GKBk/ecKinjc2Ua"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:40.235542"], ["updated_at", "2016-10-02 09:04:40.235542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$KHc0xsLQd5/tlYgGkQKm0.V69EYxZBp7Ixhe1OuInghqR7pxOv6DK"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:40.244468"], ["updated_at", "2016-10-02 09:04:40.244468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$iQ9niIz4V8o7g2Ls4RSSleCyODNBuqu4WMVnHnnRFJifd7hm4fSji"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:40.250053"], ["updated_at", "2016-10-02 09:04:40.250053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$vJEENT0U9JrAKkbbe3IggegllnaiSA6IoyRQ.8zx9NJz4AWreMml."], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:40.255902"], ["updated_at", "2016-10-02 09:04:40.255902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$39TZDDksa/pyhRcZlY8fg.GjpKqO9YwQaZmzA8M5levTJIHfoDAEa"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:40.261705"], ["updated_at", "2016-10-02 09:04:40.261705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$50HGWNnKlkv3Zf0LobP3NuQthPZ0H2dOvuZf6Mu3BhYq9pKyeJ5a2"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:40.267369"], ["updated_at", "2016-10-02 09:04:40.267369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$KZzS9TEbPsbT8mBkNUZYSel0I.94RpYcSUteglVro6ws7rH52Y9Eq"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:40.272766"], ["updated_at", "2016-10-02 09:04:40.272766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$decKq3KhqSbg2NlOH98uduNLBLo1FpF7LMvxd2KYVBbyAmcURbAk."], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:40.277756"], ["updated_at", "2016-10-02 09:04:40.277756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$waLgSjbwkWRE0nnnHalodufu0jzYavWC.oTb/MdId1pKJPN7vemsi"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:40.283525"], ["updated_at", "2016-10-02 09:04:40.283525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$Fc.yVrfv5D.bY6L.O/mBXuQb9PalGU.zxB0sTazGvQrdYCkAJFEci"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:40.288592"], ["updated_at", "2016-10-02 09:04:40.288592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$BYAvx4JiisaJGOF9i3CRtOtbfIbXuC.Lz6Xdw4KN/w6t7NfU3OCcS"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:40.293607"], ["updated_at", "2016-10-02 09:04:40.293607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$fQNiO85dpGlw2O//voSdOebVYa3D2xbn52CQb2ZxoJt3oxdVeaYHa"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:40.299247"], ["updated_at", "2016-10-02 09:04:40.299247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$saS/WZ.VtDHaLIeizOrD0O5rm2VL0yZVIH1ElCt8VmnuRj5jT9QqG"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:40.304717"], ["updated_at", "2016-10-02 09:04:40.304717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$6pSZxFUpvLA5hbgQpr8UReaoMd4J2iXm5mIl54/4uDLT0.li.o.sq"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:40.309639"], ["updated_at", "2016-10-02 09:04:40.309639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$DasaCzCkvXN2PPcWW6t0luJQ.eB5CYrEEmS2qTjHPJ/KUH3o2hWae"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:40.315017"], ["updated_at", "2016-10-02 09:04:40.315017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$JR7mzKUsiyfsytC3QG3pu.LJzOvLQcaUZShkTPSJB9WNkmWHMM9k2"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:40.320402"], ["updated_at", "2016-10-02 09:04:40.320402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$gbW0wXtGv5wfRqku8lhgSeR3ppHhaNQgi2/FO4hOuaI.2TIN4yPWK"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:40.325508"], ["updated_at", "2016-10-02 09:04:40.325508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$Zg51.IKPlcOYM2B91DSyVO7mUPItFJw20tK6krQLGc/RNeMrp8tZ."], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:40.330414"], ["updated_at", "2016-10-02 09:04:40.330414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$ZTBYrl0oXpFIYe2nK.TipO9OktWI8kkHCaRFvmqfCU7/F0kw9LvA."], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:40.335848"], ["updated_at", "2016-10-02 09:04:40.335848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$yY1QOX75EJAN2BL8ZnjsxOeNMkB7ZlZRAsuVx5l5eGcia51dRgTnm"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:40.341081"], ["updated_at", "2016-10-02 09:04:40.341081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$mKRWRB30dUzmw2Yn25/Yjuy38zgz2gUoujbT9h6mjnXLxiZCyGTVW"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:40.346607"], ["updated_at", "2016-10-02 09:04:40.346607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$VKKJL7a6TahPvFCn1jsGtuywm9tP0qozTjLH9WTeTIa/yizom88jG"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:40.352076"], ["updated_at", "2016-10-02 09:04:40.352076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$VGsY7VbCE9v14ZWry4LpY.PA9Hrw88F7OmBi3Zflf0rBySTV9hZN."], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:40.357460"], ["updated_at", "2016-10-02 09:04:40.357460"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '0a8e463d-fe7f-462f-bbd3-9781079194a2' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '0a8e463d-fe7f-462f-bbd3-9781079194a2' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "0a8e463d-fe7f-462f-bbd3-9781079194a2"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 09:04:40.370602"], ["updated_at", "2016-10-02 09:04:40.370602"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-02 09:04:40.370602"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 13ms (Views: 11.3ms | ActiveRecord: 0.3ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$llA50cZ0hKbc9IlWEXLPTu.vWgf.7PeY.Og3DlDfa0f82iwSdcWna"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:41.270923"], ["updated_at", "2016-10-02 09:04:41.270923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '0a8e463d-fe7f-462f-bbd3-9781079194a2' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '0a8e463d-fe7f-462f-bbd3-9781079194a2' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "0a8e463d-fe7f-462f-bbd3-9781079194a2"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 09:04:41.274816"], ["updated_at", "2016-10-02 09:04:41.274816"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-02 09:04:41.274816"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 28]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (0.3ms) Completed 200 OK in 9ms (Views: 5.3ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$wPQ7m3rgL2pSijkxsxqQdOsfIrKiTGIZq/cq0mImm8dzyGQ56v8D6"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:41.730519"], ["updated_at", "2016-10-02 09:04:41.730519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$vR7kxR6aPb7b2OkHtzFApOkqOs91j0wqiJRLXMDLWROUnEDX9/Bym"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:41.746909"], ["updated_at", "2016-10-02 09:04:41.746909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '0a8e463d-fe7f-462f-bbd3-9781079194a2' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '0a8e463d-fe7f-462f-bbd3-9781079194a2' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "0a8e463d-fe7f-462f-bbd3-9781079194a2"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 09:04:41.750540"], ["updated_at", "2016-10-02 09:04:41.750540"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-02 09:04:41.750540"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#edit as HTML Parameters: {"id"=>"3"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 30]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$yn5QTnB5rsWZgTDMTEYCLuS0qDdFV4Bx61AMruP67xUGNypYz3oRi"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:42.137856"], ["updated_at", "2016-10-02 09:04:42.137856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"0a8e463d-fe7f-462f-bbd3-9781079194a2", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '0a8e463d-fe7f-462f-bbd3-9781079194a2' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '0a8e463d-fe7f-462f-bbd3-9781079194a2' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "0a8e463d-fe7f-462f-bbd3-9781079194a2"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["created_at", "2016-10-02 09:04:42.147992"], ["updated_at", "2016-10-02 09:04:42.147992"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "31"], ["created_at", "2016-10-02 09:04:42.147992"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/4 Completed 302 Found in 451ms (ActiveRecord: 1.1ms)  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$kbLkBW7ZdA7gZAP5fTcT5OL2Ds776vvjJLjrsGnUKy1sV8GhhSvqq"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:42.602366"], ["updated_at", "2016-10-02 09:04:42.602366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"0a8e463d-fe7f-462f-bbd3-9781079194a2", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '0a8e463d-fe7f-462f-bbd3-9781079194a2' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '0a8e463d-fe7f-462f-bbd3-9781079194a2' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "0a8e463d-fe7f-462f-bbd3-9781079194a2"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["created_at", "2016-10-02 09:04:42.611584"], ["updated_at", "2016-10-02 09:04:42.611584"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "32"], ["created_at", "2016-10-02 09:04:42.611584"], ["item_id", 5], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/5 Completed 302 Found in 378ms (ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$JI1xjA9ZGiKCSaEZVukN/uXpkmeZLAFgkrydN6KAlOnHcaZrWzGWC"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:42.993276"], ["updated_at", "2016-10-02 09:04:42.993276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"0a8e463d-fe7f-462f-bbd3-9781079194a2", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '0a8e463d-fe7f-462f-bbd3-9781079194a2' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '0a8e463d-fe7f-462f-bbd3-9781079194a2' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "0a8e463d-fe7f-462f-bbd3-9781079194a2"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["created_at", "2016-10-02 09:04:43.001155"], ["updated_at", "2016-10-02 09:04:43.001155"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "33"], ["created_at", "2016-10-02 09:04:43.001155"], ["item_id", 6], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/6 Completed 302 Found in 473ms (ActiveRecord: 1.2ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$.tc0XUATawqjK/4x.aagk.Kh8BwVlgHwJfvDDMiWktAW/MnMiWmjG"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:43.479207"], ["updated_at", "2016-10-02 09:04:43.479207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"0a8e463d-fe7f-462f-bbd3-9781079194a2", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]]  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '0a8e463d-fe7f-462f-bbd3-9781079194a2' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.0ms) Completed 200 OK in 13ms (Views: 0.5ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (1.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$qHQGPj33ZHALZPX5iKts2uEWn3o/NrlZrx7u.llz2M3Yca94dSzOa"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:43.504072"], ["updated_at", "2016-10-02 09:04:43.504072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"0a8e463d-fe7f-462f-bbd3-9781079194a2", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]]  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '0a8e463d-fe7f-462f-bbd3-9781079194a2' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.0ms) Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$U8uwcleLGXypqfkYySI4sO3CMCrxD5Qq2bwY8EvuMmtjDkLg3n0v."], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:43.519252"], ["updated_at", "2016-10-02 09:04:43.519252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '0a8e463d-fe7f-462f-bbd3-9781079194a2' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '0a8e463d-fe7f-462f-bbd3-9781079194a2' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "0a8e463d-fe7f-462f-bbd3-9781079194a2"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 09:04:43.522285"], ["updated_at", "2016-10-02 09:04:43.522285"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 09:04:43.522285"], ["item_id", 7], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$wHKSAytskt3XMeQfcz7C.ey14oaw8fqK8LUHaMPWvZCpzjv0t7EhS"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:43.933033"], ["updated_at", "2016-10-02 09:04:43.933033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '0a8e463d-fe7f-462f-bbd3-9781079194a2' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '0a8e463d-fe7f-462f-bbd3-9781079194a2' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "0a8e463d-fe7f-462f-bbd3-9781079194a2"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 09:04:43.936347"], ["updated_at", "2016-10-02 09:04:43.936347"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 09:04:43.936347"], ["item_id", 8], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"0a8e463d-fe7f-462f-bbd3-9781079194a2", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"8"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 37]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 8]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '0a8e463d-fe7f-462f-bbd3-9781079194a2' AND "tang_plans"."id" != 8) LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '0a8e463d-fe7f-462f-bbd3-9781079194a2' AND "tang_plans"."id" != 8) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/8 Completed 302 Found in 721ms (ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$RFrlzhw5wEmiUUtVR2Htleqccms9bC1wKoP/R2r5npLjgDK9TdeD6"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:45.044505"], ["updated_at", "2016-10-02 09:04:45.044505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '0a8e463d-fe7f-462f-bbd3-9781079194a2' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '0a8e463d-fe7f-462f-bbd3-9781079194a2' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "0a8e463d-fe7f-462f-bbd3-9781079194a2"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 09:04:45.048180"], ["updated_at", "2016-10-02 09:04:45.048180"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "37"], ["created_at", "2016-10-02 09:04:45.048180"], ["item_id", 9], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"0a8e463d-fe7f-462f-bbd3-9781079194a2", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"9"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 38]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 9]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '0a8e463d-fe7f-462f-bbd3-9781079194a2' AND "tang_plans"."id" != 9) LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '0a8e463d-fe7f-462f-bbd3-9781079194a2' AND "tang_plans"."id" != 9) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/9 Completed 302 Found in 716ms (ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$2cPKimVeoKXGR1c0Unufc.EhNgv2xi.r0f4eursMzL8wzhlOn3QBq"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:46.209187"], ["updated_at", "2016-10-02 09:04:46.209187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '0a8e463d-fe7f-462f-bbd3-9781079194a2' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '0a8e463d-fe7f-462f-bbd3-9781079194a2' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "0a8e463d-fe7f-462f-bbd3-9781079194a2"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 09:04:46.212936"], ["updated_at", "2016-10-02 09:04:46.212936"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "38"], ["created_at", "2016-10-02 09:04:46.212936"], ["item_id", 10], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"0a8e463d-fe7f-462f-bbd3-9781079194a2", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"10"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 39]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 10]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '0a8e463d-fe7f-462f-bbd3-9781079194a2' AND "tang_plans"."id" != 10) LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 6ms (Views: 0.9ms | ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$FVdhIcXoZkDAocy3s5fFcu..EJv90Gjjl5U0m1uoOeoCILyN4jvwq"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:46.597482"], ["updated_at", "2016-10-02 09:04:46.597482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '0a8e463d-fe7f-462f-bbd3-9781079194a2' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '0a8e463d-fe7f-462f-bbd3-9781079194a2' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "0a8e463d-fe7f-462f-bbd3-9781079194a2"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 09:04:46.601477"], ["updated_at", "2016-10-02 09:04:46.601477"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "39"], ["created_at", "2016-10-02 09:04:46.601477"], ["item_id", 11], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"0a8e463d-fe7f-462f-bbd3-9781079194a2", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"11"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 40]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 11]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '0a8e463d-fe7f-462f-bbd3-9781079194a2' AND "tang_plans"."id" != 11) LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 7ms (Views: 0.7ms | ActiveRecord: 0.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$zCo9wylgVCov.IGmwBGgxOXNvxaHFMpuOJrNvpLmKsXHzE9RW4r8a"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:47.209947"], ["updated_at", "2016-10-02 09:04:47.209947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '0a8e463d-fe7f-462f-bbd3-9781079194a2' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '0a8e463d-fe7f-462f-bbd3-9781079194a2' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "0a8e463d-fe7f-462f-bbd3-9781079194a2"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 09:04:47.213497"], ["updated_at", "2016-10-02 09:04:47.213497"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "40"], ["created_at", "2016-10-02 09:04:47.213497"], ["item_id", 12], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"12"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 41]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 12]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 12], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 12\nstripe_id: 0a8e463d-fe7f-462f-bbd3-9781079194a2\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: \nhighlight: false\ncreated_at: 2016-10-02 09:04:47.213497000 Z\nupdated_at: 2016-10-02 09:04:47.213497000 Z\n"], ["whodunnit", "41"], ["created_at", "2016-10-02 09:04:47.736839"]] SQL (0.2ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 822ms (ActiveRecord: 1.1ms)  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$xAZEqzmiCrYbBULN8UHbieDm2BweWDJ4.GP7RjMLd90BRJaSMIAsm"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:48.560580"], ["updated_at", "2016-10-02 09:04:48.560580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '0a8e463d-fe7f-462f-bbd3-9781079194a2' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '0a8e463d-fe7f-462f-bbd3-9781079194a2' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "0a8e463d-fe7f-462f-bbd3-9781079194a2"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 09:04:48.563719"], ["updated_at", "2016-10-02 09:04:48.563719"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "41"], ["created_at", "2016-10-02 09:04:48.563719"], ["item_id", 13], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"13"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 42]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 13]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 13], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 13\nstripe_id: 0a8e463d-fe7f-462f-bbd3-9781079194a2\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: \nhighlight: false\ncreated_at: 2016-10-02 09:04:48.563719000 Z\nupdated_at: 2016-10-02 09:04:48.563719000 Z\n"], ["whodunnit", "42"], ["created_at", "2016-10-02 09:04:48.966820"]] SQL (0.2ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 723ms (ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$6/UHUyA4Now6DBNNANiwz.0u0NhYuLxdvNOtPliW/HDElrpWfaktS"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:49.693202"], ["updated_at", "2016-10-02 09:04:49.693202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$1TaviXgtFBl5Pz7kKEs4r.anyw4PqW.BR3ibAdpLfiqgc3QxSvKgK"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:49.699592"], ["updated_at", "2016-10-02 09:04:49.699592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$sx1z.sxUmtXnEAv4qAlRIOzAlMyPvXxhWm03Ig4D3ExHJsCi9Trga"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:49.706086"], ["updated_at", "2016-10-02 09:04:49.706086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$isGqGpku/EfoYEMF5iBtlujwbkYkxPnufawl4TXHgSEEmAg6m/Fsa"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:49.711956"], ["updated_at", "2016-10-02 09:04:49.711956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$RZk/3c0idj/xLdZVB/MA5.3xtkqd8Kt2GJgRQi0aA0HatVED3uPR2"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:49.717767"], ["updated_at", "2016-10-02 09:04:49.717767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$jdlGmHjBWSdCPDXlvNKrd.5WE2yWojVo70ck2gOdg9JUWrzO9BC92"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:49.723610"], ["updated_at", "2016-10-02 09:04:49.723610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$YJtDOq/fbtmzJT4gBx1EfeD9aNCiOlJmr1ch6OJR.TH5lVYP93d56"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:49.729217"], ["updated_at", "2016-10-02 09:04:49.729217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$hHJ3NqqViR0udtaB4XV21OQuSbuILytG6fF99flBXzOm1Du2OxbGC"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:49.735154"], ["updated_at", "2016-10-02 09:04:49.735154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$DcQvYO1NjrQWju8fcaINJeDMztZZDv2An4OiGEvvtW/5rEMnAZMGq"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:49.741104"], ["updated_at", "2016-10-02 09:04:49.741104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '55b01aab-4450-405f-a014-791354cfa0a9' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$pKfQNfYFRX8hWyDKLEpUAejhrtvt1DShfYe2jSm3OcqcPK8/KiqMq"], ["stripe_id", "55b01aab-4450-405f-a014-791354cfa0a9"], ["created_at", "2016-10-02 09:04:49.746121"], ["updated_at", "2016-10-02 09:04:49.746121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 15ms (Views: 8.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:04:52 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (27.3ms) Completed 200 OK in 290ms (Views: 255.1ms | ActiveRecord: 2.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:04:53 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]] Completed 401 Unauthorized in 20ms (ActiveRecord: 1.1ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.8ms) Completed 200 OK in 16ms (Views: 4.9ms | ActiveRecord: 0.0ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 05:04:53 -0400 Processing by Tang::Admin::PlansController#new as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:04:53 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (4.0ms) Rendered devise/sessions/new.html.erb within layouts/application (9.4ms) Completed 200 OK in 16ms (Views: 15.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:04:53 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (3.1ms) Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:04:53 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.6ms) Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.0ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 05:04:53 -0400 Processing by Tang::Admin::PlansController#new as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:04:53 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.2ms) Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 05:04:53 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:04:53 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.9ms) Rendered devise/sessions/new.html.erb within layouts/application (3.8ms) Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 05:04:53 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:04:53 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (1.8ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$lvq1nUkaqXD8Q4hNtbrjm.5rNvttjT9PWcUjx7Qn1bgfdaxpb1zsG"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:20.592800"], ["updated_at", "2016-10-02 09:18:20.592800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$pNeRfBijeRXzZaT653or3.zT2GreI3IQ9Tc.OKKiYVIZQ.gLWqa6u"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:20.601809"], ["updated_at", "2016-10-02 09:18:20.601809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$rQ5frbFyFoOsMRb6t7SXWOpr58K/9zdscwXcZUL05zLH028HnYExG"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:20.608885"], ["updated_at", "2016-10-02 09:18:20.608885"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 41ms (Views: 24.2ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$JW/J8QjYcUsETMu2g/n.1uAPO1I7WK5M4igFNZN2FC7oHH3x9sM4i"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:20.672346"], ["updated_at", "2016-10-02 09:18:20.672346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$mxk7w467eFozikVFV1INYeUS46rLWgZOpVPQsTgSrqyj4aMnc3zY."], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:20.679485"], ["updated_at", "2016-10-02 09:18:20.679485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$JN8XFFK2wKuoEFbHB5pgQ.vudmtvRUPa/hrApKUXA8Baj05AgPQjC"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:20.688774"], ["updated_at", "2016-10-02 09:18:20.688774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$kJr/5kiMJCfLJDHeFK.aouxgZ1d2vucX5tQ0GZATASYmCkNVyoJwO"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:20.694137"], ["updated_at", "2016-10-02 09:18:20.694137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$2.1n7AFyWoOBQZ9WYLs1GuUDtdzjGnUPNBo69mguH2oFwTtpwpY9y"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:20.700250"], ["updated_at", "2016-10-02 09:18:20.700250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$XlGYqJynFf7bibkjla1NXOEDOBwzsmJg/k3j5rWY4N6Y0GtShEBUO"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:20.705582"], ["updated_at", "2016-10-02 09:18:20.705582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$wquRNpjGwLNvxtyjkk9OjexA2UMebB73X8rS7gbO5k96vEzksrVPe"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:20.711126"], ["updated_at", "2016-10-02 09:18:20.711126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$zRbAIjTMGIffK8262M97SOoO3Tm987utjKPm8rz75j3tVSoFLiSoC"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:20.716128"], ["updated_at", "2016-10-02 09:18:20.716128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$FCIsXHKNZjv1goRteSkmoOeUaD9qCeyXk3fvVgSDlUKVSU17.3tqy"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:20.720908"], ["updated_at", "2016-10-02 09:18:20.720908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$MywA8B4bT5LYDOeliMve3eVAczzywxJu7xZS6P5jfRxV.0hKj/B5K"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:20.726079"], ["updated_at", "2016-10-02 09:18:20.726079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$EL0iDO2LLe2/I0F/EzbolujLbSwgEVnG92wgvpM/j7q0o7QtFcafK"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:20.731043"], ["updated_at", "2016-10-02 09:18:20.731043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$hSbCk0dS45uuH9UUwqAGC.Lvqe.DaIZjWIEBPPfCkTAS6vhHKyyAi"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:20.735925"], ["updated_at", "2016-10-02 09:18:20.735925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$WSm4efcE9dMJZW7pfSEAsuQHfk8Qis/Ru3nsCFaAbwe7qqQTFb7ZC"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:20.742076"], ["updated_at", "2016-10-02 09:18:20.742076"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$ewdqoeHtEai2EAL62NqRcOD6iZ2UDySkxT/ARQdh/sQRw2cnL0nbK"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:20.749572"], ["updated_at", "2016-10-02 09:18:20.749572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$dc9ko8SSG4pBc2xpATEo5OzkjrYM08FCpCQtc2Lgslf96iEvlpAfa"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:20.755468"], ["updated_at", "2016-10-02 09:18:20.755468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$cPQGC2OnIP3lxLkaluM6f.dYjBtZGInzCk2mDvxkXaYAIP/fE86Me"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:20.761534"], ["updated_at", "2016-10-02 09:18:20.761534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$Qvgre/t8VwrhztJG3skaLeJRHRiSI.432pCSPrrolZAEmDRRPuvuy"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:20.766608"], ["updated_at", "2016-10-02 09:18:20.766608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$7oVQ8l.zN35b8DHNq8OL0eovTxymwpRWx3u4/vnRw1ta64ymSYWoS"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:20.771723"], ["updated_at", "2016-10-02 09:18:20.771723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$EObCCevssdL10Luj6vHOhuX.uwiv0HMSNmgQZZhtqM.E4YevuXJQW"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:20.776897"], ["updated_at", "2016-10-02 09:18:20.776897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$ljhFusM72NbmxpWr05WQ2eq9S70rnHyEfMFKw7gwPXLFNPMT2cO7m"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:20.782176"], ["updated_at", "2016-10-02 09:18:20.782176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$zN4F7pM22X30Iu/XwIYEhe1Z5429IexV14hEDaikfaYTQwEbo7p4a"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:20.787581"], ["updated_at", "2016-10-02 09:18:20.787581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$MIOcDEz9HArmheasqSYlZOc7hNGn3FnTCnfwEOs/guzyQ2uPh./OC"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:20.793110"], ["updated_at", "2016-10-02 09:18:20.793110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$dn.TmCphETq.eO7sMm8P2.YwKWQ5LuTya42m/y/6zLKQhzzaoZHGa"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:20.798084"], ["updated_at", "2016-10-02 09:18:20.798084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$F.HegMqW.GBek.IJqqawP.zBTDK49/2BF2KM5l4wLvKtvoU7wUL1a"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:20.803201"], ["updated_at", "2016-10-02 09:18:20.803201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'a0a2d078-9fbd-40d5-a53b-9f5d11fde139' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'a0a2d078-9fbd-40d5-a53b-9f5d11fde139' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "a0a2d078-9fbd-40d5-a53b-9f5d11fde139"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 09:18:20.814859"], ["updated_at", "2016-10-02 09:18:20.814859"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-02 09:18:20.814859"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 16ms (Views: 14.2ms | ActiveRecord: 0.3ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$Qz13/nrPi38iquLupPalsuao1ii0D3ZT.yRQF5fW24FGyinSWwutS"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:21.287438"], ["updated_at", "2016-10-02 09:18:21.287438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'a0a2d078-9fbd-40d5-a53b-9f5d11fde139' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'a0a2d078-9fbd-40d5-a53b-9f5d11fde139' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "a0a2d078-9fbd-40d5-a53b-9f5d11fde139"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 09:18:21.291054"], ["updated_at", "2016-10-02 09:18:21.291054"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-02 09:18:21.291054"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 28]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (0.2ms) Completed 200 OK in 9ms (Views: 5.2ms | ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$8OVRtoMY/knirn6intSudui/qK8zL44ckwV06W.02LLn/NzwQw/Vu"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:21.670121"], ["updated_at", "2016-10-02 09:18:21.670121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$bMF4b6aXR/h9IE0wZULHLuJFwzZ9DsQWnSSIFAcMwgXdPtU8ttjhm"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:21.687220"], ["updated_at", "2016-10-02 09:18:21.687220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'a0a2d078-9fbd-40d5-a53b-9f5d11fde139' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'a0a2d078-9fbd-40d5-a53b-9f5d11fde139' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "a0a2d078-9fbd-40d5-a53b-9f5d11fde139"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 09:18:21.691727"], ["updated_at", "2016-10-02 09:18:21.691727"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-02 09:18:21.691727"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#edit as HTML Parameters: {"id"=>"3"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 30]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 8ms (Views: 5.5ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$7HU8ImsX4fveiCH9Edj5ousRmWrT1Hj2f6c/MWjDyiG1q4BOm4m2."], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:22.065071"], ["updated_at", "2016-10-02 09:18:22.065071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"a0a2d078-9fbd-40d5-a53b-9f5d11fde139", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'a0a2d078-9fbd-40d5-a53b-9f5d11fde139' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'a0a2d078-9fbd-40d5-a53b-9f5d11fde139' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "a0a2d078-9fbd-40d5-a53b-9f5d11fde139"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["created_at", "2016-10-02 09:18:22.076798"], ["updated_at", "2016-10-02 09:18:22.076798"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "31"], ["created_at", "2016-10-02 09:18:22.076798"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/4 Completed 302 Found in 377ms (ActiveRecord: 1.3ms)  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$NuejvLRtmC3.5WsseGdS9.d3UFGnZ1OlfniYwqe6sJ7q01ZNRGQPi"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:22.456714"], ["updated_at", "2016-10-02 09:18:22.456714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"a0a2d078-9fbd-40d5-a53b-9f5d11fde139", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'a0a2d078-9fbd-40d5-a53b-9f5d11fde139' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'a0a2d078-9fbd-40d5-a53b-9f5d11fde139' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "a0a2d078-9fbd-40d5-a53b-9f5d11fde139"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["created_at", "2016-10-02 09:18:22.465634"], ["updated_at", "2016-10-02 09:18:22.465634"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "32"], ["created_at", "2016-10-02 09:18:22.465634"], ["item_id", 5], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/5 Completed 302 Found in 520ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$XQNw6kLKcztfvCHMAn2a5.qpPzxP7Szgdu0d.Ev95OFABav60PAB."], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:22.989292"], ["updated_at", "2016-10-02 09:18:22.989292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"a0a2d078-9fbd-40d5-a53b-9f5d11fde139", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]]  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'a0a2d078-9fbd-40d5-a53b-9f5d11fde139' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'a0a2d078-9fbd-40d5-a53b-9f5d11fde139' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "a0a2d078-9fbd-40d5-a53b-9f5d11fde139"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["created_at", "2016-10-02 09:18:22.998026"], ["updated_at", "2016-10-02 09:18:22.998026"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "33"], ["created_at", "2016-10-02 09:18:22.998026"], ["item_id", 6], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/6 Completed 302 Found in 486ms (ActiveRecord: 1.5ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$bgcCiEr6FQWCHR9pheVr2uddD/5LP3qby6fQC9lijG70IgI.Cj8bu"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:23.488701"], ["updated_at", "2016-10-02 09:18:23.488701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"a0a2d078-9fbd-40d5-a53b-9f5d11fde139", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'a0a2d078-9fbd-40d5-a53b-9f5d11fde139' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.0ms) Completed 200 OK in 11ms (Views: 0.6ms | ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$AX0TslV/AOv//FD6T9TCIO.M05HZY37Vi2Z6.GbW6IlZXhPT1GSki"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:23.510585"], ["updated_at", "2016-10-02 09:18:23.510585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"a0a2d078-9fbd-40d5-a53b-9f5d11fde139", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'a0a2d078-9fbd-40d5-a53b-9f5d11fde139' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.0ms) Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$kcf4cHzP3tHbdHqtaqLWT.aNBoag7J4odRlOKyP.bi5g8uO.QI3Pq"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:23.527236"], ["updated_at", "2016-10-02 09:18:23.527236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'a0a2d078-9fbd-40d5-a53b-9f5d11fde139' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'a0a2d078-9fbd-40d5-a53b-9f5d11fde139' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "a0a2d078-9fbd-40d5-a53b-9f5d11fde139"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 09:18:23.530858"], ["updated_at", "2016-10-02 09:18:23.530858"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 09:18:23.530858"], ["item_id", 7], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$8KtkXzR1TrDK.ez0UujWve0p57nrsX.VfLFdOcKKATr94SxYLIksO"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:24.329461"], ["updated_at", "2016-10-02 09:18:24.329461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'a0a2d078-9fbd-40d5-a53b-9f5d11fde139' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'a0a2d078-9fbd-40d5-a53b-9f5d11fde139' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "a0a2d078-9fbd-40d5-a53b-9f5d11fde139"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 09:18:24.332967"], ["updated_at", "2016-10-02 09:18:24.332967"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 09:18:24.332967"], ["item_id", 8], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"a0a2d078-9fbd-40d5-a53b-9f5d11fde139", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"8"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 37]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 8]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'a0a2d078-9fbd-40d5-a53b-9f5d11fde139' AND "tang_plans"."id" != 8) LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'a0a2d078-9fbd-40d5-a53b-9f5d11fde139' AND "tang_plans"."id" != 8) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/8 Completed 302 Found in 784ms (ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$bzANOPMgOZMcKlNKhzll9eteJRX.omxU5J20vAdVwoZTAnSkZsfFa"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:25.853912"], ["updated_at", "2016-10-02 09:18:25.853912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'a0a2d078-9fbd-40d5-a53b-9f5d11fde139' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'a0a2d078-9fbd-40d5-a53b-9f5d11fde139' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "a0a2d078-9fbd-40d5-a53b-9f5d11fde139"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 09:18:25.857697"], ["updated_at", "2016-10-02 09:18:25.857697"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "37"], ["created_at", "2016-10-02 09:18:25.857697"], ["item_id", 9], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"a0a2d078-9fbd-40d5-a53b-9f5d11fde139", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"9"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 38]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 9]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'a0a2d078-9fbd-40d5-a53b-9f5d11fde139' AND "tang_plans"."id" != 9) LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'a0a2d078-9fbd-40d5-a53b-9f5d11fde139' AND "tang_plans"."id" != 9) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/9 Completed 302 Found in 801ms (ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$rIHV7VsRO5rRx6pwtgsZeOUpB4cSO5PU5rgVGDmoOvUcdrXPu.CZW"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:27.059239"], ["updated_at", "2016-10-02 09:18:27.059239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'a0a2d078-9fbd-40d5-a53b-9f5d11fde139' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'a0a2d078-9fbd-40d5-a53b-9f5d11fde139' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "a0a2d078-9fbd-40d5-a53b-9f5d11fde139"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 09:18:27.062542"], ["updated_at", "2016-10-02 09:18:27.062542"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "38"], ["created_at", "2016-10-02 09:18:27.062542"], ["item_id", 10], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"a0a2d078-9fbd-40d5-a53b-9f5d11fde139", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"10"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 39]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 10]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'a0a2d078-9fbd-40d5-a53b-9f5d11fde139' AND "tang_plans"."id" != 10) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.2ms) Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$EJi1sWhCtLMG.sApH4gd4.PwXPJQ.QeSj/0DVLBvWCJ6nXskvbVdG"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:27.441909"], ["updated_at", "2016-10-02 09:18:27.441909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'a0a2d078-9fbd-40d5-a53b-9f5d11fde139' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'a0a2d078-9fbd-40d5-a53b-9f5d11fde139' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "a0a2d078-9fbd-40d5-a53b-9f5d11fde139"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 09:18:27.445114"], ["updated_at", "2016-10-02 09:18:27.445114"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "39"], ["created_at", "2016-10-02 09:18:27.445114"], ["item_id", 11], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"a0a2d078-9fbd-40d5-a53b-9f5d11fde139", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"11"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 40]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 11]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'a0a2d078-9fbd-40d5-a53b-9f5d11fde139' AND "tang_plans"."id" != 11) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.0ms) Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$ERc5obRc7AxDjDrGHRXnEOt105mFiE88MQpPD5Nxyze2.hMZYwVKq"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:27.828993"], ["updated_at", "2016-10-02 09:18:27.828993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'a0a2d078-9fbd-40d5-a53b-9f5d11fde139' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'a0a2d078-9fbd-40d5-a53b-9f5d11fde139' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "a0a2d078-9fbd-40d5-a53b-9f5d11fde139"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 09:18:27.832302"], ["updated_at", "2016-10-02 09:18:27.832302"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "40"], ["created_at", "2016-10-02 09:18:27.832302"], ["item_id", 12], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"12"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 41]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 12]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 12], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 12\nstripe_id: a0a2d078-9fbd-40d5-a53b-9f5d11fde139\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: \nhighlight: false\ncreated_at: 2016-10-02 09:18:27.832302000 Z\nupdated_at: 2016-10-02 09:18:27.832302000 Z\n"], ["whodunnit", "41"], ["created_at", "2016-10-02 09:18:28.192203"]] SQL (0.3ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 771ms (ActiveRecord: 1.3ms)  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$YmPcT301XU2753CqNxsMZexvDIJpXBL9scMTWmm25zLIaGxHTeqHK"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:28.965598"], ["updated_at", "2016-10-02 09:18:28.965598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'a0a2d078-9fbd-40d5-a53b-9f5d11fde139' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'a0a2d078-9fbd-40d5-a53b-9f5d11fde139' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "a0a2d078-9fbd-40d5-a53b-9f5d11fde139"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 09:18:28.968587"], ["updated_at", "2016-10-02 09:18:28.968587"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "41"], ["created_at", "2016-10-02 09:18:28.968587"], ["item_id", 13], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"13"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 42]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 13]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 13], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 13\nstripe_id: a0a2d078-9fbd-40d5-a53b-9f5d11fde139\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: \nhighlight: false\ncreated_at: 2016-10-02 09:18:28.968587000 Z\nupdated_at: 2016-10-02 09:18:28.968587000 Z\n"], ["whodunnit", "42"], ["created_at", "2016-10-02 09:18:29.362064"]] SQL (0.3ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 749ms (ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$E.E9Ka05YVlzE3yfWG03A.RSx6b1RoXn9gI443WoyKMKq.Vx9eR.K"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:30.115923"], ["updated_at", "2016-10-02 09:18:30.115923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$FRYEgGeR84iZzuwDfoQTFOmB4Ig74SQaeK5Plx207Joro9sOmLvPC"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:30.121766"], ["updated_at", "2016-10-02 09:18:30.121766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$midLgZA0dm9e5QJlvlOgk.SKSgFVRs0gj0N15NWpGWfCE81QNCJq2"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:30.127838"], ["updated_at", "2016-10-02 09:18:30.127838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$APsYJpXiZ/vrrCK9oQfsc.TAiYAXsU79SgjH21pZl9BZtp8Oo3CIm"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:30.133678"], ["updated_at", "2016-10-02 09:18:30.133678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$2SpN5yaHFq4.24C4QJPJ.uVPu23wR4QhZRCdRkAFkuErxvyrLUNeW"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:30.139081"], ["updated_at", "2016-10-02 09:18:30.139081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$mq8VLjicunuPBC9GB6ysO.TxlOeKpcxJmeL2if2RGUpNH/9PEJRQW"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:30.144319"], ["updated_at", "2016-10-02 09:18:30.144319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$V2./baxrzgeE1BSBHehiPOvfaDZzBO.xGJpc0P1X61YENp2d0mA3W"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:30.149877"], ["updated_at", "2016-10-02 09:18:30.149877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$DzV8sycVFHnYNpAh6roMoOiCa6OKdj272Xumeqa6X7Rv06mS4n1eG"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:30.155156"], ["updated_at", "2016-10-02 09:18:30.155156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$JzdZxeHv5P7FyD8gksDThuR.9Ul.liSMhbCFWXvs7zeS7uII6NYzC"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:30.160807"], ["updated_at", "2016-10-02 09:18:30.160807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'c5ca3057-e689-46b7-810d-555a8d7027a2' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$HioUNJVoLS4y0jRV0IC94.2zqyKVzGC2BjibKB/UiaoixD5zyZyj2"], ["stripe_id", "c5ca3057-e689-46b7-810d-555a8d7027a2"], ["created_at", "2016-10-02 09:18:30.165871"], ["updated_at", "2016-10-02 09:18:30.165871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 13ms (Views: 7.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a2861b65-fffb-409c-9659-df0ab3a0b304' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$g/j3RX0kY4zI0W7GZ/rWgO4Db3uSS5AX6krXAeumL2V8MUWs9vtNi"], ["stripe_id", "a2861b65-fffb-409c-9659-df0ab3a0b304"], ["created_at", "2016-10-02 09:18:33.309148"], ["updated_at", "2016-10-02 09:18:33.309148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:18:33 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.5ms) Rendered devise/sessions/new.html.erb within layouts/application (24.6ms) Completed 200 OK in 268ms (Views: 256.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:18:33 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.7ms) Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.0ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 05:18:33 -0400 Processing by Tang::Admin::PlansController#new as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:18:33 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 14ms (Views: 12.6ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a2861b65-fffb-409c-9659-df0ab3a0b304' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$7DnJBUEMajkqLcGqTa.ZKuR6jszB1U4dsyWISK.C/druJR9Tqaxra"], ["stripe_id", "a2861b65-fffb-409c-9659-df0ab3a0b304"], ["created_at", "2016-10-02 09:18:33.696859"], ["updated_at", "2016-10-02 09:18:33.696859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:18:33 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.7ms) Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:18:33 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} Rendered devise/shared/_links.html.erb (0.5ms) Rendered devise/sessions/new.html.erb within layouts/application (3.5ms) Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.0ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 05:18:33 -0400 Processing by Tang::Admin::PlansController#new as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:18:33 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (8.6ms) Completed 200 OK in 12ms (Views: 10.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 05:18:33 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:18:33 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.3ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 05:18:33 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:18:33 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.5ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '44b27b25-79ba-48d7-bd53-1972ab0e59e8' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$gY/WHBaNi4NyqQUWBaBz4eK7SO59i7pXWHBbn7WU0Wjp/hNJjOy3y"], ["stripe_id", "44b27b25-79ba-48d7-bd53-1972ab0e59e8"], ["created_at", "2016-10-02 09:19:17.315003"], ["updated_at", "2016-10-02 09:19:17.315003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:19:17 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.0ms) Rendered devise/sessions/new.html.erb within layouts/application (23.1ms) Completed 200 OK in 239ms (Views: 227.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:19:17 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (1.7ms) Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 05:19:17 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (9.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (12.8ms) Completed 200 OK in 38ms (Views: 24.2ms | ActiveRecord: 0.9ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 05:19:17 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"}  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 09:19:17.662162"], ["updated_at", "2016-10-02 09:19:17.662162"]] SQL (0.4ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 09:19:17.662162"], ["item_id", 14], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/14 Completed 302 Found in 835ms (ActiveRecord: 2.6ms) Started GET "/tang/admin/plans/14" for 127.0.0.1 at 2016-10-02 05:19:18 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"14"} Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 14]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (11.3ms) Completed 200 OK in 20ms (Views: 16.1ms | ActiveRecord: 0.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '44b27b25-79ba-48d7-bd53-1972ab0e59e8' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$L0FTDYv9wZM4WYyHKi1u..nhCh.9tMuPsrlIBOz02Xkp1rl2mFcwa"], ["stripe_id", "44b27b25-79ba-48d7-bd53-1972ab0e59e8"], ["created_at", "2016-10-02 09:19:18.532859"], ["updated_at", "2016-10-02 09:19:18.532859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:19:18 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.6ms) Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:19:18 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (1.6ms) Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 05:19:18 -0400 Processing by Tang::Admin::PlansController#new as HTML Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.9ms) Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 05:19:18 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"}  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.5ms) Completed 200 OK in 12ms (Views: 6.2ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 05:19:18 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:19:18 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.4ms) Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 05:19:18 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:19:18 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.6ms) Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '4a26063e-d2d7-49be-8203-b947d470cc15' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$7rH8YyVNWnU1A3Waf8dvuOg2QFxV1lk96FHjeqXJCtrYK9A5fU8P6"], ["stripe_id", "4a26063e-d2d7-49be-8203-b947d470cc15"], ["created_at", "2016-10-02 09:19:27.899381"], ["updated_at", "2016-10-02 09:19:27.899381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:19:27 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.0ms) Rendered devise/sessions/new.html.erb within layouts/application (25.0ms) Completed 200 OK in 235ms (Views: 223.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:19:28 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.6ms) Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 05:19:28 -0400 Processing by Tang::Admin::PlansController#new as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:19:28 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.6ms) Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '4a26063e-d2d7-49be-8203-b947d470cc15' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$MqT96tF19UwMtckcTGBpO.NdEuNqr5/b0SFwdAa3ufh1htUQYSEAO"], ["stripe_id", "4a26063e-d2d7-49be-8203-b947d470cc15"], ["created_at", "2016-10-02 09:19:28.204213"], ["updated_at", "2016-10-02 09:19:28.204213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:19:28 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.6ms) Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:19:28 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.5ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 05:19:28 -0400 Processing by Tang::Admin::PlansController#new as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:19:28 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.4ms) Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 05:19:28 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:19:28 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (4.7ms) Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 05:19:28 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:19:28 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.5ms) Rendered devise/sessions/new.html.erb within layouts/application (3.7ms) Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9706009c-709e-480c-8e62-18a2409166f0' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$KiJbaeYkR5TxxA/l1ijRkeClz6kbf7Ts8rQ.tX2JLE5maq5vMIZt2"], ["stripe_id", "9706009c-709e-480c-8e62-18a2409166f0"], ["created_at", "2016-10-02 09:22:40.905503"], ["updated_at", "2016-10-02 09:22:40.905503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:22:40 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.2ms) Rendered devise/sessions/new.html.erb within layouts/application (29.4ms) Completed 200 OK in 251ms (Views: 239.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:22:41 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = '9706009c-709e-480c-8e62-18a2409166f0' AND "users"."id" != 59) LIMIT 1 SQL (1.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 09:22:41.191127"], ["current_sign_in_at", "2016-10-02 09:22:41.191127"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 09:22:41.192172"], ["id", 59]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.3ms) Completed 200 OK in 821ms (Views: 3.8ms | ActiveRecord: 2.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 05:22:42 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 59]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (9.8ms) Completed 200 OK in 40ms (Views: 20.6ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 05:22:42 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 59]]  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 09:22:42.081657"], ["updated_at", "2016-10-02 09:22:42.081657"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "59"], ["created_at", "2016-10-02 09:22:42.081657"], ["item_id", 15], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/15 Completed 302 Found in 414ms (ActiveRecord: 3.2ms) Started GET "/tang/admin/plans/15" for 127.0.0.1 at 2016-10-02 05:22:42 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"15"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 59]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (7.1ms) Completed 200 OK in 16ms (Views: 11.6ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '9706009c-709e-480c-8e62-18a2409166f0' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$DREQkrW4BX3zjp1VMbvaYex5sVJxfr7xw8PvchcCKElpPWsc1Lbtm"], ["stripe_id", "9706009c-709e-480c-8e62-18a2409166f0"], ["created_at", "2016-10-02 09:22:42.524093"], ["updated_at", "2016-10-02 09:22:42.524093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:22:42 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.5ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:22:42 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = '9706009c-709e-480c-8e62-18a2409166f0' AND "users"."id" != 60) LIMIT 1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 09:22:42.540222"], ["current_sign_in_at", "2016-10-02 09:22:42.540222"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 09:22:42.540853"], ["id", 60]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 372ms (Views: 3.3ms | ActiveRecord: 1.1ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 05:22:42 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 60]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (2.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.3ms) Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 05:22:42 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 60]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.6ms) Completed 200 OK in 9ms (Views: 4.9ms | ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 05:22:42 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:22:42 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.6ms) Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 05:22:43 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:22:43 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.5ms) Rendered devise/sessions/new.html.erb within layouts/application (4.3ms) Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '8e54ff70-215e-427f-be48-a71d89c80f90' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$I18/B2ZcIm1edgzx7Nsiy.6jJV.NvAs550N2JXzGIfqspf0qlIev2"], ["stripe_id", "8e54ff70-215e-427f-be48-a71d89c80f90"], ["created_at", "2016-10-02 09:29:17.884998"], ["updated_at", "2016-10-02 09:29:17.884998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:29:17 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.7ms) Rendered devise/sessions/new.html.erb within layouts/application (29.3ms) Completed 200 OK in 261ms (Views: 247.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:29:18 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = '8e54ff70-215e-427f-be48-a71d89c80f90' AND "users"."id" != 61) LIMIT 1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 09:29:18.181134"], ["current_sign_in_at", "2016-10-02 09:29:18.181134"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 09:29:18.182186"], ["id", 61]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.3ms) Completed 200 OK in 451ms (Views: 3.8ms | ActiveRecord: 1.6ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 05:29:18 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 61]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (13.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (17.8ms) Completed 200 OK in 51ms (Views: 30.4ms | ActiveRecord: 1.4ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 05:29:18 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 61]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 09:29:18.722961"], ["updated_at", "2016-10-02 09:29:18.722961"]] SQL (0.4ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "61"], ["created_at", "2016-10-02 09:29:18.722961"], ["item_id", 16], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/16 Completed 302 Found in 446ms (ActiveRecord: 3.1ms) Started GET "/tang/admin/plans/16" for 127.0.0.1 at 2016-10-02 05:29:19 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"16"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 61]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 16]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (6.9ms) Completed 200 OK in 16ms (Views: 11.3ms | ActiveRecord: 0.5ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '8e54ff70-215e-427f-be48-a71d89c80f90' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$19XzAJ.lW4FPySHPyWy7UeC8W6TZbSwwsqIDAvXK94CF193pPGPkC"], ["stripe_id", "8e54ff70-215e-427f-be48-a71d89c80f90"], ["created_at", "2016-10-02 09:29:19.196087"], ["updated_at", "2016-10-02 09:29:19.196087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:29:19 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (1.8ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:29:19 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = '8e54ff70-215e-427f-be48-a71d89c80f90' AND "users"."id" != 62) LIMIT 1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 09:29:19.209288"], ["current_sign_in_at", "2016-10-02 09:29:19.209288"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 09:29:19.209877"], ["id", 62]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 416ms (Views: 3.3ms | ActiveRecord: 1.0ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 05:29:19 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 62]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (2.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.1ms) Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 05:29:19 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 62]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.6ms) Completed 200 OK in 9ms (Views: 4.8ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '8e54ff70-215e-427f-be48-a71d89c80f90' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$yfoNrdtIaiirEXXy.VGMwOh.NSi72tQEHyCS/nzamHP365LBCdWW."], ["stripe_id", "8e54ff70-215e-427f-be48-a71d89c80f90"], ["created_at", "2016-10-02 09:29:19.672537"], ["updated_at", "2016-10-02 09:29:19.672537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:29:19 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.8ms) Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:29:19 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = '8e54ff70-215e-427f-be48-a71d89c80f90' AND "users"."id" != 63) LIMIT 1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 09:29:19.691423"], ["current_sign_in_at", "2016-10-02 09:29:19.691423"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 09:29:19.692196"], ["id", 63]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.5ms) Completed 200 OK in 383ms (Views: 3.9ms | ActiveRecord: 1.3ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 05:29:20 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 63]] Tang::Subscription Load (8.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 63]] Tang::Plan Load (0.6ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (17.8ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 63]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (34.3ms) Completed 200 OK in 84ms (Views: 38.9ms | ActiveRecord: 29.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '8e54ff70-215e-427f-be48-a71d89c80f90' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$vIvtfsvckT5B1tL3NQfnuusOw8YzsGs9p.eOVSsYTN3cVzsWNsrQm"], ["stripe_id", "8e54ff70-215e-427f-be48-a71d89c80f90"], ["created_at", "2016-10-02 09:29:20.199455"], ["updated_at", "2016-10-02 09:29:20.199455"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:29:20 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.6ms) Completed 200 OK in 12ms (Views: 10.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:29:20 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = '8e54ff70-215e-427f-be48-a71d89c80f90' AND "users"."id" != 64) LIMIT 1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 09:29:20.228777"], ["current_sign_in_at", "2016-10-02 09:29:20.228777"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 09:29:20.229733"], ["id", 64]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 379ms (Views: 3.5ms | ActiveRecord: 1.4ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 05:29:20 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 64]] Tang::Subscription Load (0.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 64]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 64]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (1.3ms) Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '08867f90-52e8-45b4-99c2-245f6c9a7f45' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$B3JQukhCGEi8jhkFHkuugOEyjzwAs8S9CpcJBJZZgbYELdmfJHkSO"], ["stripe_id", "08867f90-52e8-45b4-99c2-245f6c9a7f45"], ["created_at", "2016-10-02 09:31:26.715013"], ["updated_at", "2016-10-02 09:31:26.715013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:31:26 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (26.6ms) Completed 200 OK in 288ms (Views: 276.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:31:27 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = '08867f90-52e8-45b4-99c2-245f6c9a7f45' AND "users"."id" != 65) LIMIT 1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 09:31:27.040584"], ["current_sign_in_at", "2016-10-02 09:31:27.040584"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 09:31:27.041627"], ["id", 65]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.5ms) Completed 200 OK in 872ms (Views: 3.9ms | ActiveRecord: 1.5ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 05:31:27 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 65]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (9.8ms) Completed 200 OK in 40ms (Views: 22.0ms | ActiveRecord: 1.1ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 05:31:27 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 65]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 09:31:27.991614"], ["updated_at", "2016-10-02 09:31:27.991614"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "65"], ["created_at", "2016-10-02 09:31:27.991614"], ["item_id", 17], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/17 Completed 302 Found in 403ms (ActiveRecord: 3.6ms) Started GET "/tang/admin/plans/17" for 127.0.0.1 at 2016-10-02 05:31:28 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"17"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 65]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 17]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (9.2ms) Completed 200 OK in 20ms (Views: 14.2ms | ActiveRecord: 0.5ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '08867f90-52e8-45b4-99c2-245f6c9a7f45' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$rjw9sJsGhFtpBYhTw3vQOuFN/ijWR8xHU0KwRv/aRs.j02pvsvJDK"], ["stripe_id", "08867f90-52e8-45b4-99c2-245f6c9a7f45"], ["created_at", "2016-10-02 09:31:28.431591"], ["updated_at", "2016-10-02 09:31:28.431591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:31:28 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.6ms) Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:31:28 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = '08867f90-52e8-45b4-99c2-245f6c9a7f45' AND "users"."id" != 66) LIMIT 1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 09:31:28.452449"], ["current_sign_in_at", "2016-10-02 09:31:28.452449"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 09:31:28.453268"], ["id", 66]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 368ms (Views: 3.5ms | ActiveRecord: 1.4ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 05:31:28 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 66]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.3ms) Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 05:31:28 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 66]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (5.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (5.4ms) Completed 200 OK in 13ms (Views: 7.2ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '08867f90-52e8-45b4-99c2-245f6c9a7f45' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$grtC78WBVXXuAczsdKSeXOaeXUtpGQ8lBFcZARLa.qdg3nbgUMcgK"], ["stripe_id", "08867f90-52e8-45b4-99c2-245f6c9a7f45"], ["created_at", "2016-10-02 09:31:28.876491"], ["updated_at", "2016-10-02 09:31:28.876491"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:31:28 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.6ms) Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:31:28 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = '08867f90-52e8-45b4-99c2-245f6c9a7f45' AND "users"."id" != 67) LIMIT 1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 09:31:28.898338"], ["current_sign_in_at", "2016-10-02 09:31:28.898338"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 09:31:28.899347"], ["id", 67]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 367ms (Views: 3.4ms | ActiveRecord: 1.3ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '8cbe2992-84e1-4f5e-bd5e-0cb461db5452' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '8cbe2992-84e1-4f5e-bd5e-0cb461db5452' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "8cbe2992-84e1-4f5e-bd5e-0cb461db5452"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 09:31:29.264208"], ["updated_at", "2016-10-02 09:31:29.264208"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 09:31:29.264208"], ["item_id", 18], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 05:31:29 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 67]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 67]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.8ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 67]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (17.5ms) Completed 200 OK in 50ms (Views: 34.8ms | ActiveRecord: 3.7ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '08867f90-52e8-45b4-99c2-245f6c9a7f45' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$X7Cz2lOnsHgZs42sql/QsOj7SqRHC3wiXfYyiRODFwTXaLaWBomTq"], ["stripe_id", "08867f90-52e8-45b4-99c2-245f6c9a7f45"], ["created_at", "2016-10-02 09:31:29.745297"], ["updated_at", "2016-10-02 09:31:29.745297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:31:29 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.3ms) Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:31:29 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = '08867f90-52e8-45b4-99c2-245f6c9a7f45' AND "users"."id" != 68) LIMIT 1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 09:31:29.776580"], ["current_sign_in_at", "2016-10-02 09:31:29.776580"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 09:31:29.778258"], ["id", 68]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 389ms (Views: 3.4ms | ActiveRecord: 1.6ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '8cbe2992-84e1-4f5e-bd5e-0cb461db5452' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '8cbe2992-84e1-4f5e-bd5e-0cb461db5452' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "8cbe2992-84e1-4f5e-bd5e-0cb461db5452"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 09:31:30.162340"], ["updated_at", "2016-10-02 09:31:30.162340"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 09:31:30.162340"], ["item_id", 19], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 05:31:30 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 68]] Tang::Subscription Load (0.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 68]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 68]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.4ms) Completed 200 OK in 7ms (Views: 3.5ms | ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '74ba5e11-f482-44e5-addc-c7039dd9605e' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$RlP.hemEjdCCft.eB1iEHup5aFvJDV.ihcDWLBw3TIKGeHYPNUKQW"], ["stripe_id", "74ba5e11-f482-44e5-addc-c7039dd9605e"], ["created_at", "2016-10-02 09:33:23.249081"], ["updated_at", "2016-10-02 09:33:23.249081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:33:23 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (36.3ms) Completed 200 OK in 321ms (Views: 308.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:33:23 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = '74ba5e11-f482-44e5-addc-c7039dd9605e' AND "users"."id" != 69) LIMIT 1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 09:33:23.612728"], ["current_sign_in_at", "2016-10-02 09:33:23.612728"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 09:33:23.613977"], ["id", 69]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.9ms) Completed 200 OK in 888ms (Views: 4.8ms | ActiveRecord: 1.5ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 05:33:24 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 69]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (10.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (15.0ms) Completed 200 OK in 49ms (Views: 29.6ms | ActiveRecord: 1.5ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 05:33:24 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 69]]  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 09:33:24.584108"], ["updated_at", "2016-10-02 09:33:24.584108"]] SQL (0.4ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "69"], ["created_at", "2016-10-02 09:33:24.584108"], ["item_id", 20], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/20 Completed 302 Found in 390ms (ActiveRecord: 3.3ms) Started GET "/tang/admin/plans/20" for 127.0.0.1 at 2016-10-02 05:33:24 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"20"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 69]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 20]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (8.7ms) Completed 200 OK in 23ms (Views: 13.7ms | ActiveRecord: 0.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '74ba5e11-f482-44e5-addc-c7039dd9605e' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$Rjd1f4dFhFWbp6wWiScDrejRAHC7CLNMu/TKwkoRCVWS76aI9SoPi"], ["stripe_id", "74ba5e11-f482-44e5-addc-c7039dd9605e"], ["created_at", "2016-10-02 09:33:25.011628"], ["updated_at", "2016-10-02 09:33:25.011628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:33:25 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (3.0ms) Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:33:25 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = '74ba5e11-f482-44e5-addc-c7039dd9605e' AND "users"."id" != 70) LIMIT 1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 09:33:25.032658"], ["current_sign_in_at", "2016-10-02 09:33:25.032658"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 09:33:25.033915"], ["id", 70]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 368ms (Views: 3.4ms | ActiveRecord: 1.5ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 05:33:25 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 70]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (2.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.2ms) Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 05:33:25 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 70]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.9ms) Completed 200 OK in 10ms (Views: 5.3ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '74ba5e11-f482-44e5-addc-c7039dd9605e' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$yKYSHWFCaDbDdiJV9HUg3uFUbJF1pswmKI8LzEniSww8p7uRfxuay"], ["stripe_id", "74ba5e11-f482-44e5-addc-c7039dd9605e"], ["created_at", "2016-10-02 09:33:25.448688"], ["updated_at", "2016-10-02 09:33:25.448688"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:33:25 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (3.1ms) Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:33:25 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = '74ba5e11-f482-44e5-addc-c7039dd9605e' AND "users"."id" != 71) LIMIT 1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 09:33:25.472302"], ["current_sign_in_at", "2016-10-02 09:33:25.472302"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 09:33:25.473179"], ["id", 71]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 421ms (Views: 3.3ms | ActiveRecord: 1.5ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'ac6b1794-bba3-4e81-97bc-c794d82ac36c' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'ac6b1794-bba3-4e81-97bc-c794d82ac36c' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "ac6b1794-bba3-4e81-97bc-c794d82ac36c"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 09:33:25.892390"], ["updated_at", "2016-10-02 09:33:25.892390"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 09:33:25.892390"], ["item_id", 21], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 05:33:26 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 71]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 71]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.8ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 71]] Tang::Plan Load (0.5ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (21.1ms) Completed 200 OK in 55ms (Views: 39.3ms | ActiveRecord: 4.2ms) Started GET "/tang/account/subscription/new?plan=21" for 127.0.0.1 at 2016-10-02 05:33:26 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"21"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 71]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 21]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (8.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (27.6ms) Completed 200 OK in 55ms (Views: 37.3ms | ActiveRecord: 1.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '74ba5e11-f482-44e5-addc-c7039dd9605e' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$1g6poaCq3cLdd1.KpMpO5.f6Ly.SARdOQmOXE0UGoCLljJ9vatYM6"], ["stripe_id", "74ba5e11-f482-44e5-addc-c7039dd9605e"], ["created_at", "2016-10-02 09:33:26.449485"], ["updated_at", "2016-10-02 09:33:26.449485"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:33:26 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.5ms) Rendered devise/sessions/new.html.erb within layouts/application (3.6ms) Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:33:26 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.3ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = '74ba5e11-f482-44e5-addc-c7039dd9605e' AND "users"."id" != 72) LIMIT 1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 09:33:26.487254"], ["current_sign_in_at", "2016-10-02 09:33:26.487254"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 09:33:26.489796"], ["id", 72]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.4ms) Completed 200 OK in 393ms (Views: 4.0ms | ActiveRecord: 2.2ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'ac6b1794-bba3-4e81-97bc-c794d82ac36c' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'ac6b1794-bba3-4e81-97bc-c794d82ac36c' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "ac6b1794-bba3-4e81-97bc-c794d82ac36c"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 09:33:26.874097"], ["updated_at", "2016-10-02 09:33:26.874097"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 09:33:26.874097"], ["item_id", 22], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 05:33:27 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 72]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 72]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 72]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (4.3ms) Completed 200 OK in 13ms (Views: 6.8ms | ActiveRecord: 1.5ms) Started GET "/tang/account/subscription/new?plan=22" for 127.0.0.1 at 2016-10-02 05:33:27 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"22"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 72]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 22]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (1.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.6ms) Completed 200 OK in 8ms (Views: 4.0ms | ActiveRecord: 0.7ms)  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5ec9daef-17e3-42f3-9106-1163fce9f5b1' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$6JZgRPnBXhFM6OH37biPIeqc1znCCsSQ1dUdAIesNX3S3h3R8m.Qy"], ["stripe_id", "5ec9daef-17e3-42f3-9106-1163fce9f5b1"], ["created_at", "2016-10-02 09:36:39.358973"], ["updated_at", "2016-10-02 09:36:39.358973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:36:39 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.7ms) Rendered devise/sessions/new.html.erb within layouts/application (47.3ms) Completed 200 OK in 354ms (Views: 334.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:36:39 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = '5ec9daef-17e3-42f3-9106-1163fce9f5b1' AND "users"."id" != 73) LIMIT 1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 09:36:39.763506"], ["current_sign_in_at", "2016-10-02 09:36:39.763506"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 09:36:39.764582"], ["id", 73]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.3ms) Completed 200 OK in 837ms (Views: 3.7ms | ActiveRecord: 1.6ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 05:36:40 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 73]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (10.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (13.1ms) Completed 200 OK in 45ms (Views: 24.6ms | ActiveRecord: 1.4ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 05:36:40 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 73]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 09:36:40.682021"], ["updated_at", "2016-10-02 09:36:40.682021"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "73"], ["created_at", "2016-10-02 09:36:40.682021"], ["item_id", 23], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/23 Completed 302 Found in 400ms (ActiveRecord: 2.7ms) Started GET "/tang/admin/plans/23" for 127.0.0.1 at 2016-10-02 05:36:41 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"23"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 73]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 23]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (7.8ms) Completed 200 OK in 15ms (Views: 11.7ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5ec9daef-17e3-42f3-9106-1163fce9f5b1' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$VkG8.U/ZWr/AxErYvHjNnuZZQcoO4J3xmgmilgkC7/HnqDdMh2Mry"], ["stripe_id", "5ec9daef-17e3-42f3-9106-1163fce9f5b1"], ["created_at", "2016-10-02 09:36:41.109862"], ["updated_at", "2016-10-02 09:36:41.109862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:36:41 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.7ms) Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:36:41 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = '5ec9daef-17e3-42f3-9106-1163fce9f5b1' AND "users"."id" != 74) LIMIT 1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 09:36:41.124501"], ["current_sign_in_at", "2016-10-02 09:36:41.124501"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 09:36:41.125296"], ["id", 74]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 398ms (Views: 3.4ms | ActiveRecord: 1.5ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 05:36:41 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 74]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.7ms) Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 05:36:41 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 74]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (5.2ms) Completed 200 OK in 11ms (Views: 6.7ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5ec9daef-17e3-42f3-9106-1163fce9f5b1' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$Cp7cAQ4EtOyy22v5EvpXIOjbKgTVxU9OW0d1dAmQvelsd89V02xQO"], ["stripe_id", "5ec9daef-17e3-42f3-9106-1163fce9f5b1"], ["created_at", "2016-10-02 09:36:41.573375"], ["updated_at", "2016-10-02 09:36:41.573375"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:36:41 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.9ms) Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:36:41 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = '5ec9daef-17e3-42f3-9106-1163fce9f5b1' AND "users"."id" != 75) LIMIT 1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 09:36:41.593989"], ["current_sign_in_at", "2016-10-02 09:36:41.593989"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 09:36:41.595469"], ["id", 75]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 386ms (Views: 3.3ms | ActiveRecord: 1.7ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'df36294b-862b-48dd-bbbf-f780ef0f5053' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'df36294b-862b-48dd-bbbf-f780ef0f5053' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "df36294b-862b-48dd-bbbf-f780ef0f5053"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 09:36:41.979295"], ["updated_at", "2016-10-02 09:36:41.979295"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 09:36:41.979295"], ["item_id", 24], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 05:36:42 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 75]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 75]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.6ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 75]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (21.8ms) Completed 200 OK in 45ms (Views: 31.5ms | ActiveRecord: 3.9ms) Started GET "/tang/account/subscription/new?plan=24" for 127.0.0.1 at 2016-10-02 05:36:42 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"24"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 75]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 24]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (4.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (9.0ms) Completed 200 OK in 34ms (Views: 14.8ms | ActiveRecord: 1.1ms)  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.3ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5ec9daef-17e3-42f3-9106-1163fce9f5b1' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$QvCTlZE9j4H78SLqMGPmmex3i7XRQQ1pDDCkwNL18yGNt2KZ.3PdW"], ["stripe_id", "5ec9daef-17e3-42f3-9106-1163fce9f5b1"], ["created_at", "2016-10-02 09:36:42.582169"], ["updated_at", "2016-10-02 09:36:42.582169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:36:42 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.6ms) Rendered devise/sessions/new.html.erb within layouts/application (5.7ms) Completed 200 OK in 11ms (Views: 9.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 05:36:42 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = '5ec9daef-17e3-42f3-9106-1163fce9f5b1' AND "users"."id" != 76) LIMIT 1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 09:36:42.607100"], ["current_sign_in_at", "2016-10-02 09:36:42.607100"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 09:36:42.608008"], ["id", 76]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.2ms) Completed 200 OK in 367ms (Views: 3.6ms | ActiveRecord: 1.2ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'df36294b-862b-48dd-bbbf-f780ef0f5053' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'df36294b-862b-48dd-bbbf-f780ef0f5053' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "df36294b-862b-48dd-bbbf-f780ef0f5053"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 09:36:42.973467"], ["updated_at", "2016-10-02 09:36:42.973467"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 09:36:42.973467"], ["item_id", 25], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 05:36:43 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 76]] Tang::Subscription Load (0.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 76]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 76]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.3ms) Completed 200 OK in 7ms (Views: 3.4ms | ActiveRecord: 0.9ms) Started GET "/tang/account/subscription/new?plan=25" for 127.0.0.1 at 2016-10-02 05:36:43 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"25"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 76]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 25]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (22.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$iCEWUm6osGAguEucVIPHt.N9MjlRpxQdcDDRi9/MJin.pmv0jBHL."], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:19.062309"], ["updated_at", "2016-10-02 10:52:19.062309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$l0tG7Nnf8S2kibjFwLNcxe2rMzKFf1cdvBzBszrRsDqMe2awGEeIi"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:19.092003"], ["updated_at", "2016-10-02 10:52:19.092003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$p44H0fWmx8vGwL/NWTlbqO7Q62qilp3sP1iabWPSpjs7BLRNxaPmO"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:19.108187"], ["updated_at", "2016-10-02 10:52:19.108187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 51ms (Views: 30.4ms | ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$9go82vgF3sLkTVXZN4aoauOnZVpfP/WrdZLhWAHQWYdbShKLOL3gS"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:19.171260"], ["updated_at", "2016-10-02 10:52:19.171260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$h.Eg89dwlS/j.7eodQRB3uyQkflYBWDdg7tvT7RVu//t8/KcFPT6C"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:19.177339"], ["updated_at", "2016-10-02 10:52:19.177339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$3peICBIbdqo0OicGK2RX9.m/TqEbZmNE.GIiJty35/2ctHuBk9Rfm"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:19.187191"], ["updated_at", "2016-10-02 10:52:19.187191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$ILE0w8q5jYpCHcNNm9wL/uqV8rtYVs.iSh/mVLlNy0r709x1aiV1K"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:19.193960"], ["updated_at", "2016-10-02 10:52:19.193960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$Yee4mrOC433wBkWSMeJFnOWzjRzgqek3nymTGb7yIHf4Tkmompa5u"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:19.200499"], ["updated_at", "2016-10-02 10:52:19.200499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$A6LB9bOl7GPKWbqnqJwE5.be07ipPkdS7jtidAnXbnkGcK/0JX2Sy"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:19.206624"], ["updated_at", "2016-10-02 10:52:19.206624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$XJHcjYsbLNtpHJII6CaXPewPdeWti7yk1DG6rWxSXAlta3a.6RAxO"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:19.212285"], ["updated_at", "2016-10-02 10:52:19.212285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$XJ7.7ZAo4eLmL2yhBCVS7eFrjA5BMUJ4qVP66WMPiR7vpRMlo5IoW"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:19.217967"], ["updated_at", "2016-10-02 10:52:19.217967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$JGpxgxUskX3HOy1dmh5PuOADPlvFFJHMQAHRAhxRfx7utQnd9iXfS"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:19.223485"], ["updated_at", "2016-10-02 10:52:19.223485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$rC0rvpFrUdp21qjaloqBV.x2C1YNPKa.oD6KGTxieVUyquKCforz2"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:19.229136"], ["updated_at", "2016-10-02 10:52:19.229136"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$hqYQB5WaFcZq6EV23II4lu5OaIjyTFA3fS4B89NkJ7ufdDNAHF2y."], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:19.235124"], ["updated_at", "2016-10-02 10:52:19.235124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$mJKPkzJS5.Yd8pOBtus.POhnvb0gSFpdNRmVFzCG.5LHoyNuaxJ/e"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:19.240904"], ["updated_at", "2016-10-02 10:52:19.240904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$HsxDxvfP0vudNMlWW6KMr.EgImzckbPWSGTIxG7GbXblnUoERwIEu"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:19.246565"], ["updated_at", "2016-10-02 10:52:19.246565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$BJl2M3ezubZo0tYqAwZjPOBNnNgSIZ4EEYrd9QS4z9HW1pmmNtsFe"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:19.252511"], ["updated_at", "2016-10-02 10:52:19.252511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$0cto3KaQ6BJaFJfWctv.QugH9ZYocmFz9OtuwAAcArJGSINF1RNIO"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:19.258336"], ["updated_at", "2016-10-02 10:52:19.258336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$8qHfYH2Z8SWLSRP3cYMaPezF7Pkrlrmtq4dZV4KZ0yuekzETShv62"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:19.263973"], ["updated_at", "2016-10-02 10:52:19.263973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$ikc/Y/FDZ1zto9IP4Wy4l.6YhgvbWunAxnZCgi4YOVmiqYnP49yOu"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:19.269498"], ["updated_at", "2016-10-02 10:52:19.269498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$Oj1NfV1ejZ1hfHvY64SS7.FMwE6Aqz.K5sZyHgahsvFSgeHibO99e"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:19.275038"], ["updated_at", "2016-10-02 10:52:19.275038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$RaD2C8VeJfeEQLHSGn3Hme083KEKgxoGQ3WixTBkGy02bpKIGzYW."], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:19.280919"], ["updated_at", "2016-10-02 10:52:19.280919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$yQWcJm/nBlgCwBMov4P8feF2XCwRmYMDDkTx0NVylQIwBJpoD3bCC"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:19.286574"], ["updated_at", "2016-10-02 10:52:19.286574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$L.04asIqtbGYk/0ACERqsulQC5AkmwofoMDj9HZSnZ1E4cJH00V5q"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:19.292049"], ["updated_at", "2016-10-02 10:52:19.292049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$G0XBXl838MArR7oBBF.O3eY8ikh67KmESjgeiPzAmRSAbH2fgr9CW"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:19.297963"], ["updated_at", "2016-10-02 10:52:19.297963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$HDP6ag1bWmd3BWyH1axX9uwMmYUXi4.gWAq4Ktnjh5jn077IpuTay"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:19.303723"], ["updated_at", "2016-10-02 10:52:19.303723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$1pQI3NxCstefrP2zCVq71OUDolBUhnYv3qmuawdQAHd.LCTScmGAq"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:19.309793"], ["updated_at", "2016-10-02 10:52:19.309793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1d261653-2b5b-44ec-906e-03b348d1cce6' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1d261653-2b5b-44ec-906e-03b348d1cce6' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "1d261653-2b5b-44ec-906e-03b348d1cce6"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 10:52:19.323108"], ["updated_at", "2016-10-02 10:52:19.323108"]] SQL (17.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-02 10:52:19.323108"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 14ms (Views: 12.3ms | ActiveRecord: 0.3ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$ntd3A6YBSoYWp1nwxsg6oOIA2eUC5w9tLmEp/DBlmdHcB5DBnnDMC"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:20.268550"], ["updated_at", "2016-10-02 10:52:20.268550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1d261653-2b5b-44ec-906e-03b348d1cce6' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1d261653-2b5b-44ec-906e-03b348d1cce6' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "1d261653-2b5b-44ec-906e-03b348d1cce6"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 10:52:20.272344"], ["updated_at", "2016-10-02 10:52:20.272344"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-02 10:52:20.272344"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"2"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 28]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (0.3ms) Completed 200 OK in 11ms (Views: 6.0ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$dhvIgNInh1kaO7KgZzH23OnL..H/peE3R5z10RHzw8vKPvQsldtIe"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:20.668229"], ["updated_at", "2016-10-02 10:52:20.668229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$LPg5bWtqAEWWo7TUn4EvnOk8h2J5PVwZXxHbc5yO9fuGjbXWvcE5e"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:20.684726"], ["updated_at", "2016-10-02 10:52:20.684726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1d261653-2b5b-44ec-906e-03b348d1cce6' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1d261653-2b5b-44ec-906e-03b348d1cce6' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "1d261653-2b5b-44ec-906e-03b348d1cce6"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 10:52:20.688329"], ["updated_at", "2016-10-02 10:52:20.688329"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-02 10:52:20.688329"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#edit as HTML Parameters: {"id"=>"3"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 30]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 10ms (Views: 7.9ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$CGgV0atI523JpHu9fOR9wegoAy4LUSLC21fYaMQjTa8OaPb2MFmRS"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:21.057379"], ["updated_at", "2016-10-02 10:52:21.057379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"1d261653-2b5b-44ec-906e-03b348d1cce6", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1d261653-2b5b-44ec-906e-03b348d1cce6' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1d261653-2b5b-44ec-906e-03b348d1cce6' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "1d261653-2b5b-44ec-906e-03b348d1cce6"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["created_at", "2016-10-02 10:52:21.067720"], ["updated_at", "2016-10-02 10:52:21.067720"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "31"], ["created_at", "2016-10-02 10:52:21.067720"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/4 Completed 302 Found in 381ms (ActiveRecord: 1.3ms)  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$bceWT2CmNNNIk6hdO6KVje0KEnVMK.Inh3HsvMRv8dvwSU3TsVbVK"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:21.451710"], ["updated_at", "2016-10-02 10:52:21.451710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"1d261653-2b5b-44ec-906e-03b348d1cce6", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1d261653-2b5b-44ec-906e-03b348d1cce6' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1d261653-2b5b-44ec-906e-03b348d1cce6' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "1d261653-2b5b-44ec-906e-03b348d1cce6"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["created_at", "2016-10-02 10:52:21.460251"], ["updated_at", "2016-10-02 10:52:21.460251"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "32"], ["created_at", "2016-10-02 10:52:21.460251"], ["item_id", 5], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/5 Completed 302 Found in 383ms (ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$tbOB49H3KT1GnurjToxhs.4bJ1ymKdaU15mn1pwGuBgRt7wEUO..G"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:21.847957"], ["updated_at", "2016-10-02 10:52:21.847957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"1d261653-2b5b-44ec-906e-03b348d1cce6", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1d261653-2b5b-44ec-906e-03b348d1cce6' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1d261653-2b5b-44ec-906e-03b348d1cce6' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "1d261653-2b5b-44ec-906e-03b348d1cce6"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["created_at", "2016-10-02 10:52:21.856936"], ["updated_at", "2016-10-02 10:52:21.856936"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "33"], ["created_at", "2016-10-02 10:52:21.856936"], ["item_id", 6], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/6 Completed 302 Found in 396ms (ActiveRecord: 1.3ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$fCHdd0Zzgs7XuT1BqfheIOBHQitFhe3fNnGJZ.u/RNkvJYaRgnXr2"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:22.257344"], ["updated_at", "2016-10-02 10:52:22.257344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"1d261653-2b5b-44ec-906e-03b348d1cce6", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1d261653-2b5b-44ec-906e-03b348d1cce6' LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.1ms) Completed 200 OK in 17ms (Views: 0.5ms | ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$.Gt5lEsZzwqgl/LbVahtp.e9wzPkKut59kT08AxKp3sKJOGskFruq"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:22.285472"], ["updated_at", "2016-10-02 10:52:22.285472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"1d261653-2b5b-44ec-906e-03b348d1cce6", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1d261653-2b5b-44ec-906e-03b348d1cce6' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.1ms) Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$gxucMepvW.GGCm06HrhqcedYjz/WRVGbuVscDJ9mFiC87z.LDx8Su"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:22.302860"], ["updated_at", "2016-10-02 10:52:22.302860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1d261653-2b5b-44ec-906e-03b348d1cce6' LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1d261653-2b5b-44ec-906e-03b348d1cce6' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "1d261653-2b5b-44ec-906e-03b348d1cce6"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 10:52:22.309012"], ["updated_at", "2016-10-02 10:52:22.309012"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 10:52:22.309012"], ["item_id", 7], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$GJRF8UmSF1fusMYWMdp16eCML83JF5NmaFdadoiujOTrBVSW9Q0Fq"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:22.897420"], ["updated_at", "2016-10-02 10:52:22.897420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1d261653-2b5b-44ec-906e-03b348d1cce6' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1d261653-2b5b-44ec-906e-03b348d1cce6' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "1d261653-2b5b-44ec-906e-03b348d1cce6"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 10:52:22.900975"], ["updated_at", "2016-10-02 10:52:22.900975"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 10:52:22.900975"], ["item_id", 8], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"1d261653-2b5b-44ec-906e-03b348d1cce6", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"8"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 37]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 8]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '1d261653-2b5b-44ec-906e-03b348d1cce6' AND "tang_plans"."id" != 8) LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '1d261653-2b5b-44ec-906e-03b348d1cce6' AND "tang_plans"."id" != 8) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/8 Completed 302 Found in 735ms (ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$83rDmkftKnyo7zt836NjTezl0MxkYu9VdwECwbB7J9lLbn2YJUBnC"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:24.007621"], ["updated_at", "2016-10-02 10:52:24.007621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1d261653-2b5b-44ec-906e-03b348d1cce6' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1d261653-2b5b-44ec-906e-03b348d1cce6' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "1d261653-2b5b-44ec-906e-03b348d1cce6"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 10:52:24.011270"], ["updated_at", "2016-10-02 10:52:24.011270"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "37"], ["created_at", "2016-10-02 10:52:24.011270"], ["item_id", 9], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"1d261653-2b5b-44ec-906e-03b348d1cce6", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"9"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 38]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 9]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '1d261653-2b5b-44ec-906e-03b348d1cce6' AND "tang_plans"."id" != 9) LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '1d261653-2b5b-44ec-906e-03b348d1cce6' AND "tang_plans"."id" != 9) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/9 Completed 302 Found in 786ms (ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$TmFVksZeV9L6ZbbX4cDKwO5A9F1Q8BXjP0VGMsAgN5mZbAER1Bpfu"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:25.306790"], ["updated_at", "2016-10-02 10:52:25.306790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1d261653-2b5b-44ec-906e-03b348d1cce6' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1d261653-2b5b-44ec-906e-03b348d1cce6' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "1d261653-2b5b-44ec-906e-03b348d1cce6"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 10:52:25.310383"], ["updated_at", "2016-10-02 10:52:25.310383"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "38"], ["created_at", "2016-10-02 10:52:25.310383"], ["item_id", 10], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"1d261653-2b5b-44ec-906e-03b348d1cce6", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"10"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 39]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 10]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '1d261653-2b5b-44ec-906e-03b348d1cce6' AND "tang_plans"."id" != 10) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.0ms) Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$G7nXE7pPx/6R86ZII0sVO.VrEv4Eth0dFHLZS.K03sbQ8em76JAQa"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:25.693136"], ["updated_at", "2016-10-02 10:52:25.693136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1d261653-2b5b-44ec-906e-03b348d1cce6' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1d261653-2b5b-44ec-906e-03b348d1cce6' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "1d261653-2b5b-44ec-906e-03b348d1cce6"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 10:52:25.697595"], ["updated_at", "2016-10-02 10:52:25.697595"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "39"], ["created_at", "2016-10-02 10:52:25.697595"], ["item_id", 11], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"1d261653-2b5b-44ec-906e-03b348d1cce6", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"11"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 40]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 11]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '1d261653-2b5b-44ec-906e-03b348d1cce6' AND "tang_plans"."id" != 11) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$UmCBt05pszm5c47sfi6EeecrpgxosHlpF/jGWCZqGhfw9DRNG0b5q"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:26.075871"], ["updated_at", "2016-10-02 10:52:26.075871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1d261653-2b5b-44ec-906e-03b348d1cce6' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1d261653-2b5b-44ec-906e-03b348d1cce6' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "1d261653-2b5b-44ec-906e-03b348d1cce6"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 10:52:26.079170"], ["updated_at", "2016-10-02 10:52:26.079170"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "40"], ["created_at", "2016-10-02 10:52:26.079170"], ["item_id", 12], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"12"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 41]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 12]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 12], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 12\nstripe_id: 1d261653-2b5b-44ec-906e-03b348d1cce6\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: \nhighlight: false\ncreated_at: 2016-10-02 10:52:26.079170000 Z\nupdated_at: 2016-10-02 10:52:26.079170000 Z\n"], ["whodunnit", "41"], ["created_at", "2016-10-02 10:52:26.455331"]] SQL (0.2ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 12]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 756ms (ActiveRecord: 0.9ms)  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$dvtU/y5Wp6Tuf4WxJJggW.hjDME25fsbsYGTabPdXP9FcsXXt01KO"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:27.212926"], ["updated_at", "2016-10-02 10:52:27.212926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1d261653-2b5b-44ec-906e-03b348d1cce6' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1d261653-2b5b-44ec-906e-03b348d1cce6' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "1d261653-2b5b-44ec-906e-03b348d1cce6"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 10:52:27.216048"], ["updated_at", "2016-10-02 10:52:27.216048"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "41"], ["created_at", "2016-10-02 10:52:27.216048"], ["item_id", 13], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"13"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 42]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 13]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 13], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 13\nstripe_id: 1d261653-2b5b-44ec-906e-03b348d1cce6\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: \nhighlight: false\ncreated_at: 2016-10-02 10:52:27.216048000 Z\nupdated_at: 2016-10-02 10:52:27.216048000 Z\n"], ["whodunnit", "42"], ["created_at", "2016-10-02 10:52:27.632160"]] SQL (0.3ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 758ms (ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$GdV0vv2wwr2exLXbnQbYvesfYuwuS0e.GVgojV9sH5S0QH1Hd4Xka"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:28.394587"], ["updated_at", "2016-10-02 10:52:28.394587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$Hn4ZVV.IkSzRw00JhkICTe41BDkWZsKajAogHMJiSHW2OqE3tlmDm"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:28.400571"], ["updated_at", "2016-10-02 10:52:28.400571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$imW0A8ScMz10UtjdcogB7O8UOxAxqqknYY9YAvpJdKWczBaj4DnEe"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:28.406584"], ["updated_at", "2016-10-02 10:52:28.406584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$VksEZQ5B497EzblEScYEIO.zP9WYr.FJL2SY4urIZ4duFbFJBhNBi"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:28.412184"], ["updated_at", "2016-10-02 10:52:28.412184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$KY2cYq0f0MnVNQm9gHsikepXASNCsV59UXxdTndxMrriW3FB78VGC"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:28.418085"], ["updated_at", "2016-10-02 10:52:28.418085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$j04gZsayKsaARdZJO.FN4ezycWJnuFUXrXAl.mnwpI30F1BAU.NUG"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:28.423673"], ["updated_at", "2016-10-02 10:52:28.423673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$HgHsNmtmtbpvH1xiFodzb.g.LEiCtS7FZndl0OF2ZJCCdOVxX5xhe"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:28.429642"], ["updated_at", "2016-10-02 10:52:28.429642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$Jmupik3ou3jGbnxRwZpHPeY5OxKK5yhDRla15BD7SiOOf/SI/tLnK"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:28.435171"], ["updated_at", "2016-10-02 10:52:28.435171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$IzG4XlQrwiwESgCpK/VRG.HOUpIpqe7eC1ZFhUmWMSOqkxvtLCgtG"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:28.440814"], ["updated_at", "2016-10-02 10:52:28.440814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5cf1c85e-aab0-4191-82c6-8c9229b0b519' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$HwOTpSMpvWZ/aaSAr41C7uPI4r3YuC8lkK7.6.W0LSB4RGUbjaQe2"], ["stripe_id", "5cf1c85e-aab0-4191-82c6-8c9229b0b519"], ["created_at", "2016-10-02 10:52:28.446396"], ["updated_at", "2016-10-02 10:52:28.446396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 16ms (Views: 9.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5068ce12-a73b-41a4-bdbb-8d674a253ba8' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$OwgPVyupGPunNQ2KK.BZ8.sD1pYUIS/mjqnyRGtW6VZZPxMte0Wwq"], ["stripe_id", "5068ce12-a73b-41a4-bdbb-8d674a253ba8"], ["created_at", "2016-10-02 10:52:31.666245"], ["updated_at", "2016-10-02 10:52:31.666245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 06:52:31 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.2ms) Rendered devise/sessions/new.html.erb within layouts/application (33.8ms) Completed 200 OK in 417ms (Views: 403.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 06:52:32 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = '5068ce12-a73b-41a4-bdbb-8d674a253ba8' AND "users"."id" != 53) LIMIT 1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 10:52:32.119993"], ["current_sign_in_at", "2016-10-02 10:52:32.119993"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 10:52:32.120915"], ["id", 53]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (3.0ms) Completed 200 OK in 414ms (Views: 4.8ms | ActiveRecord: 1.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 06:52:32 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (11.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (15.5ms) Completed 200 OK in 77ms (Views: 30.1ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 06:52:32 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]]  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 10:52:32.658632"], ["updated_at", "2016-10-02 10:52:32.658632"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "53"], ["created_at", "2016-10-02 10:52:32.658632"], ["item_id", 14], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/14 Completed 302 Found in 417ms (ActiveRecord: 3.1ms) Started GET "/tang/admin/plans/14" for 127.0.0.1 at 2016-10-02 06:52:33 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"14"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 14]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (8.2ms) Completed 200 OK in 17ms (Views: 12.5ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5068ce12-a73b-41a4-bdbb-8d674a253ba8' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$ooOYbQaVVQQXYImXRytjjevAnMfIoqnrw3zQ3.P.UyH.VkfpULQUe"], ["stripe_id", "5068ce12-a73b-41a4-bdbb-8d674a253ba8"], ["created_at", "2016-10-02 10:52:33.102891"], ["updated_at", "2016-10-02 10:52:33.102891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 06:52:33 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 06:52:33 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = '5068ce12-a73b-41a4-bdbb-8d674a253ba8' AND "users"."id" != 54) LIMIT 1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 10:52:33.118636"], ["current_sign_in_at", "2016-10-02 10:52:33.118636"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 10:52:33.119374"], ["id", 54]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.2ms) Completed 200 OK in 382ms (Views: 3.8ms | ActiveRecord: 1.1ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 06:52:33 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.2ms) Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 06:52:33 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.8ms) Completed 200 OK in 11ms (Views: 6.3ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5068ce12-a73b-41a4-bdbb-8d674a253ba8' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$J4JwP2UmlKft333jtOI.luXWczy/AhgoMGixPxkoMAwAjvER6b9.i"], ["stripe_id", "5068ce12-a73b-41a4-bdbb-8d674a253ba8"], ["created_at", "2016-10-02 10:52:33.561930"], ["updated_at", "2016-10-02 10:52:33.561930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 06:52:33 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.5ms) Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 06:52:33 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = '5068ce12-a73b-41a4-bdbb-8d674a253ba8' AND "users"."id" != 55) LIMIT 1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 10:52:33.585925"], ["current_sign_in_at", "2016-10-02 10:52:33.585925"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 10:52:33.587183"], ["id", 55]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (3.9ms) Completed 200 OK in 403ms (Views: 6.7ms | ActiveRecord: 1.3ms)  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'be4b119b-9282-41db-9b0c-fc732f37b9bb' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'be4b119b-9282-41db-9b0c-fc732f37b9bb' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "be4b119b-9282-41db-9b0c-fc732f37b9bb"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 10:52:33.990115"], ["updated_at", "2016-10-02 10:52:33.990115"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 10:52:33.990115"], ["item_id", 15], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 06:52:34 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Subscription Load (18.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (7.1ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (22.4ms) Completed 200 OK in 85ms (Views: 28.4ms | ActiveRecord: 27.4ms) Started GET "/tang/account/subscription/new?plan=15" for 127.0.0.1 at 2016-10-02 06:52:34 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"15"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (4.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (8.3ms) Completed 200 OK in 41ms (Views: 22.5ms | ActiveRecord: 0.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5068ce12-a73b-41a4-bdbb-8d674a253ba8' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$sV8w6X5JxktpxBpFeXZoIOB9oNy/9NSLYxI01Umv9Qfc7IGQODkGW"], ["stripe_id", "5068ce12-a73b-41a4-bdbb-8d674a253ba8"], ["created_at", "2016-10-02 10:52:34.579916"], ["updated_at", "2016-10-02 10:52:34.579916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 06:52:34 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 06:52:34 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = '5068ce12-a73b-41a4-bdbb-8d674a253ba8' AND "users"."id" != 56) LIMIT 1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 10:52:34.593084"], ["current_sign_in_at", "2016-10-02 10:52:34.593084"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 10:52:34.593736"], ["id", 56]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.2ms) Completed 200 OK in 350ms (Views: 3.6ms | ActiveRecord: 1.0ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'be4b119b-9282-41db-9b0c-fc732f37b9bb' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'be4b119b-9282-41db-9b0c-fc732f37b9bb' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "be4b119b-9282-41db-9b0c-fc732f37b9bb"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 10:52:34.944071"], ["updated_at", "2016-10-02 10:52:34.944071"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 10:52:34.944071"], ["item_id", 16], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 06:52:35 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 56]] Tang::Subscription Load (0.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 56]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 56]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.8ms) Completed 200 OK in 8ms (Views: 4.1ms | ActiveRecord: 1.1ms) Started GET "/tang/account/subscription/new?plan=16" for 127.0.0.1 at 2016-10-02 06:52:35 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"16"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 56]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 16]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.1ms) Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$gO/WLhloo.kcQZWFS8LA1.q09.xvtEsVcaT28M45diHnwVsEibFjC"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:16.529787"], ["updated_at", "2016-10-02 10:54:16.529787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$4FjfPkEkG6uKDwzzaDNgr.vzrUk/xT08YcCUk.flyPCI7BNnTjNjO"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:16.537797"], ["updated_at", "2016-10-02 10:54:16.537797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$UZIhR1i4Gp9Sw8jp3wzKo.gi9ZwRwfUB20r.9H7kTCAesMTdOYChK"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:16.553841"], ["updated_at", "2016-10-02 10:54:16.553841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 44ms (Views: 25.7ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$eQDNsYij2j0isSpcLoGk/.9.IJ01II68P8iP46u.Yvy51Hr0ZfSF6"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:16.609890"], ["updated_at", "2016-10-02 10:54:16.609890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$cMExGq5zW/GG7praa1dZ3.7pSTxgqEi.dzVL23SiSR8oxOEnPB8/u"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:16.616593"], ["updated_at", "2016-10-02 10:54:16.616593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$B4ELelPGPhgIhV915BVVueFjyCLUzFFwBuAOqC7eUl74oUKriXZIG"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:16.630828"], ["updated_at", "2016-10-02 10:54:16.630828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$bYrEPhKeHlwVU9vVLYzc0uLe701l5F4cVyL1Ogo.Jrt9ZU0hbgZcW"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:16.637089"], ["updated_at", "2016-10-02 10:54:16.637089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$B3NpP8fU/7B/qn0Y3rT1ie3P18FrheQcmQHmy12NrmZEJHIpQZaiC"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:16.643740"], ["updated_at", "2016-10-02 10:54:16.643740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$bBQ83Ttp58IGUJCCtqbn9uLbXT6vUPqJNSx5sFXExz.WDTItwzU7u"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:16.651101"], ["updated_at", "2016-10-02 10:54:16.651101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$FvH7jhePrtQwt0wdPMR1Su/u0hmT4scnc5XWEtUz/Ks.z/3Tx1QDC"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:16.658519"], ["updated_at", "2016-10-02 10:54:16.658519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$iroYyRzCbK/a1qMr3akkzu0WDIKe7YCsV2APBCoAnEQXVb49qtBb6"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:16.664656"], ["updated_at", "2016-10-02 10:54:16.664656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$p00E3r7rRr72kHLlfEsbd.3zCLcTSqzo8J/kZjberYN14gQfD0xGu"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:16.670771"], ["updated_at", "2016-10-02 10:54:16.670771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$Nqa.xp2Sqp/m3YaBdRLd0uxo53FrFRE2jrSA7Wb1uq1je2hPdZP/u"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:16.676707"], ["updated_at", "2016-10-02 10:54:16.676707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$fVAHSyPcmQgR5x4cbDuYCuBJhLSDRg60.XeX3jnLrvQXPT3U.pXtC"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:16.682708"], ["updated_at", "2016-10-02 10:54:16.682708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$McePPbxL31wBSdl76YAP7uwzblg.uncOAYEfRmg5Eg1IbWp4FIqnO"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:16.688518"], ["updated_at", "2016-10-02 10:54:16.688518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$k8REHxSuGI80ggRAn/f.yOY0jY2tNLJbSGOzEGKWalOgP5ugWXBo6"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:16.694210"], ["updated_at", "2016-10-02 10:54:16.694210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$fC3ZJFjVGpIKUpEuwtO7ouP4NC9lNPzEbPJ3F8kZrxLy8C864qRiC"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:16.699721"], ["updated_at", "2016-10-02 10:54:16.699721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$Yz8lVlTGIgGX3l3vQRDiLuAhBaUl5oRimfpm73ufEfq1ZKkn0pFUS"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:16.705665"], ["updated_at", "2016-10-02 10:54:16.705665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$OfuKscnQuvK0XPlQKq/x3u7Z4UfL7YEazHbhZtzaukS3Pu4kCCo6."], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:16.711248"], ["updated_at", "2016-10-02 10:54:16.711248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$H7eObkMs1ASdCZna7t653O5.iubJT3tG1PXj1TmkGwiAgC/9w90vm"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:16.717252"], ["updated_at", "2016-10-02 10:54:16.717252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$kra1.rsmvCFIfUg3K1uYdeOoMlTHkb/FF4NoxokJBaEVRzQUkpcvK"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:16.723214"], ["updated_at", "2016-10-02 10:54:16.723214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$.Zeg.gVnd3tU6og8qXpIr.iZ/qTKM68jecapHMuTJ13V07ZalOwmi"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:16.728907"], ["updated_at", "2016-10-02 10:54:16.728907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$fDCwN55a8eNHL.TcGBIZV.xrsz3isGBzJ.55o/j9HT9Qpzu8DuFKq"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:16.734737"], ["updated_at", "2016-10-02 10:54:16.734737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$jNvmL9aUZlrWPRwAGE0FjuQI2QcxSz3oGucaGVPA39qerOv.n1R3."], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:16.740252"], ["updated_at", "2016-10-02 10:54:16.740252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$hsQ.QmSwI70Rzx2hCiNEeukb.QriebxjxYmrtuhasviyA40UStJBy"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:16.746268"], ["updated_at", "2016-10-02 10:54:16.746268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$HM7i6AAcdWDAcjg50trPweF4Ik2RArBrsCTKjV7r6JEl2EhpdfuaW"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:16.752439"], ["updated_at", "2016-10-02 10:54:16.752439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$FaPB8znlRIL0teUkHrP0Ee0cGW15WGbrLseuamqJF1z2ZZsYXYz6e"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:16.758853"], ["updated_at", "2016-10-02 10:54:16.758853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '75134aa9-6a9d-41c9-a269-fc6ab02dce07' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '75134aa9-6a9d-41c9-a269-fc6ab02dce07' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "75134aa9-6a9d-41c9-a269-fc6ab02dce07"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 10:54:16.771509"], ["updated_at", "2016-10-02 10:54:16.771509"]] SQL (11.8ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-02 10:54:16.771509"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 14ms (Views: 12.2ms | ActiveRecord: 0.2ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$yvJtV6ANLID8fiDVg2OcYOR72YwcxBtkR7qcwmvcpbwGUiiD13CKi"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:17.664954"], ["updated_at", "2016-10-02 10:54:17.664954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '75134aa9-6a9d-41c9-a269-fc6ab02dce07' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '75134aa9-6a9d-41c9-a269-fc6ab02dce07' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "75134aa9-6a9d-41c9-a269-fc6ab02dce07"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 10:54:17.668963"], ["updated_at", "2016-10-02 10:54:17.668963"]] SQL (0.4ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-02 10:54:17.668963"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 28]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (0.3ms) Completed 200 OK in 11ms (Views: 5.7ms | ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$Tb9pVEwgW/haLcZW1ltVl.nAIAP7.6se.XbcBKh7mpG4A0GWJJeXa"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:18.053747"], ["updated_at", "2016-10-02 10:54:18.053747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$jRK2yobTPumAhH7EBqWcCOJabO2nBAtA15FjEuHpuSIU3QSQU63p."], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:18.070771"], ["updated_at", "2016-10-02 10:54:18.070771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '75134aa9-6a9d-41c9-a269-fc6ab02dce07' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '75134aa9-6a9d-41c9-a269-fc6ab02dce07' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "75134aa9-6a9d-41c9-a269-fc6ab02dce07"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 10:54:18.074295"], ["updated_at", "2016-10-02 10:54:18.074295"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-02 10:54:18.074295"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#edit as HTML Parameters: {"id"=>"3"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 30]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 11ms (Views: 8.2ms | ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$FOSpiXsmUVvPmDTmcWFJY.gDLoVtZ7iy6azAoEn1PTjiUAnNtIjdC"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:18.462459"], ["updated_at", "2016-10-02 10:54:18.462459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"75134aa9-6a9d-41c9-a269-fc6ab02dce07", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '75134aa9-6a9d-41c9-a269-fc6ab02dce07' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '75134aa9-6a9d-41c9-a269-fc6ab02dce07' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "75134aa9-6a9d-41c9-a269-fc6ab02dce07"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["created_at", "2016-10-02 10:54:18.473340"], ["updated_at", "2016-10-02 10:54:18.473340"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "31"], ["created_at", "2016-10-02 10:54:18.473340"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/4 Completed 302 Found in 368ms (ActiveRecord: 1.2ms)  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$owxD8V3rsiBmBswXK78Yq.80UNozSjTfszMNDqd.Mu7GhHTr4IDsG"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:18.845439"], ["updated_at", "2016-10-02 10:54:18.845439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"75134aa9-6a9d-41c9-a269-fc6ab02dce07", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '75134aa9-6a9d-41c9-a269-fc6ab02dce07' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '75134aa9-6a9d-41c9-a269-fc6ab02dce07' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "75134aa9-6a9d-41c9-a269-fc6ab02dce07"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["created_at", "2016-10-02 10:54:18.855285"], ["updated_at", "2016-10-02 10:54:18.855285"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "32"], ["created_at", "2016-10-02 10:54:18.855285"], ["item_id", 5], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/5 Completed 302 Found in 376ms (ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$FNDaH4fnNNxzQMVnhaE8VeralMWhXJ8/pPA4wNtm9RcTikdhZW7X6"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:19.235011"], ["updated_at", "2016-10-02 10:54:19.235011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"75134aa9-6a9d-41c9-a269-fc6ab02dce07", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '75134aa9-6a9d-41c9-a269-fc6ab02dce07' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '75134aa9-6a9d-41c9-a269-fc6ab02dce07' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "75134aa9-6a9d-41c9-a269-fc6ab02dce07"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["created_at", "2016-10-02 10:54:19.244475"], ["updated_at", "2016-10-02 10:54:19.244475"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "33"], ["created_at", "2016-10-02 10:54:19.244475"], ["item_id", 6], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/6 Completed 302 Found in 367ms (ActiveRecord: 1.2ms) Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$rN4IpUJRmDXYYcbFDCaaUeo/F0P4oXL6obhTepy9Jg/aYqtw.TAxa"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:19.617960"], ["updated_at", "2016-10-02 10:54:19.617960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"75134aa9-6a9d-41c9-a269-fc6ab02dce07", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '75134aa9-6a9d-41c9-a269-fc6ab02dce07' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.1ms) Completed 200 OK in 12ms (Views: 0.6ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$OTOthuUbvR9FXTztPuOCXe70fhHvYN3u18ldqTGTwqel8jtxr8f7K"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:19.640335"], ["updated_at", "2016-10-02 10:54:19.640335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"75134aa9-6a9d-41c9-a269-fc6ab02dce07", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '75134aa9-6a9d-41c9-a269-fc6ab02dce07' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.1ms) Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$vwBGMXcYr.NoibfQ3RQWKuWxKIzn4DYCu94Xr/hz9.L8LldnkRlU2"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:19.656387"], ["updated_at", "2016-10-02 10:54:19.656387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '75134aa9-6a9d-41c9-a269-fc6ab02dce07' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '75134aa9-6a9d-41c9-a269-fc6ab02dce07' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "75134aa9-6a9d-41c9-a269-fc6ab02dce07"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 10:54:19.659904"], ["updated_at", "2016-10-02 10:54:19.659904"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 10:54:19.659904"], ["item_id", 7], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$p/cKXvo4XgOF/9Pg9Hdbqu0Jxi/DVYnjxrUJl5hMg6D.9sl.GnTzK"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:20.034645"], ["updated_at", "2016-10-02 10:54:20.034645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '75134aa9-6a9d-41c9-a269-fc6ab02dce07' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '75134aa9-6a9d-41c9-a269-fc6ab02dce07' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "75134aa9-6a9d-41c9-a269-fc6ab02dce07"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 10:54:20.038815"], ["updated_at", "2016-10-02 10:54:20.038815"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-02 10:54:20.038815"], ["item_id", 8], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"75134aa9-6a9d-41c9-a269-fc6ab02dce07", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"8"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 37]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 8]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '75134aa9-6a9d-41c9-a269-fc6ab02dce07' AND "tang_plans"."id" != 8) LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '75134aa9-6a9d-41c9-a269-fc6ab02dce07' AND "tang_plans"."id" != 8) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/8 Completed 302 Found in 727ms (ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$XnyySG4zaMAFcuqjQ.CI0.J8ghi5/qDcDs8cw5/6/wv5kmfZeZ.G2"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:21.128934"], ["updated_at", "2016-10-02 10:54:21.128934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '75134aa9-6a9d-41c9-a269-fc6ab02dce07' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '75134aa9-6a9d-41c9-a269-fc6ab02dce07' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "75134aa9-6a9d-41c9-a269-fc6ab02dce07"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 10:54:21.132368"], ["updated_at", "2016-10-02 10:54:21.132368"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "37"], ["created_at", "2016-10-02 10:54:21.132368"], ["item_id", 9], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"75134aa9-6a9d-41c9-a269-fc6ab02dce07", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"9"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 38]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 9]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '75134aa9-6a9d-41c9-a269-fc6ab02dce07' AND "tang_plans"."id" != 9) LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '75134aa9-6a9d-41c9-a269-fc6ab02dce07' AND "tang_plans"."id" != 9) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/9 Completed 302 Found in 715ms (ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$ZK21KJpKawhTks8wAcqEF.e8IaqiNfZogrK9dsZ0nMhzrhys0ehZm"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:22.213181"], ["updated_at", "2016-10-02 10:54:22.213181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '75134aa9-6a9d-41c9-a269-fc6ab02dce07' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '75134aa9-6a9d-41c9-a269-fc6ab02dce07' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "75134aa9-6a9d-41c9-a269-fc6ab02dce07"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 10:54:22.216942"], ["updated_at", "2016-10-02 10:54:22.216942"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "38"], ["created_at", "2016-10-02 10:54:22.216942"], ["item_id", 10], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"75134aa9-6a9d-41c9-a269-fc6ab02dce07", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"10"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 39]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 10]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '75134aa9-6a9d-41c9-a269-fc6ab02dce07' AND "tang_plans"."id" != 10) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 6ms (Views: 0.7ms | ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$QBwDzmcKG753k3dSiMcPkuJ0WLoYtOqn76u1gtWq4Ahz8bhC3GnUG"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:22.594658"], ["updated_at", "2016-10-02 10:54:22.594658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '75134aa9-6a9d-41c9-a269-fc6ab02dce07' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '75134aa9-6a9d-41c9-a269-fc6ab02dce07' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "75134aa9-6a9d-41c9-a269-fc6ab02dce07"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 10:54:22.598274"], ["updated_at", "2016-10-02 10:54:22.598274"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "39"], ["created_at", "2016-10-02 10:54:22.598274"], ["item_id", 11], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"75134aa9-6a9d-41c9-a269-fc6ab02dce07", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"11"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 40]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 11]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '75134aa9-6a9d-41c9-a269-fc6ab02dce07' AND "tang_plans"."id" != 11) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$RlTieyMnBRlKKapW/AkTRuUo1LzsBc6fY6QJdmqnPXyepU0IStNdu"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:22.975832"], ["updated_at", "2016-10-02 10:54:22.975832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '75134aa9-6a9d-41c9-a269-fc6ab02dce07' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '75134aa9-6a9d-41c9-a269-fc6ab02dce07' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "75134aa9-6a9d-41c9-a269-fc6ab02dce07"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 10:54:22.979604"], ["updated_at", "2016-10-02 10:54:22.979604"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "40"], ["created_at", "2016-10-02 10:54:22.979604"], ["item_id", 12], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"12"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 41]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 12]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 12], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 12\nstripe_id: 75134aa9-6a9d-41c9-a269-fc6ab02dce07\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: \nhighlight: false\ncreated_at: 2016-10-02 10:54:22.979604000 Z\nupdated_at: 2016-10-02 10:54:22.979604000 Z\n"], ["whodunnit", "41"], ["created_at", "2016-10-02 10:54:23.349893"]] SQL (0.3ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 748ms (ActiveRecord: 1.0ms)  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$nm.CGLXjMqVe1rtKDcSirO5YlZ9YDE0TflsLCTAERIg4R0K.GcO7u"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:24.101502"], ["updated_at", "2016-10-02 10:54:24.101502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '75134aa9-6a9d-41c9-a269-fc6ab02dce07' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '75134aa9-6a9d-41c9-a269-fc6ab02dce07' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["stripe_id", "75134aa9-6a9d-41c9-a269-fc6ab02dce07"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["created_at", "2016-10-02 10:54:24.105451"], ["updated_at", "2016-10-02 10:54:24.105451"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "41"], ["created_at", "2016-10-02 10:54:24.105451"], ["item_id", 13], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"13"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 42]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 13]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 13], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 13\nstripe_id: 75134aa9-6a9d-41c9-a269-fc6ab02dce07\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: \nhighlight: false\ncreated_at: 2016-10-02 10:54:24.105451000 Z\nupdated_at: 2016-10-02 10:54:24.105451000 Z\n"], ["whodunnit", "42"], ["created_at", "2016-10-02 10:54:24.540482"]] SQL (0.4ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 733ms (ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$mPyeYGA9lMV7rkWSCOTCkOJucZ/P3G7Qn3A2d6UahSI.r1C6ZIFz."], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:25.277971"], ["updated_at", "2016-10-02 10:54:25.277971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$CJjHjo2pqp3Xo7A6NDuIYursbreB/.SXGLkhNijKsOciKuEU/iAdG"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:25.284577"], ["updated_at", "2016-10-02 10:54:25.284577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$3VqcygipZXsjL1L/0aFZQu3wZq2B2BXMn0cnAsbW4qKxOM/UiCazK"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:25.290594"], ["updated_at", "2016-10-02 10:54:25.290594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$0SKx.74bSJl1xgCD0tCKtuynxcdJdyctmapleiYPER9cETFsC8GsO"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:25.296225"], ["updated_at", "2016-10-02 10:54:25.296225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$wqR89KyKFIFhN.1IyclHvurstt.l9I349jb4AxqtGGc5/zVztxdC6"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:25.302238"], ["updated_at", "2016-10-02 10:54:25.302238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$uoZnAh.n5ijuQcXFXCfq.Oy00cCZ9aXQbOBGxD48.sJJeg90X/ry6"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:25.308843"], ["updated_at", "2016-10-02 10:54:25.308843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$XfQWpEcsVDZBIx19K9joruZpJNbRFqOKv44UEGC4Xh.VyNC.x41zS"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:25.314478"], ["updated_at", "2016-10-02 10:54:25.314478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$3MZAWFDthNpeKTVH6KXq4el0t9/uy43Z/XJzTgpzUvw/S01g2COvK"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:25.319846"], ["updated_at", "2016-10-02 10:54:25.319846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$TagOS0THYNk0DW8ib7Rwpuyf0eC2mM..RGNpSsg61zzDX.z76YyhG"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:25.325578"], ["updated_at", "2016-10-02 10:54:25.325578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'ab16ee10-a405-49fb-80b4-237c7df6f1ab' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$p3N1ICIr8lXSPLEgTOYLUe0NcTWjxwfYfyPNNKz9O.WXhWg8yhgKi"], ["stripe_id", "ab16ee10-a405-49fb-80b4-237c7df6f1ab"], ["created_at", "2016-10-02 10:54:25.330690"], ["updated_at", "2016-10-02 10:54:25.330690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 14ms (Views: 8.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a27bc516-5e73-411f-9ca9-fe4aa246d1ac' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$.2ryzv83r1Sf..96pe9bqOmrr.LMOamLK8YLgtZf2tNv1goSr.q9m"], ["stripe_id", "a27bc516-5e73-411f-9ca9-fe4aa246d1ac"], ["created_at", "2016-10-02 10:54:28.642263"], ["updated_at", "2016-10-02 10:54:28.642263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 06:54:28 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.3ms) Rendered devise/sessions/new.html.erb within layouts/application (37.9ms) Completed 200 OK in 337ms (Views: 323.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 06:54:29 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'a27bc516-5e73-411f-9ca9-fe4aa246d1ac' AND "users"."id" != 53) LIMIT 1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 10:54:29.016800"], ["current_sign_in_at", "2016-10-02 10:54:29.016800"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 10:54:29.017755"], ["id", 53]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (3.4ms) Completed 200 OK in 424ms (Views: 5.9ms | ActiveRecord: 1.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 06:54:29 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (11.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (16.1ms) Completed 200 OK in 73ms (Views: 38.2ms | ActiveRecord: 1.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 06:54:29 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 10:54:29.555634"], ["updated_at", "2016-10-02 10:54:29.555634"]] SQL (0.4ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "53"], ["created_at", "2016-10-02 10:54:29.555634"], ["item_id", 14], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/14 Completed 302 Found in 429ms (ActiveRecord: 3.0ms) Started GET "/tang/admin/plans/14" for 127.0.0.1 at 2016-10-02 06:54:29 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"14"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 14]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (18.6ms) Completed 200 OK in 27ms (Views: 22.4ms | ActiveRecord: 0.5ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a27bc516-5e73-411f-9ca9-fe4aa246d1ac' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$77gu8MKyVN3qDzdzX8xcAexI6Y03Fkm/kvDL00LuqjauDmsMY6/V."], ["stripe_id", "a27bc516-5e73-411f-9ca9-fe4aa246d1ac"], ["created_at", "2016-10-02 10:54:30.025721"], ["updated_at", "2016-10-02 10:54:30.025721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 06:54:30 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 06:54:30 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'a27bc516-5e73-411f-9ca9-fe4aa246d1ac' AND "users"."id" != 54) LIMIT 1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 10:54:30.042951"], ["current_sign_in_at", "2016-10-02 10:54:30.042951"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 10:54:30.043747"], ["id", 54]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.5ms) Completed 200 OK in 364ms (Views: 4.3ms | ActiveRecord: 1.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 06:54:30 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.2ms) Completed 200 OK in 9ms (Views: 5.9ms | ActiveRecord: 0.5ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 06:54:30 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.2ms) Completed 200 OK in 11ms (Views: 5.7ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a27bc516-5e73-411f-9ca9-fe4aa246d1ac' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$PBmimSXs7UcevkfGLuzKgeLGbRSvBPIkiLPO1jTXZGYog301585b."], ["stripe_id", "a27bc516-5e73-411f-9ca9-fe4aa246d1ac"], ["created_at", "2016-10-02 10:54:30.469214"], ["updated_at", "2016-10-02 10:54:30.469214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 06:54:30 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.2ms) Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 06:54:30 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'a27bc516-5e73-411f-9ca9-fe4aa246d1ac' AND "users"."id" != 55) LIMIT 1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 10:54:30.491625"], ["current_sign_in_at", "2016-10-02 10:54:30.491625"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 10:54:30.492493"], ["id", 55]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.7ms) Rendered devise/sessions/new.html.erb within layouts/application (4.5ms) Completed 200 OK in 408ms (Views: 12.6ms | ActiveRecord: 1.4ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1ade1002-a595-474d-826d-78206d75a8f7' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1ade1002-a595-474d-826d-78206d75a8f7' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "1ade1002-a595-474d-826d-78206d75a8f7"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 10:54:30.900515"], ["updated_at", "2016-10-02 10:54:30.900515"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 10:54:30.900515"], ["item_id", 15], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 06:54:31 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Subscription Load (7.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (7.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (23.8ms) Completed 200 OK in 73ms (Views: 30.2ms | ActiveRecord: 16.8ms) Started GET "/tang/account/subscription/new?plan=15" for 127.0.0.1 at 2016-10-02 06:54:31 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"15"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (11.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (14.9ms) Completed 200 OK in 41ms (Views: 21.2ms | ActiveRecord: 1.0ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 06:54:31 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"#"}, "commit"=>"Submit Payment"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Unpermitted parameters: utf8, subscription, commit Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", nil]] Completed 404 Not Found in 4ms (ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'a27bc516-5e73-411f-9ca9-fe4aa246d1ac' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$zrX/RZg4Kiv46FJLMyL64OAJnopSGaPcbk4ZbAg8CAwhKcS4cN5Sa"], ["stripe_id", "a27bc516-5e73-411f-9ca9-fe4aa246d1ac"], ["created_at", "2016-10-02 10:54:31.560552"], ["updated_at", "2016-10-02 10:54:31.560552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 06:54:31 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 06:54:31 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'a27bc516-5e73-411f-9ca9-fe4aa246d1ac' AND "users"."id" != 56) LIMIT 1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 10:54:31.574012"], ["current_sign_in_at", "2016-10-02 10:54:31.574012"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 10:54:31.575405"], ["id", 56]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 399ms (Views: 3.1ms | ActiveRecord: 1.2ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1ade1002-a595-474d-826d-78206d75a8f7' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1ade1002-a595-474d-826d-78206d75a8f7' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "1ade1002-a595-474d-826d-78206d75a8f7"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 10:54:31.973630"], ["updated_at", "2016-10-02 10:54:31.973630"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 10:54:31.973630"], ["item_id", 16], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 06:54:32 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 56]] Tang::Subscription Load (0.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 56]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 56]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.9ms) Completed 200 OK in 8ms (Views: 4.2ms | ActiveRecord: 1.1ms) Started GET "/tang/account/subscription/new?plan=16" for 127.0.0.1 at 2016-10-02 06:54:32 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"16"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 56]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 16]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.3ms) Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.3ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 06:54:32 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"#"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 56]] Unpermitted parameters: utf8, subscription, commit Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", nil]] Completed 404 Not Found in 2ms (ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5e3b21b4-8973-4632-850f-82519a62b68e' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$YcJMrzP3OPrBPHKE8lgdTezO0RokiekdwYEXpRyn2j5lfb/sXcPvO"], ["stripe_id", "5e3b21b4-8973-4632-850f-82519a62b68e"], ["created_at", "2016-10-02 10:58:51.311276"], ["updated_at", "2016-10-02 10:58:51.311276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 06:58:51 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.2ms) Rendered devise/sessions/new.html.erb within layouts/application (36.2ms) Completed 200 OK in 320ms (Views: 304.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 06:58:51 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = '5e3b21b4-8973-4632-850f-82519a62b68e' AND "users"."id" != 57) LIMIT 1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 10:58:51.664330"], ["current_sign_in_at", "2016-10-02 10:58:51.664330"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 10:58:51.665064"], ["id", 57]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.4ms) Completed 200 OK in 824ms (Views: 3.9ms | ActiveRecord: 1.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 06:58:52 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 57]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (8.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (12.7ms) Completed 200 OK in 45ms (Views: 25.1ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 06:58:52 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 57]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 10:58:52.568683"], ["updated_at", "2016-10-02 10:58:52.568683"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "57"], ["created_at", "2016-10-02 10:58:52.568683"], ["item_id", 17], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/17 Completed 302 Found in 390ms (ActiveRecord: 2.7ms) Started GET "/tang/admin/plans/17" for 127.0.0.1 at 2016-10-02 06:58:52 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"17"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 57]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 17]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (14.1ms) Completed 200 OK in 22ms (Views: 18.1ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5e3b21b4-8973-4632-850f-82519a62b68e' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$ust0m9Au5UcWU9dVlTyIPu5C5/S8Q2o53zS8OHIISP6vZJJ1tylha"], ["stripe_id", "5e3b21b4-8973-4632-850f-82519a62b68e"], ["created_at", "2016-10-02 10:58:52.996797"], ["updated_at", "2016-10-02 10:58:52.996797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 06:58:52 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 06:58:53 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = '5e3b21b4-8973-4632-850f-82519a62b68e' AND "users"."id" != 58) LIMIT 1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 10:58:53.012269"], ["current_sign_in_at", "2016-10-02 10:58:53.012269"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 10:58:53.013041"], ["id", 58]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (3.2ms) Completed 200 OK in 377ms (Views: 4.7ms | ActiveRecord: 1.4ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 06:58:53 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 58]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.6ms) Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 06:58:53 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 58]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.7ms) Completed 200 OK in 10ms (Views: 5.2ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5e3b21b4-8973-4632-850f-82519a62b68e' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$.PIC2Og4VmsTr7i7Z80YCee1wNg3c21RtmZD9dPXP8JH1LsWisDIC"], ["stripe_id", "5e3b21b4-8973-4632-850f-82519a62b68e"], ["created_at", "2016-10-02 10:58:53.433833"], ["updated_at", "2016-10-02 10:58:53.433833"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 06:58:53 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.8ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 06:58:53 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = '5e3b21b4-8973-4632-850f-82519a62b68e' AND "users"."id" != 59) LIMIT 1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 10:58:53.449975"], ["current_sign_in_at", "2016-10-02 10:58:53.449975"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 10:58:53.450783"], ["id", 59]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.3ms) Completed 200 OK in 380ms (Views: 3.6ms | ActiveRecord: 1.3ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f6e9e0bf-c561-4a0c-9acc-57e51b0d48dd' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f6e9e0bf-c561-4a0c-9acc-57e51b0d48dd' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "f6e9e0bf-c561-4a0c-9acc-57e51b0d48dd"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 10:58:53.829477"], ["updated_at", "2016-10-02 10:58:53.829477"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 10:58:53.829477"], ["item_id", 18], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 06:58:54 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 59]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 59]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 59]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (9.5ms) Completed 200 OK in 40ms (Views: 26.3ms | ActiveRecord: 2.6ms) Started GET "/tang/account/subscription/new?plan=18" for 127.0.0.1 at 2016-10-02 06:58:54 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"18"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 59]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 18]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (5.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (8.8ms) Completed 500 Internal Server Error in 27ms (ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (1.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '5e3b21b4-8973-4632-850f-82519a62b68e' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$eGQ1u7Puel3WI2snjV9O3eGtzKsSv.Df7phGa5vVQd/eHrqLKNCt6"], ["stripe_id", "5e3b21b4-8973-4632-850f-82519a62b68e"], ["created_at", "2016-10-02 10:58:54.358553"], ["updated_at", "2016-10-02 10:58:54.358553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 06:58:54 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 06:58:54 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = '5e3b21b4-8973-4632-850f-82519a62b68e' AND "users"."id" != 60) LIMIT 1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 10:58:54.373632"], ["current_sign_in_at", "2016-10-02 10:58:54.373632"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 10:58:54.374331"], ["id", 60]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.5ms) Completed 200 OK in 375ms (Views: 3.9ms | ActiveRecord: 1.1ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f6e9e0bf-c561-4a0c-9acc-57e51b0d48dd' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f6e9e0bf-c561-4a0c-9acc-57e51b0d48dd' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "f6e9e0bf-c561-4a0c-9acc-57e51b0d48dd"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 10:58:54.749310"], ["updated_at", "2016-10-02 10:58:54.749310"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 10:58:54.749310"], ["item_id", 19], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 06:58:55 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 60]] Tang::Subscription Load (0.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 60]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 60]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (3.6ms) Completed 200 OK in 9ms (Views: 4.9ms | ActiveRecord: 1.2ms) Started GET "/tang/account/subscription/new?plan=19" for 127.0.0.1 at 2016-10-02 06:58:55 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"19"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 60]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 19]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (4.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (5.0ms) Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '53992910-0596-4873-be1f-b985c6134602' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$Mf/WfcFPeRjV4Oo4Nz2j3ew..J4/fdwHi5h5sKB71LDZismsiYucC"], ["stripe_id", "53992910-0596-4873-be1f-b985c6134602"], ["created_at", "2016-10-02 11:00:10.320072"], ["updated_at", "2016-10-02 11:00:10.320072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:00:10 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.2ms) Rendered devise/sessions/new.html.erb within layouts/application (36.9ms) Completed 200 OK in 313ms (Views: 299.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:00:10 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = '53992910-0596-4873-be1f-b985c6134602' AND "users"."id" != 61) LIMIT 1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:00:10.669332"], ["current_sign_in_at", "2016-10-02 11:00:10.669332"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:00:10.670058"], ["id", 61]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.4ms) Completed 200 OK in 838ms (Views: 4.4ms | ActiveRecord: 1.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 07:00:11 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 61]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (8.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (12.3ms) Completed 200 OK in 46ms (Views: 25.7ms | ActiveRecord: 1.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 07:00:11 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 61]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 11:00:11.596020"], ["updated_at", "2016-10-02 11:00:11.596020"]] SQL (0.4ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "61"], ["created_at", "2016-10-02 11:00:11.596020"], ["item_id", 20], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/20 Completed 302 Found in 398ms (ActiveRecord: 2.8ms) Started GET "/tang/admin/plans/20" for 127.0.0.1 at 2016-10-02 07:00:11 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"20"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 61]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 20]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (7.4ms) Completed 200 OK in 17ms (Views: 11.6ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '53992910-0596-4873-be1f-b985c6134602' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$XlWJz2QhfU3q7IDDzCY.5OfBRl9Hwlb7G6QnoUxsux8O13SBnK/UW"], ["stripe_id", "53992910-0596-4873-be1f-b985c6134602"], ["created_at", "2016-10-02 11:00:12.021369"], ["updated_at", "2016-10-02 11:00:12.021369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:00:12 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.7ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:00:12 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = '53992910-0596-4873-be1f-b985c6134602' AND "users"."id" != 62) LIMIT 1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:00:12.035456"], ["current_sign_in_at", "2016-10-02 11:00:12.035456"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:00:12.036131"], ["id", 62]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.2ms) Completed 200 OK in 372ms (Views: 3.6ms | ActiveRecord: 1.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 07:00:12 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 62]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.3ms) Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 07:00:12 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 62]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.7ms) Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '53992910-0596-4873-be1f-b985c6134602' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$43Xrke/x98IAALZdKnrhj.gY10PtERLNBtRUBu3Bgh6s2rZkI1cMS"], ["stripe_id", "53992910-0596-4873-be1f-b985c6134602"], ["created_at", "2016-10-02 11:00:12.457331"], ["updated_at", "2016-10-02 11:00:12.457331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:00:12 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:00:12 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = '53992910-0596-4873-be1f-b985c6134602' AND "users"."id" != 63) LIMIT 1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:00:12.471906"], ["current_sign_in_at", "2016-10-02 11:00:12.471906"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:00:12.472929"], ["id", 63]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.7ms) Completed 200 OK in 385ms (Views: 4.3ms | ActiveRecord: 1.3ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '95a5dcc3-817a-4629-87ef-6dae373054ee' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '95a5dcc3-817a-4629-87ef-6dae373054ee' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "95a5dcc3-817a-4629-87ef-6dae373054ee"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 11:00:12.857275"], ["updated_at", "2016-10-02 11:00:12.857275"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 11:00:12.857275"], ["item_id", 21], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:00:13 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 63]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 63]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 63]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (9.3ms) Completed 200 OK in 39ms (Views: 25.1ms | ActiveRecord: 2.8ms) Started GET "/tang/account/subscription/new?plan=21" for 127.0.0.1 at 2016-10-02 07:00:13 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"21"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 63]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 21]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (6.6ms) Completed 200 OK in 24ms (Views: 10.6ms | ActiveRecord: 0.7ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:00:13 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"21"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 63]] Unpermitted parameters: utf8, subscription, commit Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", nil]] Completed 404 Not Found in 2ms (ActiveRecord: 0.3ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '53992910-0596-4873-be1f-b985c6134602' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$S3AOekZTYIGnTQsbshlcKuTIb1omEEOuzuWnp7ypbV6rB68br5OG6"], ["stripe_id", "53992910-0596-4873-be1f-b985c6134602"], ["created_at", "2016-10-02 11:00:13.401472"], ["updated_at", "2016-10-02 11:00:13.401472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:00:13 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (1.8ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:00:13 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = '53992910-0596-4873-be1f-b985c6134602' AND "users"."id" != 64) LIMIT 1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:00:13.417290"], ["current_sign_in_at", "2016-10-02 11:00:13.417290"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:00:13.417976"], ["id", 64]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.5ms) Completed 200 OK in 358ms (Views: 4.3ms | ActiveRecord: 1.0ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '95a5dcc3-817a-4629-87ef-6dae373054ee' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '95a5dcc3-817a-4629-87ef-6dae373054ee' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "95a5dcc3-817a-4629-87ef-6dae373054ee"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 11:00:13.776411"], ["updated_at", "2016-10-02 11:00:13.776411"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 11:00:13.776411"], ["item_id", 22], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:00:14 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 64]] Tang::Subscription Load (0.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 64]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 64]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.1ms) Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 0.9ms) Started GET "/tang/account/subscription/new?plan=22" for 127.0.0.1 at 2016-10-02 07:00:14 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"22"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 64]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 22]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (0.9ms) Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.3ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:00:14 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"22"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 64]] Unpermitted parameters: utf8, subscription, commit Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", nil]] Completed 404 Not Found in 2ms (ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6705a1e9-a1fe-4d7f-9d40-9e20aa9be82f' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$eteZpf/.VyCK3sx52xtXM.iBL7dHY6rWezS6h7Tc.Z2bw605.liBC"], ["stripe_id", "6705a1e9-a1fe-4d7f-9d40-9e20aa9be82f"], ["created_at", "2016-10-02 11:00:59.630388"], ["updated_at", "2016-10-02 11:00:59.630388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:00:59 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.6ms) Rendered devise/sessions/new.html.erb within layouts/application (26.8ms) Completed 200 OK in 261ms (Views: 247.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:00:59 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = '6705a1e9-a1fe-4d7f-9d40-9e20aa9be82f' AND "users"."id" != 65) LIMIT 1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:00:59.922129"], ["current_sign_in_at", "2016-10-02 11:00:59.922129"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:00:59.922953"], ["id", 65]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.3ms) Completed 200 OK in 428ms (Views: 3.8ms | ActiveRecord: 1.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 07:01:00 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 65]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (10.2ms) Completed 200 OK in 44ms (Views: 22.1ms | ActiveRecord: 1.5ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 07:01:00 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 65]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 11:01:00.429934"], ["updated_at", "2016-10-02 11:01:00.429934"]] SQL (0.4ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "65"], ["created_at", "2016-10-02 11:01:00.429934"], ["item_id", 23], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/23 Completed 302 Found in 378ms (ActiveRecord: 3.0ms) Started GET "/tang/admin/plans/23" for 127.0.0.1 at 2016-10-02 07:01:00 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"23"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 65]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 23]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (6.8ms) Completed 200 OK in 16ms (Views: 11.3ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6705a1e9-a1fe-4d7f-9d40-9e20aa9be82f' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$k9EhI0DI4KX.39JEPvw9tu1qupxLEkWxISU.UQSBpY1MZNBIyUeaC"], ["stripe_id", "6705a1e9-a1fe-4d7f-9d40-9e20aa9be82f"], ["created_at", "2016-10-02 11:01:00.835718"], ["updated_at", "2016-10-02 11:01:00.835718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:01:00 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:01:00 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = '6705a1e9-a1fe-4d7f-9d40-9e20aa9be82f' AND "users"."id" != 66) LIMIT 1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:01:00.849480"], ["current_sign_in_at", "2016-10-02 11:01:00.849480"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:01:00.850367"], ["id", 66]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 376ms (Views: 3.5ms | ActiveRecord: 1.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 07:01:01 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 66]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.2ms) Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 07:01:01 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 66]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.6ms) Completed 200 OK in 10ms (Views: 5.1ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6705a1e9-a1fe-4d7f-9d40-9e20aa9be82f' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$jM6MmRUPqH8kxrH7UtWKjen6nh5NatxkzxnZRiPUpZirk0cxzScQ2"], ["stripe_id", "6705a1e9-a1fe-4d7f-9d40-9e20aa9be82f"], ["created_at", "2016-10-02 11:01:01.272583"], ["updated_at", "2016-10-02 11:01:01.272583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:01:01 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:01:01 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = '6705a1e9-a1fe-4d7f-9d40-9e20aa9be82f' AND "users"."id" != 67) LIMIT 1 SQL (0.5ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:01:01.287395"], ["current_sign_in_at", "2016-10-02 11:01:01.287395"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:01:01.288072"], ["id", 67]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 381ms (Views: 3.5ms | ActiveRecord: 1.3ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'a6d80df8-8c55-4f9b-86fe-79887ea29206' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'a6d80df8-8c55-4f9b-86fe-79887ea29206' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "a6d80df8-8c55-4f9b-86fe-79887ea29206"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 11:01:01.668414"], ["updated_at", "2016-10-02 11:01:01.668414"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 11:01:01.668414"], ["item_id", 24], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:01:02 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 67]] Tang::Subscription Load (0.5ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 67]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 67]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (9.3ms) Completed 200 OK in 39ms (Views: 24.6ms | ActiveRecord: 2.8ms) Started GET "/tang/account/subscription/new?plan=24" for 127.0.0.1 at 2016-10-02 07:01:02 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"24"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 67]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 24]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (6.5ms) Completed 200 OK in 25ms (Views: 11.2ms | ActiveRecord: 0.7ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:01:02 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"24"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 67]] Unpermitted parameters: utf8, subscription, commit Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", nil]] Completed 404 Not Found in 3ms (ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = '6705a1e9-a1fe-4d7f-9d40-9e20aa9be82f' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$urouxZWdTaQnQkPQTls3g.VXYPA5UhYheDa1JbN/ZFgRnpS1gECC6"], ["stripe_id", "6705a1e9-a1fe-4d7f-9d40-9e20aa9be82f"], ["created_at", "2016-10-02 11:01:02.550152"], ["updated_at", "2016-10-02 11:01:02.550152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:01:02 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:01:02 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = '6705a1e9-a1fe-4d7f-9d40-9e20aa9be82f' AND "users"."id" != 68) LIMIT 1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:01:02.565616"], ["current_sign_in_at", "2016-10-02 11:01:02.565616"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:01:02.566322"], ["id", 68]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.4ms) Completed 200 OK in 360ms (Views: 3.7ms | ActiveRecord: 1.1ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'a6d80df8-8c55-4f9b-86fe-79887ea29206' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'a6d80df8-8c55-4f9b-86fe-79887ea29206' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "a6d80df8-8c55-4f9b-86fe-79887ea29206"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 11:01:02.924682"], ["updated_at", "2016-10-02 11:01:02.924682"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 11:01:02.924682"], ["item_id", 25], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:01:03 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 68]] Tang::Subscription Load (0.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 68]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 68]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.2ms) Completed 200 OK in 7ms (Views: 3.3ms | ActiveRecord: 1.0ms) Started GET "/tang/account/subscription/new?plan=25" for 127.0.0.1 at 2016-10-02 07:01:03 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"25"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 68]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 25]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.2ms) Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:01:03 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"25"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 68]] Unpermitted parameters: utf8, subscription, commit Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", nil]] Completed 404 Not Found in 2ms (ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'eebb7c87-95ec-4870-bbea-9345b7bf051b' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$EJN4flZu6RSffvSHq/CGB.ytnmX8nlE7on2jd1VIUtjxpHE9.iDga"], ["stripe_id", "eebb7c87-95ec-4870-bbea-9345b7bf051b"], ["created_at", "2016-10-02 11:02:14.108710"], ["updated_at", "2016-10-02 11:02:14.108710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:02:14 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (29.3ms) Completed 200 OK in 262ms (Views: 249.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:02:14 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'eebb7c87-95ec-4870-bbea-9345b7bf051b' AND "users"."id" != 69) LIMIT 1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:02:14.402493"], ["current_sign_in_at", "2016-10-02 11:02:14.402493"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:02:14.403233"], ["id", 69]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.7ms) Completed 200 OK in 804ms (Views: 4.2ms | ActiveRecord: 1.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 07:02:15 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 69]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (10.5ms) Completed 200 OK in 40ms (Views: 22.9ms | ActiveRecord: 1.1ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 07:02:15 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 69]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 11:02:15.284444"], ["updated_at", "2016-10-02 11:02:15.284444"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "69"], ["created_at", "2016-10-02 11:02:15.284444"], ["item_id", 26], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/26 Completed 302 Found in 574ms (ActiveRecord: 2.6ms) Started GET "/tang/admin/plans/26" for 127.0.0.1 at 2016-10-02 07:02:15 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"26"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 69]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 26]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (7.0ms) Completed 200 OK in 15ms (Views: 11.2ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'eebb7c87-95ec-4870-bbea-9345b7bf051b' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$TD5F7FcrvfjnUCpqQ2UZ/OiH2byaR8ROyhZCGdREJA2UONH10RC1a"], ["stripe_id", "eebb7c87-95ec-4870-bbea-9345b7bf051b"], ["created_at", "2016-10-02 11:02:15.887344"], ["updated_at", "2016-10-02 11:02:15.887344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:02:15 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:02:15 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'eebb7c87-95ec-4870-bbea-9345b7bf051b' AND "users"."id" != 70) LIMIT 1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:02:15.900704"], ["current_sign_in_at", "2016-10-02 11:02:15.900704"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:02:15.901383"], ["id", 70]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.7ms) Completed 200 OK in 469ms (Views: 2.7ms | ActiveRecord: 1.0ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 07:02:16 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 70]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.7ms) Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 07:02:16 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 70]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.0ms) Completed 200 OK in 10ms (Views: 5.3ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'eebb7c87-95ec-4870-bbea-9345b7bf051b' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$phY7x6LjwfBbSi8Qz2tVZeiqKuOnHXRdgdBQgOAsYrocw7tOeYHzO"], ["stripe_id", "eebb7c87-95ec-4870-bbea-9345b7bf051b"], ["created_at", "2016-10-02 11:02:16.415260"], ["updated_at", "2016-10-02 11:02:16.415260"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:02:16 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:02:16 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'eebb7c87-95ec-4870-bbea-9345b7bf051b' AND "users"."id" != 71) LIMIT 1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:02:16.429420"], ["current_sign_in_at", "2016-10-02 11:02:16.429420"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:02:16.430050"], ["id", 71]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.3ms) Completed 200 OK in 358ms (Views: 3.7ms | ActiveRecord: 1.1ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '74ba7113-a8ec-41f6-8cd5-9882e6f773c8' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '74ba7113-a8ec-41f6-8cd5-9882e6f773c8' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "74ba7113-a8ec-41f6-8cd5-9882e6f773c8"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 11:02:16.788237"], ["updated_at", "2016-10-02 11:02:16.788237"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 11:02:16.788237"], ["item_id", 27], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:02:17 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 71]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 71]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 71]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (15.5ms) Completed 200 OK in 38ms (Views: 24.9ms | ActiveRecord: 2.9ms) Started GET "/tang/account/subscription/new?plan=27" for 127.0.0.1 at 2016-10-02 07:02:17 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"27"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 71]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (2.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (5.7ms) Completed 200 OK in 22ms (Views: 9.3ms | ActiveRecord: 0.7ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:02:17 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"27"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 71]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 27]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 71 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.5ms) Completed 200 OK in 388ms (Views: 3.5ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (1.9ms) COMMIT  (0.2ms) BEGIN User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'eebb7c87-95ec-4870-bbea-9345b7bf051b' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$sAo/AFOnRPqZY2GMvJI0puX4CZarGAnoQthV/jl/orFWZ6gyWe3TO"], ["stripe_id", "eebb7c87-95ec-4870-bbea-9345b7bf051b"], ["created_at", "2016-10-02 11:02:17.714693"], ["updated_at", "2016-10-02 11:02:17.714693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:02:17 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:02:17 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'eebb7c87-95ec-4870-bbea-9345b7bf051b' AND "users"."id" != 72) LIMIT 1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:02:17.731045"], ["current_sign_in_at", "2016-10-02 11:02:17.731045"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:02:17.731863"], ["id", 72]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.3ms) Completed 200 OK in 407ms (Views: 3.6ms | ActiveRecord: 1.2ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '74ba7113-a8ec-41f6-8cd5-9882e6f773c8' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '74ba7113-a8ec-41f6-8cd5-9882e6f773c8' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "74ba7113-a8ec-41f6-8cd5-9882e6f773c8"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 11:02:18.138390"], ["updated_at", "2016-10-02 11:02:18.138390"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 11:02:18.138390"], ["item_id", 28], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:02:18 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 72]] Tang::Subscription Load (0.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 72]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 72]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.2ms) Completed 200 OK in 6ms (Views: 3.1ms | ActiveRecord: 1.0ms) Started GET "/tang/account/subscription/new?plan=28" for 127.0.0.1 at 2016-10-02 07:02:18 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"28"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 72]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 28]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (0.9ms) Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:02:18 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"28"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 72]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 28]] Tang::Subscription Exists (0.4ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 72 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 408ms (Views: 2.4ms | ActiveRecord: 1.2ms)  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'dea8fd6b-83f3-434b-a02e-2d5ad85115eb' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$lRPK1JH0.pdpZ1lWGRKPr.pO0cx4CPcV0avGLFU2dBEJX5G3FlqDu"], ["stripe_id", "dea8fd6b-83f3-434b-a02e-2d5ad85115eb"], ["created_at", "2016-10-02 11:04:36.920104"], ["updated_at", "2016-10-02 11:04:36.920104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:04:36 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.2ms) Rendered devise/sessions/new.html.erb within layouts/application (38.4ms) Completed 200 OK in 336ms (Views: 320.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:04:37 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'dea8fd6b-83f3-434b-a02e-2d5ad85115eb' AND "users"."id" != 73) LIMIT 1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:04:37.290104"], ["current_sign_in_at", "2016-10-02 11:04:37.290104"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:04:37.290802"], ["id", 73]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.3ms) Completed 200 OK in 834ms (Views: 3.7ms | ActiveRecord: 1.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 07:04:38 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 73]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (7.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (11.3ms) Completed 200 OK in 47ms (Views: 24.3ms | ActiveRecord: 1.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 07:04:38 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 73]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 11:04:38.208946"], ["updated_at", "2016-10-02 11:04:38.208946"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "73"], ["created_at", "2016-10-02 11:04:38.208946"], ["item_id", 29], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/29 Completed 302 Found in 388ms (ActiveRecord: 2.8ms) Started GET "/tang/admin/plans/29" for 127.0.0.1 at 2016-10-02 07:04:38 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"29"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 73]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (11.6ms) Completed 200 OK in 23ms (Views: 17.6ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'dea8fd6b-83f3-434b-a02e-2d5ad85115eb' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$v5grDOXnY1Ix.h0toU18L.CPHjg0YcR3uZzN50acCFp2ySo2tI0Uy"], ["stripe_id", "dea8fd6b-83f3-434b-a02e-2d5ad85115eb"], ["created_at", "2016-10-02 11:04:38.633493"], ["updated_at", "2016-10-02 11:04:38.633493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:04:38 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.2ms) Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:04:38 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'dea8fd6b-83f3-434b-a02e-2d5ad85115eb' AND "users"."id" != 74) LIMIT 1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:04:38.649047"], ["current_sign_in_at", "2016-10-02 11:04:38.649047"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:04:38.649624"], ["id", 74]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 378ms (Views: 3.5ms | ActiveRecord: 1.1ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 07:04:39 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 74]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.0ms) Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 07:04:39 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 74]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.6ms) Completed 200 OK in 9ms (Views: 4.9ms | ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'dea8fd6b-83f3-434b-a02e-2d5ad85115eb' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$m5qmgAtiANMvcL7o5cEHk.bJVwHhe6qDAO7.UWeW/2F.2G4Sqobc6"], ["stripe_id", "dea8fd6b-83f3-434b-a02e-2d5ad85115eb"], ["created_at", "2016-10-02 11:04:39.073705"], ["updated_at", "2016-10-02 11:04:39.073705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:04:39 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.8ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:04:39 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'dea8fd6b-83f3-434b-a02e-2d5ad85115eb' AND "users"."id" != 75) LIMIT 1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:04:39.087514"], ["current_sign_in_at", "2016-10-02 11:04:39.087514"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:04:39.088490"], ["id", 75]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.7ms) Completed 200 OK in 354ms (Views: 2.8ms | ActiveRecord: 1.1ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'ad176947-56c6-4974-a964-a958fb97cf5d' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'ad176947-56c6-4974-a964-a958fb97cf5d' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "ad176947-56c6-4974-a964-a958fb97cf5d"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 11:04:39.442090"], ["updated_at", "2016-10-02 11:04:39.442090"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 11:04:39.442090"], ["item_id", 30], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:04:39 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 75]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 75]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 75]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (8.7ms) Completed 200 OK in 39ms (Views: 24.4ms | ActiveRecord: 2.5ms) Started GET "/tang/account/subscription/new?plan=30" for 127.0.0.1 at 2016-10-02 07:04:39 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"30"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 75]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 30]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (2.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (6.1ms) Completed 200 OK in 24ms (Views: 10.2ms | ActiveRecord: 0.8ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:04:40 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"30"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 75]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 30]] Tang::Subscription Exists (0.5ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 75 LIMIT 1 Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (1.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.6ms) Completed 200 OK in 17ms (Views: 3.2ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."stripe_id" = 'dea8fd6b-83f3-434b-a02e-2d5ad85115eb' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$CpWdswMr/Vsyw.DSDCThg.465VU5vBjPVU0jyAL/iaXEmAzj3YVGy"], ["stripe_id", "dea8fd6b-83f3-434b-a02e-2d5ad85115eb"], ["created_at", "2016-10-02 11:04:40.064626"], ["updated_at", "2016-10-02 11:04:40.064626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:04:40 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (1.8ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:04:40 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'dea8fd6b-83f3-434b-a02e-2d5ad85115eb' AND "users"."id" != 76) LIMIT 1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:04:40.085654"], ["current_sign_in_at", "2016-10-02 11:04:40.085654"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:04:40.086405"], ["id", 76]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.3ms) Completed 200 OK in 405ms (Views: 3.5ms | ActiveRecord: 1.2ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'ad176947-56c6-4974-a964-a958fb97cf5d' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'ad176947-56c6-4974-a964-a958fb97cf5d' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "ad176947-56c6-4974-a964-a958fb97cf5d"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 11:04:40.490520"], ["updated_at", "2016-10-02 11:04:40.490520"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 11:04:40.490520"], ["item_id", 31], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:04:40 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 76]] Tang::Subscription Load (0.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 76]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 76]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.4ms) Completed 200 OK in 7ms (Views: 3.6ms | ActiveRecord: 1.0ms) Started GET "/tang/account/subscription/new?plan=31" for 127.0.0.1 at 2016-10-02 07:04:40 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"31"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 76]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 31]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.1ms) Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.3ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:04:40 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"31"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 76]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 31]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 76 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.1ms) Completed 200 OK in 7ms (Views: 2.6ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$46fw7wxINlRF4ZGRpDveLuZLfqX82PcUDnwsRr./ROAUSddMEN9jG"], ["created_at", "2016-10-02 11:10:48.454900"], ["updated_at", "2016-10-02 11:10:48.454900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:10:48 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (35.3ms) Completed 200 OK in 288ms (Views: 274.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:10:48 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:10:48.776146"], ["current_sign_in_at", "2016-10-02 11:10:48.776146"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:10:48.776994"], ["id", 77]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 19ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:10:48 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 77]] Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 07:10:48 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 77]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (7.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (11.1ms) Completed 200 OK in 40ms (Views: 22.3ms | ActiveRecord: 1.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 07:10:48 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 77]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 11:10:48.879017"], ["updated_at", "2016-10-02 11:10:48.879017"]] SQL (0.4ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "77"], ["created_at", "2016-10-02 11:10:48.879017"], ["item_id", 32], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/32 Completed 302 Found in 455ms (ActiveRecord: 3.0ms) Started GET "/tang/admin/plans/32" for 127.0.0.1 at 2016-10-02 07:10:49 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"32"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 77]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 32]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (9.4ms) Completed 200 OK in 21ms (Views: 14.8ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$O4uMpkXdcUt4wSreDQSsreEzzDQAaHpKAvjANI26udri064nMgTVC"], ["created_at", "2016-10-02 11:10:49.367933"], ["updated_at", "2016-10-02 11:10:49.367933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:10:49 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.5ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:10:49 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:10:49.383471"], ["current_sign_in_at", "2016-10-02 11:10:49.383471"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:10:49.384139"], ["id", 78]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:10:49 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 78]] Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 07:10:49 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 78]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (2.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.3ms) Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 07:10:49 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 78]]  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.6ms) Completed 200 OK in 9ms (Views: 4.8ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$p7xs6oLHfm1D8wq2fAx0luYXla/nNqiSRdK.E6zj2sv7f6p0G7iQ."], ["created_at", "2016-10-02 11:10:49.443941"], ["updated_at", "2016-10-02 11:10:49.443941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:10:49 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.7ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:10:49 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:10:49.459233"], ["current_sign_in_at", "2016-10-02 11:10:49.459233"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:10:49.459867"], ["id", 79]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:10:49 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 79]] Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '0ae78b27-b9a4-4439-abe1-5ef7b8b6a6c2' LIMIT 1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '0ae78b27-b9a4-4439-abe1-5ef7b8b6a6c2' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "0ae78b27-b9a4-4439-abe1-5ef7b8b6a6c2"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 11:10:49.474693"], ["updated_at", "2016-10-02 11:10:49.474693"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 11:10:49.474693"], ["item_id", 33], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:10:50 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 79]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 79]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 79]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (15.6ms) Completed 200 OK in 38ms (Views: 24.4ms | ActiveRecord: 2.6ms) Started GET "/tang/account/subscription/new?plan=33" for 127.0.0.1 at 2016-10-02 07:10:50 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"33"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 79]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 33]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (6.6ms) Completed 200 OK in 24ms (Views: 10.6ms | ActiveRecord: 0.7ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:10:50 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"33"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 79]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 33]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 79 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 15ms (Views: 7.7ms | ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$.QFSD.lNMG5vEcXk4GhQP.owfAYWdbyXtSIZb6hNMtA.iT5EkmkV2"], ["created_at", "2016-10-02 11:10:50.283027"], ["updated_at", "2016-10-02 11:10:50.283027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:10:50 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:10:50 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:10:50.298959"], ["current_sign_in_at", "2016-10-02 11:10:50.298959"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:10:50.299744"], ["id", 80]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:10:50 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 80]] Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '0ae78b27-b9a4-4439-abe1-5ef7b8b6a6c2' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '0ae78b27-b9a4-4439-abe1-5ef7b8b6a6c2' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "0ae78b27-b9a4-4439-abe1-5ef7b8b6a6c2"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 11:10:50.310761"], ["updated_at", "2016-10-02 11:10:50.310761"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 11:10:50.310761"], ["item_id", 34], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:10:50 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 80]] Tang::Subscription Load (0.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 80]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 80]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.4ms) Completed 200 OK in 7ms (Views: 3.7ms | ActiveRecord: 0.9ms) Started GET "/tang/account/subscription/new?plan=34" for 127.0.0.1 at 2016-10-02 07:10:50 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"34"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 80]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 34]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (0.9ms) Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.3ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:10:50 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"34"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 80]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 34]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 80 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.4ms) Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$Bg5f/GQejVNpzlTTGFb7WOMrwbXHc95HBpPqb7y23Oh4bnxeaQSSa"], ["created_at", "2016-10-02 11:12:57.559482"], ["updated_at", "2016-10-02 11:12:57.559482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:12:57 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.3ms) Rendered devise/sessions/new.html.erb within layouts/application (29.0ms) Completed 200 OK in 264ms (Views: 251.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:12:57 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:12:57.855274"], ["current_sign_in_at", "2016-10-02 11:12:57.855274"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:12:57.856029"], ["id", 81]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 17ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:12:57 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 81]] Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 07:12:57 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 81]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (9.2ms) Completed 200 OK in 36ms (Views: 20.1ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 07:12:57 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 81]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 11:12:57.950129"], ["updated_at", "2016-10-02 11:12:57.950129"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "81"], ["created_at", "2016-10-02 11:12:57.950129"], ["item_id", 35], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/35 Completed 302 Found in 854ms (ActiveRecord: 2.7ms) Started GET "/tang/admin/plans/35" for 127.0.0.1 at 2016-10-02 07:12:58 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"35"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 81]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 35]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (6.4ms) Completed 200 OK in 16ms (Views: 11.2ms | ActiveRecord: 0.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$kL6oJ0GEH/ELBT.n8k2w0OLtjoEKxZDtuctR.E5i07mM.fqlxHXC6"], ["created_at", "2016-10-02 11:12:58.833117"], ["updated_at", "2016-10-02 11:12:58.833117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:12:58 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.5ms) Rendered devise/sessions/new.html.erb within layouts/application (2.5ms) Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:12:58 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:12:58.847606"], ["current_sign_in_at", "2016-10-02 11:12:58.847606"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:12:58.848252"], ["id", 82]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:12:58 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.1ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 82]] Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 07:12:58 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 82]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.5ms) Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 07:12:58 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 82]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (2.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.2ms) Completed 200 OK in 9ms (Views: 4.5ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$ry4iH.STX406zOjFnz1rJOL5XKPvJrx/chYko0eX8UxlLlxAySdSq"], ["created_at", "2016-10-02 11:12:58.907343"], ["updated_at", "2016-10-02 11:12:58.907343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:12:58 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (3.6ms) Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:12:58 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:12:58.923822"], ["current_sign_in_at", "2016-10-02 11:12:58.923822"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:12:58.924842"], ["id", 83]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.3ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:12:58 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 83]] Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$tDks/dldJurV2pJxHRU63OlitdlSgj9MAKYls5sWsWp9.GTAja/Re"], ["created_at", "2016-10-02 11:12:59.307875"], ["updated_at", "2016-10-02 11:12:59.307875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:12:59 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:12:59 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:12:59.320990"], ["current_sign_in_at", "2016-10-02 11:12:59.320990"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:12:59.321672"], ["id", 84]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:12:59 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 84]] Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.1ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$DH6GdZ9xPbxwR5R2mABT8O0fRM.Iq2hN6y4a5Kt3MppiymlfvqQ3m"], ["created_at", "2016-10-02 11:13:13.744555"], ["updated_at", "2016-10-02 11:13:13.744555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:13:13 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (27.5ms) Completed 200 OK in 236ms (Views: 224.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:13:14 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:13:14.008055"], ["current_sign_in_at", "2016-10-02 11:13:14.008055"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:13:14.008811"], ["id", 85]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 17ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:13:14 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 85]] Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 07:13:14 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 85]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (7.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (10.5ms) Completed 200 OK in 38ms (Views: 21.5ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 07:13:14 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 85]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 11:13:14.105563"], ["updated_at", "2016-10-02 11:13:14.105563"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "85"], ["created_at", "2016-10-02 11:13:14.105563"], ["item_id", 36], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/36 Completed 302 Found in 446ms (ActiveRecord: 2.6ms) Started GET "/tang/admin/plans/36" for 127.0.0.1 at 2016-10-02 07:13:14 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"36"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 85]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 36]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (7.7ms) Completed 200 OK in 17ms (Views: 12.5ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$xD6GFDPerrSLGAl/vw54seo0NCpZu8e81IINyyq6RS5fJ5K3OPuoa"], ["created_at", "2016-10-02 11:13:14.580101"], ["updated_at", "2016-10-02 11:13:14.580101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:13:14 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:13:14 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:13:14.593527"], ["current_sign_in_at", "2016-10-02 11:13:14.593527"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:13:14.594950"], ["id", 86]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:13:14 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 86]] Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 07:13:14 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 86]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.4ms) Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 07:13:14 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 86]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.8ms) Completed 200 OK in 9ms (Views: 5.0ms | ActiveRecord: 0.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$WZv5wSOG2KhoUQSjfj2tYuzi6d3d2nl.NPYzYvSbDTJqDG6e3k5dm"], ["created_at", "2016-10-02 11:13:14.656229"], ["updated_at", "2016-10-02 11:13:14.656229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:13:14 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.8ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:13:14 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:13:14.671632"], ["current_sign_in_at", "2016-10-02 11:13:14.671632"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:13:14.672224"], ["id", 87]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:13:14 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 87]] Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$0pMmtQok6V6DQTr6oyDXuu6BjdtHpFpHK2p3R/RLUDUf0TZ/OMFTu"], ["created_at", "2016-10-02 11:13:15.081659"], ["updated_at", "2016-10-02 11:13:15.081659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:13:15 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (1.8ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:13:15 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:13:15.094540"], ["current_sign_in_at", "2016-10-02 11:13:15.094540"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:13:15.095225"], ["id", 88]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:13:15 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 88]] Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$g4Eto3y1u3463IWHbboQ2.mhpEQsWjUUvHql.kGZ9coqvlKQVHCAe"], ["created_at", "2016-10-02 11:14:02.506227"], ["updated_at", "2016-10-02 11:14:02.506227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:14:02 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (26.9ms) Completed 200 OK in 234ms (Views: 223.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:14:02 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:14:02.772871"], ["current_sign_in_at", "2016-10-02 11:14:02.772871"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:14:02.773612"], ["id", 89]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 17ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:14:02 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 89]] Completed 200 OK in 7ms (Views: 6.8ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 07:14:02 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 89]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (8.9ms) Completed 200 OK in 38ms (Views: 21.6ms | ActiveRecord: 1.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 07:14:02 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 89]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 11:14:02.870068"], ["updated_at", "2016-10-02 11:14:02.870068"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "89"], ["created_at", "2016-10-02 11:14:02.870068"], ["item_id", 37], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/37 Completed 302 Found in 891ms (ActiveRecord: 2.8ms) Started GET "/tang/admin/plans/37" for 127.0.0.1 at 2016-10-02 07:14:03 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"37"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 89]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 37]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (6.4ms) Completed 200 OK in 15ms (Views: 11.1ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$RWerTOMtUXvI5nrloqWLqeM.zQk/C6Bl92XvDtOAksq7TQXooHQLe"], ["created_at", "2016-10-02 11:14:03.788728"], ["updated_at", "2016-10-02 11:14:03.788728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:14:03 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.8ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:14:03 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:14:03.803689"], ["current_sign_in_at", "2016-10-02 11:14:03.803689"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:14:03.804469"], ["id", 90]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:14:03 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 90]] Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 07:14:03 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 90]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.3ms) Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 07:14:03 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 90]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.7ms) Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 0.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$uUSEBgWpTuHC6lpwYSTuqu2il27mMC3m48oR03Z/aW5ihz13y11T6"], ["created_at", "2016-10-02 11:14:03.865112"], ["updated_at", "2016-10-02 11:14:03.865112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:14:03 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.7ms) Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:14:03 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:14:03.880203"], ["current_sign_in_at", "2016-10-02 11:14:03.880203"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:14:03.881119"], ["id", 91]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:14:03 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 91]] Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:14:03 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 91]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 91]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 91]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (8.5ms) Completed 200 OK in 33ms (Views: 16.6ms | ActiveRecord: 2.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$tcGMWRD48Szf1RfwsTfje.yh4hjLxcYprmghxdpJ2.PxK2Unkoh4C"], ["created_at", "2016-10-02 11:14:03.949230"], ["updated_at", "2016-10-02 11:14:03.949230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:14:03 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:14:03 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:14:03.963007"], ["current_sign_in_at", "2016-10-02 11:14:03.963007"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:14:03.963780"], ["id", 92]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:14:03 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (2.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 92]] Completed 200 OK in 8ms (Views: 4.7ms | ActiveRecord: 2.7ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:14:03 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 92]] Tang::Subscription Load (0.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 92]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 92]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (1.8ms) Completed 200 OK in 8ms (Views: 3.5ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$CsgQVTiz98fQvhuytDxXNuIhSDvFHYLT6D3edS3GyBQF2w6nX4U7i"], ["created_at", "2016-10-02 11:15:07.254797"], ["updated_at", "2016-10-02 11:15:07.254797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:15:07 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (26.0ms) Completed 200 OK in 240ms (Views: 228.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:15:07 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:15:07.523861"], ["current_sign_in_at", "2016-10-02 11:15:07.523861"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:15:07.524624"], ["id", 93]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 17ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:15:07 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 93]] Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 07:15:07 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 93]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (9.2ms) Completed 200 OK in 37ms (Views: 20.2ms | ActiveRecord: 1.4ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 07:15:07 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 93]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 11:15:07.622072"], ["updated_at", "2016-10-02 11:15:07.622072"]] SQL (0.4ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "93"], ["created_at", "2016-10-02 11:15:07.622072"], ["item_id", 38], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/38 Completed 302 Found in 1105ms (ActiveRecord: 3.3ms) Started GET "/tang/admin/plans/38" for 127.0.0.1 at 2016-10-02 07:15:08 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"38"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 93]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 38]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (6.3ms) Completed 200 OK in 16ms (Views: 11.0ms | ActiveRecord: 0.6ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$0JgF.LJgzJkkKmblAHdcPO9cUK.Qp2O0fOOEjFgHiLvenAm7m0uny"], ["created_at", "2016-10-02 11:15:08.757156"], ["updated_at", "2016-10-02 11:15:08.757156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:15:08 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:15:08 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:15:08.771498"], ["current_sign_in_at", "2016-10-02 11:15:08.771498"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:15:08.772248"], ["id", 94]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:15:08 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 94]] Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.4ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 07:15:08 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 94]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.4ms) Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 07:15:08 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 94]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.6ms) Completed 200 OK in 11ms (Views: 6.3ms | ActiveRecord: 0.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$KuxVFWenW3fPYGX8afUmReetixg5Jatgu7cjjQssWtsN8W4vpKWci"], ["created_at", "2016-10-02 11:15:08.835203"], ["updated_at", "2016-10-02 11:15:08.835203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:15:08 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.7ms) Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:15:08 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:15:08.850119"], ["current_sign_in_at", "2016-10-02 11:15:08.850119"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:15:08.850768"], ["id", 95]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:15:08 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 95]] Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '8fa56d5b-7bf9-4eff-af7e-08121639d56b' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '8fa56d5b-7bf9-4eff-af7e-08121639d56b' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "8fa56d5b-7bf9-4eff-af7e-08121639d56b"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 11:15:08.861613"], ["updated_at", "2016-10-02 11:15:08.861613"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 11:15:08.861613"], ["item_id", 39], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$4.llxUwFGDvvqSo0ZLYJ3uEUnunBCx3rdIw7HTeaAML8DvsN9FkaG"], ["created_at", "2016-10-02 11:15:08.881713"], ["updated_at", "2016-10-02 11:15:08.881713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:15:08 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.7ms) Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:15:08 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:15:08.895408"], ["current_sign_in_at", "2016-10-02 11:15:08.895408"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:15:08.896038"], ["id", 96]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:15:08 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 96]] Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '8fa56d5b-7bf9-4eff-af7e-08121639d56b' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '8fa56d5b-7bf9-4eff-af7e-08121639d56b' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "8fa56d5b-7bf9-4eff-af7e-08121639d56b"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 11:15:08.907908"], ["updated_at", "2016-10-02 11:15:08.907908"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 11:15:08.907908"], ["item_id", 40], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$h/3J4tA.8PVCSLI..WqQZuDWkw4VD2OsMUDff6eqHYm0ycUKtbfne"], ["created_at", "2016-10-02 11:15:24.797498"], ["updated_at", "2016-10-02 11:15:24.797498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:15:24 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.5ms) Rendered devise/sessions/new.html.erb within layouts/application (25.5ms) Completed 200 OK in 240ms (Views: 228.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:15:25 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:15:25.066145"], ["current_sign_in_at", "2016-10-02 11:15:25.066145"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:15:25.066945"], ["id", 97]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 17ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:15:25 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 97]] Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 07:15:25 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 97]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (9.8ms) Completed 200 OK in 39ms (Views: 21.2ms | ActiveRecord: 1.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 07:15:25 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 97]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 11:15:25.164759"], ["updated_at", "2016-10-02 11:15:25.164759"]] SQL (0.4ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "97"], ["created_at", "2016-10-02 11:15:25.164759"], ["item_id", 41], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/41 Completed 302 Found in 888ms (ActiveRecord: 2.8ms) Started GET "/tang/admin/plans/41" for 127.0.0.1 at 2016-10-02 07:15:26 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"41"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 97]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 41]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (8.3ms) Completed 200 OK in 17ms (Views: 12.9ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$5UPhqUNOERFFt7nnmuUm0ePz0Xq//3AX29PkyAFMc5FNDLWmRmPDW"], ["created_at", "2016-10-02 11:15:26.082562"], ["updated_at", "2016-10-02 11:15:26.082562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:15:26 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:15:26 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:15:26.096830"], ["current_sign_in_at", "2016-10-02 11:15:26.096830"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:15:26.097491"], ["id", 98]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:15:26 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 98]] Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 07:15:26 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 98]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.6ms) Completed 200 OK in 8ms (Views: 5.0ms | ActiveRecord: 0.4ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 07:15:26 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 98]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.4ms) Completed 200 OK in 9ms (Views: 4.6ms | ActiveRecord: 0.6ms)  (1.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$33dMxKsNS6G61yQ1CrxBmubY8KwrSBEUAyHhQIOPNpzBo2dlaQ38S"], ["created_at", "2016-10-02 11:15:26.156346"], ["updated_at", "2016-10-02 11:15:26.156346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:15:26 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:15:26 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:15:26.172291"], ["current_sign_in_at", "2016-10-02 11:15:26.172291"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:15:26.173124"], ["id", 99]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:15:26 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 99]] Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '572940a0-d191-485e-bcf2-22b121336519' LIMIT 1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '572940a0-d191-485e-bcf2-22b121336519' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "572940a0-d191-485e-bcf2-22b121336519"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 11:15:26.185009"], ["updated_at", "2016-10-02 11:15:26.185009"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 11:15:26.185009"], ["item_id", 42], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (1.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$ATSWqsHjH5vtp8t6LND1UewGvwo0Ik/q1auQoQwFQLMqcYzZ90qfW"], ["created_at", "2016-10-02 11:15:26.208773"], ["updated_at", "2016-10-02 11:15:26.208773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:15:26 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.7ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:15:26 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:15:26.222412"], ["current_sign_in_at", "2016-10-02 11:15:26.222412"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:15:26.223029"], ["id", 100]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:15:26 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 100]] Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '572940a0-d191-485e-bcf2-22b121336519' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '572940a0-d191-485e-bcf2-22b121336519' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "572940a0-d191-485e-bcf2-22b121336519"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 11:15:26.233744"], ["updated_at", "2016-10-02 11:15:26.233744"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 11:15:26.233744"], ["item_id", 43], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$QjKCf5Sc5hF/lB5QUnDzcO93mYeIByDDI8ikCbI8w17qMwDx4liEm"], ["created_at", "2016-10-02 11:18:06.708891"], ["updated_at", "2016-10-02 11:18:06.708891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:18:06 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.0ms) Rendered devise/sessions/new.html.erb within layouts/application (23.7ms) Completed 200 OK in 230ms (Views: 219.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:18:06 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:18:06.969442"], ["current_sign_in_at", "2016-10-02 11:18:06.969442"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:18:06.970196"], ["id", 101]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 17ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:18:06 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.5ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 101]] Completed 200 OK in 9ms (Views: 7.9ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 07:18:06 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 101]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (9.2ms) Completed 200 OK in 40ms (Views: 20.2ms | ActiveRecord: 1.5ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 07:18:07 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 101]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 11:18:07.071515"], ["updated_at", "2016-10-02 11:18:07.071515"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "101"], ["created_at", "2016-10-02 11:18:07.071515"], ["item_id", 44], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/44 Completed 302 Found in 437ms (ActiveRecord: 2.6ms) Started GET "/tang/admin/plans/44" for 127.0.0.1 at 2016-10-02 07:18:07 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"44"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 101]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 44]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (6.9ms) Completed 200 OK in 17ms (Views: 11.7ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$tgfWc8cGUTSLcObLhh9eEOmb7vwT82mF4F7IguN5TGkEF0Cv1uYNK"], ["created_at", "2016-10-02 11:18:07.538324"], ["updated_at", "2016-10-02 11:18:07.538324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:18:07 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.6ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:18:07 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:18:07.554624"], ["current_sign_in_at", "2016-10-02 11:18:07.554624"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:18:07.555483"], ["id", 102]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:18:07 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 102]] Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 07:18:07 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 102]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (2.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.3ms) Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 07:18:07 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 102]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.6ms) Completed 200 OK in 9ms (Views: 4.9ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$dQjTbVM6/GWCLD49nbV8EewECvAdLPmoeHsUVkc7rw9nvsRslwiVO"], ["created_at", "2016-10-02 11:18:07.615830"], ["updated_at", "2016-10-02 11:18:07.615830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:18:07 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.8ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:18:07 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:18:07.631384"], ["current_sign_in_at", "2016-10-02 11:18:07.631384"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:18:07.632024"], ["id", 103]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:18:07 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 103]] Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.2ms)  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'c563d961-f764-4118-b87b-5fe850604a8c' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'c563d961-f764-4118-b87b-5fe850604a8c' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "c563d961-f764-4118-b87b-5fe850604a8c"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 11:18:07.650153"], ["updated_at", "2016-10-02 11:18:07.650153"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 11:18:07.650153"], ["item_id", 45], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:18:07 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 103]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 103]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 103]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (7.8ms) Completed 200 OK in 35ms (Views: 23.1ms | ActiveRecord: 2.5ms) Started GET "/tang/account/subscription/new?plan=45" for 127.0.0.1 at 2016-10-02 07:18:07 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"45"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 103]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 45]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (2.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (5.2ms) Completed 200 OK in 21ms (Views: 8.7ms | ActiveRecord: 0.8ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:18:07 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"45"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 103]] Tang::Plan Load (1.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 45]] Tang::Subscription Exists (0.4ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 103 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.1ms) Completed 200 OK in 15ms (Views: 2.4ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$scIBfW7eL7aJNPevKeBI7eUAJxDwt0HvFuY6NPWh8LlBHIANz9saG"], ["created_at", "2016-10-02 11:18:07.790927"], ["updated_at", "2016-10-02 11:18:07.790927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:18:07 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:18:07 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:18:07.805056"], ["current_sign_in_at", "2016-10-02 11:18:07.805056"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:18:07.805723"], ["id", 104]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:18:07 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 104]] Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'c563d961-f764-4118-b87b-5fe850604a8c' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'c563d961-f764-4118-b87b-5fe850604a8c' LIMIT 1 SQL (0.1ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "c563d961-f764-4118-b87b-5fe850604a8c"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 11:18:07.815088"], ["updated_at", "2016-10-02 11:18:07.815088"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 11:18:07.815088"], ["item_id", 46], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:18:07 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 104]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 104]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 104]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (3.4ms) Completed 200 OK in 12ms (Views: 4.5ms | ActiveRecord: 1.9ms) Started GET "/tang/account/subscription/new?plan=46" for 127.0.0.1 at 2016-10-02 07:18:07 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"46"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 104]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 46]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.2ms) Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:18:07 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"46"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 104]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 46]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 104 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (0.9ms) Completed 200 OK in 6ms (Views: 2.2ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$TjXWBOfip98l.Z5mfebVEelOh0ZXCi6kE6c.J6IZ9nJQOqgIPLkBu"], ["created_at", "2016-10-02 11:19:58.281254"], ["updated_at", "2016-10-02 11:19:58.281254"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:19:58 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (24.7ms) Completed 200 OK in 237ms (Views: 225.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:19:58 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:19:58.551140"], ["current_sign_in_at", "2016-10-02 11:19:58.551140"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:19:58.551876"], ["id", 105]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 17ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:19:58 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 105]] Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 07:19:58 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 105]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (9.3ms) Completed 200 OK in 39ms (Views: 23.4ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 07:19:58 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 105]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 11:19:58.649384"], ["updated_at", "2016-10-02 11:19:58.649384"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "105"], ["created_at", "2016-10-02 11:19:58.649384"], ["item_id", 47], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/47 Completed 302 Found in 850ms (ActiveRecord: 2.7ms) Started GET "/tang/admin/plans/47" for 127.0.0.1 at 2016-10-02 07:19:59 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"47"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 105]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 47]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (6.2ms) Completed 200 OK in 14ms (Views: 10.1ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$dJNLg3teExOUxPTyCVVkwOpAZoBvYpRzXa.yRg8ZfbLjcQP5lpAEG"], ["created_at", "2016-10-02 11:19:59.526010"], ["updated_at", "2016-10-02 11:19:59.526010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:19:59 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.7ms) Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:19:59 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:19:59.541641"], ["current_sign_in_at", "2016-10-02 11:19:59.541641"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:19:59.542341"], ["id", 106]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:19:59 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 106]] Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 07:19:59 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 106]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (2.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.3ms) Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 07:19:59 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 106]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (5.1ms) Completed 200 OK in 11ms (Views: 6.8ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$TOixGPODd9j2fj8xQfbfDu4N3p/qWg0qhucVhpqgOTgrZyqVQ8bH."], ["created_at", "2016-10-02 11:19:59.606849"], ["updated_at", "2016-10-02 11:19:59.606849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:19:59 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.7ms) Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:19:59 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:19:59.622630"], ["current_sign_in_at", "2016-10-02 11:19:59.622630"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:19:59.623245"], ["id", 107]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:19:59 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 107]] Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e2e2321f-fa1a-43ed-b02c-8e8c29372fee' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e2e2321f-fa1a-43ed-b02c-8e8c29372fee' LIMIT 1 SQL (0.1ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "e2e2321f-fa1a-43ed-b02c-8e8c29372fee"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 11:19:59.633214"], ["updated_at", "2016-10-02 11:19:59.633214"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 11:19:59.633214"], ["item_id", 48], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$FomlNo2TQIqGRRMe8rQrg.KtzdGB7VxWhD4OwSx/gJdn7Qjc0IQna"], ["created_at", "2016-10-02 11:19:59.650715"], ["updated_at", "2016-10-02 11:19:59.650715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:19:59 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (1.8ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:19:59 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:19:59.664722"], ["current_sign_in_at", "2016-10-02 11:19:59.664722"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:19:59.665378"], ["id", 108]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:19:59 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 108]] Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e2e2321f-fa1a-43ed-b02c-8e8c29372fee' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e2e2321f-fa1a-43ed-b02c-8e8c29372fee' LIMIT 1 SQL (0.1ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "e2e2321f-fa1a-43ed-b02c-8e8c29372fee"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 11:19:59.678369"], ["updated_at", "2016-10-02 11:19:59.678369"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 11:19:59.678369"], ["item_id", 49], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$tWC8wfhDl4Q4ILxFNZV5f.T60hT5YCFIk4r5Z2xQdxORaq69Ct50m"], ["created_at", "2016-10-02 11:20:41.024673"], ["updated_at", "2016-10-02 11:20:41.024673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:20:41 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.3ms) Rendered devise/sessions/new.html.erb within layouts/application (26.8ms) Completed 200 OK in 239ms (Views: 227.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:20:41 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:20:41.298510"], ["current_sign_in_at", "2016-10-02 11:20:41.298510"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:20:41.299334"], ["id", 109]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:20:41 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 109]] Completed 200 OK in 8ms (Views: 7.6ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 07:20:41 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 109]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (9.2ms) Completed 200 OK in 37ms (Views: 20.8ms | ActiveRecord: 1.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 07:20:41 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 109]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 11:20:41.400102"], ["updated_at", "2016-10-02 11:20:41.400102"]] SQL (0.4ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "109"], ["created_at", "2016-10-02 11:20:41.400102"], ["item_id", 50], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/50 Completed 302 Found in 838ms (ActiveRecord: 2.8ms) Started GET "/tang/admin/plans/50" for 127.0.0.1 at 2016-10-02 07:20:42 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"50"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 109]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 50]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (7.0ms) Completed 200 OK in 16ms (Views: 11.7ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$n67Lf2frpeDSh.TsCLSbkOfsFJ7SoQlUjpGAUrM8uOTyuq8TSho5S"], ["created_at", "2016-10-02 11:20:42.267020"], ["updated_at", "2016-10-02 11:20:42.267020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:20:42 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.2ms) Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:20:42 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:20:42.281695"], ["current_sign_in_at", "2016-10-02 11:20:42.281695"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:20:42.282635"], ["id", 110]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:20:42 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 110]] Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 07:20:42 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 110]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (2.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.2ms) Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 07:20:42 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 110]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.5ms) Completed 200 OK in 10ms (Views: 4.8ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$bc4AYZqaFR6egPt/gTEEjes6/VWurO7msJ8uz6dMmGfmDOAQzE2nC"], ["created_at", "2016-10-02 11:20:42.345603"], ["updated_at", "2016-10-02 11:20:42.345603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:20:42 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.8ms) Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:20:42 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:20:42.361240"], ["current_sign_in_at", "2016-10-02 11:20:42.361240"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:20:42.362157"], ["id", 111]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:20:42 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 111]] Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.2ms)  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'a4ffb1ef-8d81-4af0-8260-e2a607ee4b71' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'a4ffb1ef-8d81-4af0-8260-e2a607ee4b71' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "a4ffb1ef-8d81-4af0-8260-e2a607ee4b71"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 11:20:42.380542"], ["updated_at", "2016-10-02 11:20:42.380542"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 11:20:42.380542"], ["item_id", 51], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:20:42 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 111]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 111]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 111]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (8.5ms) Completed 200 OK in 37ms (Views: 23.1ms | ActiveRecord: 2.5ms) Started GET "/tang/account/subscription/new?plan=51" for 127.0.0.1 at 2016-10-02 07:20:42 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"51"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 111]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 51]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (2.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (5.3ms) Completed 200 OK in 21ms (Views: 8.8ms | ActiveRecord: 0.8ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:20:42 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"51"}, "commit"=>"Submit Payment"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 111]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 51]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 111 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (4.0ms) Completed 200 OK in 15ms (Views: 8.8ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$FeNjX33ebM8z/25jxoFkgumE6YV6ya4obzzJ.0HAouvTE2832DF.i"], ["created_at", "2016-10-02 11:20:42.539417"], ["updated_at", "2016-10-02 11:20:42.539417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:20:42 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:20:42 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:20:42.554685"], ["current_sign_in_at", "2016-10-02 11:20:42.554685"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:20:42.556865"], ["id", 112]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:20:42 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 112]] Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'a4ffb1ef-8d81-4af0-8260-e2a607ee4b71' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'a4ffb1ef-8d81-4af0-8260-e2a607ee4b71' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "a4ffb1ef-8d81-4af0-8260-e2a607ee4b71"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 11:20:42.567913"], ["updated_at", "2016-10-02 11:20:42.567913"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 11:20:42.567913"], ["item_id", 52], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:20:42 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 112]] Tang::Subscription Load (0.1ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 112]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 112]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.1ms) Completed 200 OK in 6ms (Views: 3.1ms | ActiveRecord: 0.8ms) Started GET "/tang/account/subscription/new?plan=52" for 127.0.0.1 at 2016-10-02 07:20:42 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"52"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 112]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 52]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:20:42 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"52"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 112]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 52]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 112 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 7ms (Views: 2.3ms | ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$AHptdtqhmYOTHRSoF6fOMeWEWnFXqN7xE0UWwMQpIAb2dgYU607Vy"], ["created_at", "2016-10-02 11:21:30.082974"], ["updated_at", "2016-10-02 11:21:30.082974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:21:30 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.0ms) Rendered devise/sessions/new.html.erb within layouts/application (25.3ms) Completed 200 OK in 242ms (Views: 230.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:21:30 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:21:30.356970"], ["current_sign_in_at", "2016-10-02 11:21:30.356970"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:21:30.357687"], ["id", 113]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 17ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:21:30 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 113]] Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.6ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 07:21:30 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 113]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (10.0ms) Completed 200 OK in 40ms (Views: 23.7ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 07:21:30 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 113]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 11:21:30.457833"], ["updated_at", "2016-10-02 11:21:30.457833"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "113"], ["created_at", "2016-10-02 11:21:30.457833"], ["item_id", 53], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/53 Completed 302 Found in 853ms (ActiveRecord: 2.7ms) Started GET "/tang/admin/plans/53" for 127.0.0.1 at 2016-10-02 07:21:31 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"53"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 113]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 53]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (5.9ms) Completed 200 OK in 15ms (Views: 10.1ms | ActiveRecord: 0.4ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$cm6RgJ9xBVof8l0svJA/jOt.E1DpKilam5ysSZcIMUfZUnGxiX1R6"], ["created_at", "2016-10-02 11:21:31.339491"], ["updated_at", "2016-10-02 11:21:31.339491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:21:31 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:21:31 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:21:31.352715"], ["current_sign_in_at", "2016-10-02 11:21:31.352715"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:21:31.353364"], ["id", 114]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:21:31 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 114]] Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 07:21:31 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 114]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.4ms) Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 07:21:31 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 114]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.4ms) Completed 200 OK in 11ms (Views: 5.7ms | ActiveRecord: 0.7ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$zGt5JZrnQ5Ub2l7rT.b/h.2zW8IikMGNQE8Iqiz4VoP5sUPjXjwFC"], ["created_at", "2016-10-02 11:21:31.416378"], ["updated_at", "2016-10-02 11:21:31.416378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:21:31 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.7ms) Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:21:31 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:21:31.431833"], ["current_sign_in_at", "2016-10-02 11:21:31.431833"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:21:31.432455"], ["id", 115]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:21:31 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 115]] Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9c0cb38a-eb05-4d76-b541-fe7daae3003d' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9c0cb38a-eb05-4d76-b541-fe7daae3003d' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "9c0cb38a-eb05-4d76-b541-fe7daae3003d"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 11:21:31.442157"], ["updated_at", "2016-10-02 11:21:31.442157"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 11:21:31.442157"], ["item_id", 54], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:21:31 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 115]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 115]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 115]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (8.1ms) Completed 200 OK in 32ms (Views: 17.6ms | ActiveRecord: 2.7ms) Started GET "/tang/account/subscription/new?plan=54" for 127.0.0.1 at 2016-10-02 07:21:31 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"54"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 115]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 54]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (2.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (5.6ms) Completed 200 OK in 28ms (Views: 9.3ms | ActiveRecord: 1.0ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:21:31 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"54"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 115]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 54]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 115 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.4ms) Completed 200 OK in 9ms (Views: 3.0ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$0OAiG0XXZjLbxTXr9RUbcuS1PNtm.BuuBoLJGOtPUmXl6XJgtLMXG"], ["created_at", "2016-10-02 11:21:31.601420"], ["updated_at", "2016-10-02 11:21:31.601420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:21:31 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:21:31 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:21:31.615992"], ["current_sign_in_at", "2016-10-02 11:21:31.615992"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:21:31.616650"], ["id", 116]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:21:31 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.1ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 116]] Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9c0cb38a-eb05-4d76-b541-fe7daae3003d' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9c0cb38a-eb05-4d76-b541-fe7daae3003d' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "9c0cb38a-eb05-4d76-b541-fe7daae3003d"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 11:21:31.627352"], ["updated_at", "2016-10-02 11:21:31.627352"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 11:21:31.627352"], ["item_id", 55], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:21:31 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 116]] Tang::Subscription Load (0.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 116]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 116]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.3ms) Completed 200 OK in 7ms (Views: 3.4ms | ActiveRecord: 0.9ms) Started GET "/tang/account/subscription/new?plan=55" for 127.0.0.1 at 2016-10-02 07:21:31 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"55"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 116]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 55]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.3ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:21:31 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"55"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 116]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 55]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 116 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (0.9ms) Completed 200 OK in 6ms (Views: 2.2ms | ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$3l4ywi6WJphTr/qLP25.5ufPmfHRgj6kTO3.DPNXWx9HmaSaimEI."], ["created_at", "2016-10-02 11:25:16.686126"], ["updated_at", "2016-10-02 11:25:16.686126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:25:16 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.7ms) Rendered devise/sessions/new.html.erb within layouts/application (26.8ms) Completed 200 OK in 249ms (Views: 234.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:25:16 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:25:16.968078"], ["current_sign_in_at", "2016-10-02 11:25:16.968078"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:25:16.968824"], ["id", 117]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 17ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:25:16 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 117]] Completed 200 OK in 7ms (Views: 6.9ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 07:25:16 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 117]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (9.5ms) Completed 200 OK in 38ms (Views: 20.7ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 07:25:17 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 117]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 11:25:17.065882"], ["updated_at", "2016-10-02 11:25:17.065882"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "117"], ["created_at", "2016-10-02 11:25:17.065882"], ["item_id", 56], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/56 Completed 302 Found in 824ms (ActiveRecord: 2.7ms) Started GET "/tang/admin/plans/56" for 127.0.0.1 at 2016-10-02 07:25:17 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"56"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 117]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 56]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (6.7ms) Completed 200 OK in 15ms (Views: 10.9ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$0raKWyPnvNu1jEipcvX52uwr1LsZMxoeuuIbQfoM9usMtyaP1h./K"], ["created_at", "2016-10-02 11:25:17.918857"], ["updated_at", "2016-10-02 11:25:17.918857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:25:17 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:25:17 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:25:17.933229"], ["current_sign_in_at", "2016-10-02 11:25:17.933229"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:25:17.933911"], ["id", 118]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:25:17 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 118]] Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.4ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 07:25:17 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 118]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.6ms) Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 07:25:17 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 118]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.5ms) Completed 200 OK in 9ms (Views: 4.8ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$kG66AIHP/kuCMfEPw9VmvOFNuDcjo2Jj1fecqaDWJoZG77MYVog7K"], ["created_at", "2016-10-02 11:25:18.000152"], ["updated_at", "2016-10-02 11:25:18.000152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:25:18 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (3.7ms) Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:25:18 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:25:18.016086"], ["current_sign_in_at", "2016-10-02 11:25:18.016086"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:25:18.016788"], ["id", 119]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:25:18 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 119]] Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9a004586-c377-4c31-ab89-53eeb76c7e5b' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9a004586-c377-4c31-ab89-53eeb76c7e5b' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "9a004586-c377-4c31-ab89-53eeb76c7e5b"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 11:25:18.026814"], ["updated_at", "2016-10-02 11:25:18.026814"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 11:25:18.026814"], ["item_id", 57], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:25:18 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 119]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 119]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 119]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (7.9ms) Completed 200 OK in 31ms (Views: 18.3ms | ActiveRecord: 2.6ms) Started GET "/tang/account/subscription/new?plan=57" for 127.0.0.1 at 2016-10-02 07:25:18 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"57"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 119]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 57]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (6.5ms) Completed 200 OK in 23ms (Views: 10.4ms | ActiveRecord: 0.8ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:25:18 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"57"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 119]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 57]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 119 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 10ms (Views: 2.8ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$UVFX5atm3Gv87ipKqTdmgufWsqgf0H/ezaoAwBiT8SPRZ.rhCH4ky"], ["created_at", "2016-10-02 11:25:18.188491"], ["updated_at", "2016-10-02 11:25:18.188491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:25:18 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:25:18 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (2.0ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:25:18.205935"], ["current_sign_in_at", "2016-10-02 11:25:18.205935"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:25:18.206985"], ["id", 120]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.5ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:25:18 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.1ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 120]] Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9a004586-c377-4c31-ab89-53eeb76c7e5b' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9a004586-c377-4c31-ab89-53eeb76c7e5b' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "9a004586-c377-4c31-ab89-53eeb76c7e5b"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 11:25:18.221872"], ["updated_at", "2016-10-02 11:25:18.221872"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 11:25:18.221872"], ["item_id", 58], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:25:18 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 120]] Tang::Subscription Load (0.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 120]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 120]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.1ms) Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 0.8ms) Started GET "/tang/account/subscription/new?plan=58" for 127.0.0.1 at 2016-10-02 07:25:18 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"58"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 120]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 58]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (0.9ms) Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.3ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:25:18 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"58"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 120]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 58]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 120 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.2ms) Completed 200 OK in 7ms (Views: 2.6ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$ZvsLzHVaeEXKd3ihaasrk.gS7rFPk/5eooMLTkG9o.6s7sjj45JtS"], ["created_at", "2016-10-02 11:31:14.844465"], ["updated_at", "2016-10-02 11:31:14.844465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:31:14 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.2ms) Rendered devise/sessions/new.html.erb within layouts/application (28.4ms) Completed 200 OK in 271ms (Views: 258.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:31:15 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:31:15.150331"], ["current_sign_in_at", "2016-10-02 11:31:15.150331"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:31:15.151120"], ["id", 121]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:31:15 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 121]] Completed 200 OK in 9ms (Views: 8.0ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 07:31:15 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 121]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (9.5ms) Completed 200 OK in 37ms (Views: 20.8ms | ActiveRecord: 1.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 07:31:15 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 121]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 11:31:15.250574"], ["updated_at", "2016-10-02 11:31:15.250574"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "121"], ["created_at", "2016-10-02 11:31:15.250574"], ["item_id", 59], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/59 Completed 302 Found in 419ms (ActiveRecord: 2.8ms) Started GET "/tang/admin/plans/59" for 127.0.0.1 at 2016-10-02 07:31:15 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"59"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 121]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 59]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (7.7ms) Completed 200 OK in 17ms (Views: 13.0ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$thVF.TlRl1E3GbuOw9d8HepggLX28snhDSqnrztmkCKSTC9wSLQsW"], ["created_at", "2016-10-02 11:31:15.698923"], ["updated_at", "2016-10-02 11:31:15.698923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:31:15 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:31:15 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:31:15.712957"], ["current_sign_in_at", "2016-10-02 11:31:15.712957"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:31:15.713794"], ["id", 122]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:31:15 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 122]] Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 07:31:15 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 122]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (2.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.3ms) Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 07:31:15 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 122]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.7ms) Completed 200 OK in 12ms (Views: 6.3ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$jsGr.5VzQoBq/waPx/WxRuoOBRuxnNSyBwGW615R4xRnEGooQyipi"], ["created_at", "2016-10-02 11:31:15.778350"], ["updated_at", "2016-10-02 11:31:15.778350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:31:15 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.8ms) Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:31:15 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:31:15.793634"], ["current_sign_in_at", "2016-10-02 11:31:15.793634"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:31:15.794275"], ["id", 123]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:31:15 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 123]] Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '70d4cd58-bc44-46ed-a7b9-7b134b97f192' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '70d4cd58-bc44-46ed-a7b9-7b134b97f192' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "70d4cd58-bc44-46ed-a7b9-7b134b97f192"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 11:31:15.804019"], ["updated_at", "2016-10-02 11:31:15.804019"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 11:31:15.804019"], ["item_id", 60], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:31:15 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 123]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 123]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 123]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (7.7ms) Completed 200 OK in 34ms (Views: 17.8ms | ActiveRecord: 2.5ms) Started GET "/tang/account/subscription/new?plan=60" for 127.0.0.1 at 2016-10-02 07:31:15 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"60"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 123]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 60]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (7.1ms) Completed 200 OK in 21ms (Views: 10.8ms | ActiveRecord: 0.7ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:31:15 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"60"}, "commit"=>"Submit Payment"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 123]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 60]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 123 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 10ms (Views: 2.4ms | ActiveRecord: 0.9ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$58yX8/Gsd1N7yyIPQ/pyaeH9MzHx2JoO6zIdwK1bgHtSjTW6QukqK"], ["created_at", "2016-10-02 11:31:15.946932"], ["updated_at", "2016-10-02 11:31:15.946932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:31:15 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:31:15 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:31:15.963367"], ["current_sign_in_at", "2016-10-02 11:31:15.963367"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:31:15.963984"], ["id", 124]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:31:15 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 124]] Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '70d4cd58-bc44-46ed-a7b9-7b134b97f192' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '70d4cd58-bc44-46ed-a7b9-7b134b97f192' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "70d4cd58-bc44-46ed-a7b9-7b134b97f192"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 11:31:15.975241"], ["updated_at", "2016-10-02 11:31:15.975241"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 11:31:15.975241"], ["item_id", 61], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:31:15 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 124]] Tang::Subscription Load (0.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 124]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 124]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.8ms) Completed 200 OK in 8ms (Views: 4.1ms | ActiveRecord: 1.1ms) Started GET "/tang/account/subscription/new?plan=61" for 127.0.0.1 at 2016-10-02 07:31:15 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"61"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 124]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 61]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.3ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:31:16 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"61"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 124]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 61]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 124 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 6ms (Views: 2.4ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$QY5U1A2aN5hmjACbfgEN4ObWmvHat.86sPCvkRVvXm2wEL9RNeX0."], ["created_at", "2016-10-02 11:31:39.601888"], ["updated_at", "2016-10-02 11:31:39.601888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:31:39 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.0ms) Rendered devise/sessions/new.html.erb within layouts/application (23.7ms) Completed 200 OK in 235ms (Views: 223.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:31:39 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:31:39.865508"], ["current_sign_in_at", "2016-10-02 11:31:39.865508"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:31:39.866237"], ["id", 125]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 19ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:31:39 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 125]] Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.4ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 07:31:39 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 125]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (8.9ms) Completed 200 OK in 36ms (Views: 19.8ms | ActiveRecord: 1.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 07:31:39 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 125]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 11:31:39.964052"], ["updated_at", "2016-10-02 11:31:39.964052"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "125"], ["created_at", "2016-10-02 11:31:39.964052"], ["item_id", 62], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/62 Completed 302 Found in 850ms (ActiveRecord: 2.8ms) Started GET "/tang/admin/plans/62" for 127.0.0.1 at 2016-10-02 07:31:40 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"62"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 125]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 62]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (7.1ms) Completed 200 OK in 16ms (Views: 11.7ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$9DxxZ2VFGcgeuLUWk7MjluYdaehND.oHHzdYGPCpINVBqAmOUKb9C"], ["created_at", "2016-10-02 11:31:40.843423"], ["updated_at", "2016-10-02 11:31:40.843423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:31:40 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:31:40 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:31:40.856568"], ["current_sign_in_at", "2016-10-02 11:31:40.856568"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:31:40.857473"], ["id", 126]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:31:40 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 126]] Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 07:31:40 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 126]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.5ms) Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 07:31:40 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 126]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.7ms) Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 0.6ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$t3WIOKgYx7TsPn9CaDZLO.CtCO.hP95uZXNfXSMZcA425gouOJHCW"], ["created_at", "2016-10-02 11:31:40.918147"], ["updated_at", "2016-10-02 11:31:40.918147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:31:40 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.7ms) Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:31:40 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:31:40.933221"], ["current_sign_in_at", "2016-10-02 11:31:40.933221"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:31:40.933854"], ["id", 127]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:31:40 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 127]] Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '492f8064-c2ff-4cc2-acec-bf72a0300484' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '492f8064-c2ff-4cc2-acec-bf72a0300484' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "492f8064-c2ff-4cc2-acec-bf72a0300484"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 11:31:40.943187"], ["updated_at", "2016-10-02 11:31:40.943187"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 11:31:40.943187"], ["item_id", 63], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:31:40 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 127]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 127]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 127]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (10.5ms) Completed 200 OK in 36ms (Views: 18.6ms | ActiveRecord: 2.8ms) Started GET "/tang/account/subscription/new?plan=63" for 127.0.0.1 at 2016-10-02 07:31:40 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"63"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 127]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 63]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (2.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (5.5ms) Completed 200 OK in 19ms (Views: 9.0ms | ActiveRecord: 0.7ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:31:41 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"63"}, "commit"=>"Submit Payment"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 127]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 63]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 127 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (1.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.6ms) Completed 200 OK in 18ms (Views: 4.1ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$BVAoX.GCUpNzgbrWktX8G.hzcfo2VNYRvKsq2ZpLt2tnlug8a.mmC"], ["created_at", "2016-10-02 11:31:41.106575"], ["updated_at", "2016-10-02 11:31:41.106575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:31:41 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.4ms) Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:31:41 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:31:41.123190"], ["current_sign_in_at", "2016-10-02 11:31:41.123190"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:31:41.123882"], ["id", 128]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:31:41 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 128]] Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '492f8064-c2ff-4cc2-acec-bf72a0300484' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '492f8064-c2ff-4cc2-acec-bf72a0300484' LIMIT 1 SQL (0.1ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "492f8064-c2ff-4cc2-acec-bf72a0300484"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 11:31:41.133736"], ["updated_at", "2016-10-02 11:31:41.133736"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 11:31:41.133736"], ["item_id", 64], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:31:41 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 128]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 128]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 128]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.2ms) Completed 200 OK in 7ms (Views: 3.3ms | ActiveRecord: 1.1ms) Started GET "/tang/account/subscription/new?plan=64" for 127.0.0.1 at 2016-10-02 07:31:41 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"64"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 128]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 64]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.2ms) Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.3ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:31:41 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"64"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 128]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 64]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 128 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 8ms (Views: 3.9ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$Bn0oxbaLBNz2F456THDDgOf9JKl4AYijlteujYQBrtY84vhl1wIbO"], ["created_at", "2016-10-02 11:32:56.903170"], ["updated_at", "2016-10-02 11:32:56.903170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:32:56 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.0ms) Rendered devise/sessions/new.html.erb within layouts/application (23.3ms) Completed 200 OK in 236ms (Views: 224.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:32:57 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:32:57.169449"], ["current_sign_in_at", "2016-10-02 11:32:57.169449"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:32:57.170256"], ["id", 129]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 19ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:32:57 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 129]] Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 07:32:57 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 129]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (9.6ms) Completed 200 OK in 39ms (Views: 22.5ms | ActiveRecord: 1.6ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 07:32:57 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 129]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 11:32:57.273018"], ["updated_at", "2016-10-02 11:32:57.273018"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "129"], ["created_at", "2016-10-02 11:32:57.273018"], ["item_id", 65], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/65 Completed 302 Found in 477ms (ActiveRecord: 3.0ms) Started GET "/tang/admin/plans/65" for 127.0.0.1 at 2016-10-02 07:32:57 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"65"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 129]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 65]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (7.0ms) Completed 200 OK in 16ms (Views: 11.2ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$wzVQL.oTKmVm0W5.tjuh9OvRiDWrgJ1KyAZMseXohvNSW5mZL9a/y"], ["created_at", "2016-10-02 11:32:57.778428"], ["updated_at", "2016-10-02 11:32:57.778428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:32:57 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:32:57 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:32:57.793011"], ["current_sign_in_at", "2016-10-02 11:32:57.793011"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:32:57.793875"], ["id", 130]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:32:57 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 130]] Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 07:32:57 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 130]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.8ms) Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 07:32:57 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 130]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.9ms) Completed 200 OK in 10ms (Views: 5.3ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$KZ8xfFcFuCUKvoQKCXOd/O2InOJhGuVXsVLoqPv3SmdAtl5MtIPqq"], ["created_at", "2016-10-02 11:32:57.860055"], ["updated_at", "2016-10-02 11:32:57.860055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:32:57 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:32:57 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:32:57.876831"], ["current_sign_in_at", "2016-10-02 11:32:57.876831"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:32:57.877506"], ["id", 131]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:32:57 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 131]] Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '828631aa-cf6e-4eef-9d1a-0275f29a5d02' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '828631aa-cf6e-4eef-9d1a-0275f29a5d02' LIMIT 1 SQL (0.1ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "828631aa-cf6e-4eef-9d1a-0275f29a5d02"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 11:32:57.887914"], ["updated_at", "2016-10-02 11:32:57.887914"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 11:32:57.887914"], ["item_id", 66], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:32:57 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 131]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 131]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 131]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (7.7ms) Completed 200 OK in 30ms (Views: 17.8ms | ActiveRecord: 2.5ms) Started GET "/tang/account/subscription/new?plan=66" for 127.0.0.1 at 2016-10-02 07:32:57 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"66"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 131]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 66]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (2.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (5.2ms) Completed 200 OK in 23ms (Views: 8.9ms | ActiveRecord: 1.1ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:32:57 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"66"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 131]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 66]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 131 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 8ms (Views: 2.3ms | ActiveRecord: 0.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$GC3PENJ2ZwpmK3wH7W/UjuyKjq7/YTYJGUYo0Qb7.bkKvG6raaWUW"], ["created_at", "2016-10-02 11:32:58.027709"], ["updated_at", "2016-10-02 11:32:58.027709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:32:58 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 07:32:58 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 11:32:58.047377"], ["current_sign_in_at", "2016-10-02 11:32:58.047377"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 11:32:58.048047"], ["id", 132]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Started GET "/" for 127.0.0.1 at 2016-10-02 07:32:58 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 132]] Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (1.7ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '828631aa-cf6e-4eef-9d1a-0275f29a5d02' LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '828631aa-cf6e-4eef-9d1a-0275f29a5d02' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "828631aa-cf6e-4eef-9d1a-0275f29a5d02"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 11:32:58.060013"], ["updated_at", "2016-10-02 11:32:58.060013"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 11:32:58.060013"], ["item_id", 67], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:32:58 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 132]] Tang::Subscription Load (0.1ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 132]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 132]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.1ms) Completed 200 OK in 6ms (Views: 3.1ms | ActiveRecord: 0.8ms) Started GET "/tang/account/subscription/new?plan=67" for 127.0.0.1 at 2016-10-02 07:32:58 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"67"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 132]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 67]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (0.9ms) Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.3ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 07:32:58 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"67"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 132]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 67]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 132 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 6ms (Views: 2.3ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (5.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$vbY1FvGUj7lIMzRhicbqeeESsqpnR0v6FITUV1YyzTYgx5sjcfX9u"], ["created_at", "2016-10-02 19:14:29.604494"], ["updated_at", "2016-10-02 19:14:29.604494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:14:29 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (37.1ms) Completed 200 OK in 310ms (Views: 296.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:14:29 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 19:14:29.958062"], ["current_sign_in_at", "2016-10-02 19:14:29.958062"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 19:14:29.958900"], ["id", 133]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 15:14:29 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 133]] Completed 200 OK in 9ms (Views: 8.0ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 15:14:29 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 133]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (7.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (11.3ms) Completed 200 OK in 43ms (Views: 25.2ms | ActiveRecord: 1.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 15:14:30 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 133]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.6ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 19:14:30.069475"], ["updated_at", "2016-10-02 19:14:30.069475"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "133"], ["created_at", "2016-10-02 19:14:30.069475"], ["item_id", 68], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/68 Completed 302 Found in 445ms (ActiveRecord: 3.3ms) Started GET "/tang/admin/plans/68" for 127.0.0.1 at 2016-10-02 15:14:30 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"68"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 133]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 68]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (9.1ms) Completed 200 OK in 18ms (Views: 13.4ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$htvRTYYj4rtipd8P7gC5oOgOfSI.rzfZkdSr4HRgmb59Vl97WraD2"], ["created_at", "2016-10-02 19:14:30.544422"], ["updated_at", "2016-10-02 19:14:30.544422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:14:30 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:14:30 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 19:14:30.558963"], ["current_sign_in_at", "2016-10-02 19:14:30.558963"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 19:14:30.559582"], ["id", 134]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 15:14:30 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 134]] Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 15:14:30 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 134]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.7ms) Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 15:14:30 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 134]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.4ms) Completed 200 OK in 9ms (Views: 4.7ms | ActiveRecord: 0.6ms)  (2.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$rscznySmWobvsnHk.aAZle5/Swpjo6rdjfdcSFTKVtfdZuSikBM7a"], ["created_at", "2016-10-02 19:14:30.619643"], ["updated_at", "2016-10-02 19:14:30.619643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:14:30 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.8ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:14:30 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 19:14:30.635796"], ["current_sign_in_at", "2016-10-02 19:14:30.635796"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 19:14:30.636426"], ["id", 135]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 15:14:30 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 135]] Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '58bff239-ecbf-4f0e-95ea-019ff4495634' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '58bff239-ecbf-4f0e-95ea-019ff4495634' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "58bff239-ecbf-4f0e-95ea-019ff4495634"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 19:14:30.645782"], ["updated_at", "2016-10-02 19:14:30.645782"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 19:14:30.645782"], ["item_id", 69], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 15:14:30 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 135]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 135]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (6.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 135]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (15.0ms) Completed 200 OK in 45ms (Views: 19.9ms | ActiveRecord: 8.6ms) Started GET "/tang/account/subscription/new?plan=69" for 127.0.0.1 at 2016-10-02 15:14:30 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"69"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 135]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 69]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (8.0ms) Completed 200 OK in 24ms (Views: 12.3ms | ActiveRecord: 0.8ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 15:14:30 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"69"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 135]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 69]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 135 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 8ms (Views: 2.4ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$KKj3BYQ9vLbS4OQJReFtxupiLzeNt0H8efMry9zwP.aU/aUQ2r3cm"], ["created_at", "2016-10-02 19:14:30.787586"], ["updated_at", "2016-10-02 19:14:30.787586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:14:30 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.2ms) Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:14:30 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 19:14:30.802829"], ["current_sign_in_at", "2016-10-02 19:14:30.802829"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 19:14:30.803557"], ["id", 136]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 1.6ms) Started GET "/" for 127.0.0.1 at 2016-10-02 15:14:30 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 136]] Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '58bff239-ecbf-4f0e-95ea-019ff4495634' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '58bff239-ecbf-4f0e-95ea-019ff4495634' LIMIT 1 SQL (0.1ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "58bff239-ecbf-4f0e-95ea-019ff4495634"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 19:14:30.818741"], ["updated_at", "2016-10-02 19:14:30.818741"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 19:14:30.818741"], ["item_id", 70], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 15:14:30 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 136]] Tang::Subscription Load (0.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 136]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 136]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.2ms) Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 1.0ms) Started GET "/tang/account/subscription/new?plan=70" for 127.0.0.1 at 2016-10-02 15:14:30 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"70"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 136]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 70]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (2.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (2.6ms) Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.3ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 15:14:30 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"70"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 136]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 70]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 136 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 6ms (Views: 2.1ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$cWlKiOFKrTMfrt2ZO7BjgeLwJt0zLj1vI7EhRT0T9pWSQPiBSl.PG"], ["created_at", "2016-10-02 19:15:26.847970"], ["updated_at", "2016-10-02 19:15:26.847970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:15:26 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.3ms) Rendered devise/sessions/new.html.erb within layouts/application (35.2ms) Completed 200 OK in 309ms (Views: 296.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:15:27 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 19:15:27.193229"], ["current_sign_in_at", "2016-10-02 19:15:27.193229"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 19:15:27.194003"], ["id", 137]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 19ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 15:15:27 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 137]] Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 15:15:27 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 137]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (8.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (11.9ms) Completed 200 OK in 42ms (Views: 23.9ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 15:15:27 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 137]]  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 19:15:27.304282"], ["updated_at", "2016-10-02 19:15:27.304282"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "137"], ["created_at", "2016-10-02 19:15:27.304282"], ["item_id", 71], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/71 Completed 302 Found in 823ms (ActiveRecord: 3.2ms) Started GET "/tang/admin/plans/71" for 127.0.0.1 at 2016-10-02 15:15:28 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"71"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 137]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 71]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (9.0ms) Completed 200 OK in 20ms (Views: 14.7ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$wxrtIWFkOchSZHQcQdcUc.YUi7DNNpmY2.roPseqC7poHiPeyLg42"], ["created_at", "2016-10-02 19:15:28.158101"], ["updated_at", "2016-10-02 19:15:28.158101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:15:28 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:15:28 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 19:15:28.173230"], ["current_sign_in_at", "2016-10-02 19:15:28.173230"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 19:15:28.173880"], ["id", 138]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 15:15:28 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 138]] Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 15:15:28 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 138]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.5ms) Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 15:15:28 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 138]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (5.1ms) Completed 200 OK in 12ms (Views: 7.0ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$N0PvUN2XM2bV1eMnzvHA4.szCLmSPJqyVJsvqcmEBj19WTRFmDqQC"], ["created_at", "2016-10-02 19:15:28.233239"], ["updated_at", "2016-10-02 19:15:28.233239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:15:28 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:15:28 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 19:15:28.248863"], ["current_sign_in_at", "2016-10-02 19:15:28.248863"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 19:15:28.249702"], ["id", 139]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 12ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 15:15:28 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 139]] Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '7b3125c6-8091-4491-adde-2e6056a19fce' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '7b3125c6-8091-4491-adde-2e6056a19fce' LIMIT 1 SQL (0.1ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "7b3125c6-8091-4491-adde-2e6056a19fce"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 19:15:28.265614"], ["updated_at", "2016-10-02 19:15:28.265614"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 19:15:28.265614"], ["item_id", 72], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 15:15:28 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 139]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 139]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 139]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (10.2ms) Completed 200 OK in 39ms (Views: 17.4ms | ActiveRecord: 5.8ms) Started GET "/tang/account/subscription/new?plan=72" for 127.0.0.1 at 2016-10-02 15:15:28 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"72"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 139]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 72]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (6.8ms) Completed 200 OK in 22ms (Views: 11.1ms | ActiveRecord: 0.8ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 15:15:28 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"72"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 139]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 72]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 139 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.1ms) Completed 200 OK in 9ms (Views: 2.5ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$JrQmbberx/AvJf.YDGjuzuetdN7VVo5NLjWf.M0NXCiCvft5CypI2"], ["created_at", "2016-10-02 19:15:33.419158"], ["updated_at", "2016-10-02 19:15:33.419158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:15:33 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:15:33 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 19:15:33.433226"], ["current_sign_in_at", "2016-10-02 19:15:33.433226"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 19:15:33.433901"], ["id", 140]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Started GET "/" for 127.0.0.1 at 2016-10-02 15:15:33 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 140]] Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '7b3125c6-8091-4491-adde-2e6056a19fce' LIMIT 1 Tang::Plan Exists (0.7ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '7b3125c6-8091-4491-adde-2e6056a19fce' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "7b3125c6-8091-4491-adde-2e6056a19fce"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 19:15:33.443493"], ["updated_at", "2016-10-02 19:15:33.443493"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 19:15:33.443493"], ["item_id", 73], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 15:15:33 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 140]] Tang::Subscription Load (0.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 140]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 140]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.3ms) Completed 200 OK in 7ms (Views: 3.4ms | ActiveRecord: 1.0ms) Started GET "/tang/account/subscription/new?plan=73" for 127.0.0.1 at 2016-10-02 15:15:33 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"73"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 140]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 73]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.1ms) Completed 200 OK in 6ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 15:15:33 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"73"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 140]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 73]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 140 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 7ms (Views: 2.4ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$yLQlXx.nDsg0gleDusQkpezwmevflYRT9JOUWdiVuDCwxyb63/.XW"], ["created_at", "2016-10-02 19:17:28.732114"], ["updated_at", "2016-10-02 19:17:28.732114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:17:28 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.3ms) Rendered devise/sessions/new.html.erb within layouts/application (35.9ms) Completed 200 OK in 486ms (Views: 473.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:17:29 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 19:17:29.250952"], ["current_sign_in_at", "2016-10-02 19:17:29.250952"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 19:17:29.251705"], ["id", 141]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 19ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 15:17:29 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.4ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 141]] Completed 200 OK in 9ms (Views: 8.0ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 15:17:29 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 141]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (10.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (13.5ms) Completed 200 OK in 44ms (Views: 26.4ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 15:17:29 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 141]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 19:17:29.365574"], ["updated_at", "2016-10-02 19:17:29.365574"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "141"], ["created_at", "2016-10-02 19:17:29.365574"], ["item_id", 74], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/74 Completed 302 Found in 897ms (ActiveRecord: 2.8ms) Started GET "/tang/admin/plans/74" for 127.0.0.1 at 2016-10-02 15:17:30 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"74"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 141]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 74]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (8.7ms) Completed 200 OK in 18ms (Views: 13.0ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$F1DzYqdThNI0Iyk97JEpKejOUDMTADLy1hch8ke8kN/EYaZ73PRnC"], ["created_at", "2016-10-02 19:17:30.293126"], ["updated_at", "2016-10-02 19:17:30.293126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:17:30 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:17:30 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 19:17:30.307648"], ["current_sign_in_at", "2016-10-02 19:17:30.307648"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 19:17:30.308538"], ["id", 142]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 1.0ms) Started GET "/" for 127.0.0.1 at 2016-10-02 15:17:30 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 142]] Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.4ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 15:17:30 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 142]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.2ms) Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 15:17:30 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 142]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.7ms) Completed 200 OK in 9ms (Views: 4.9ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$u9C9vRJn2Ll1NtQP4o8rn.q9h.H4hk3r8ynuIz8xboYStj0QK4.Im"], ["created_at", "2016-10-02 19:17:30.375680"], ["updated_at", "2016-10-02 19:17:30.375680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:17:30 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (3.7ms) Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:17:30 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 19:17:30.390761"], ["current_sign_in_at", "2016-10-02 19:17:30.390761"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 19:17:30.391353"], ["id", 143]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 15:17:30 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 143]] Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1173e895-2725-46b2-8e34-e9518fb9a444' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1173e895-2725-46b2-8e34-e9518fb9a444' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "1173e895-2725-46b2-8e34-e9518fb9a444"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 19:17:30.401171"], ["updated_at", "2016-10-02 19:17:30.401171"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 19:17:30.401171"], ["item_id", 75], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 15:17:30 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 143]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 143]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 143]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (9.1ms) Completed 200 OK in 38ms (Views: 20.0ms | ActiveRecord: 4.5ms) Started GET "/tang/account/subscription/new?plan=75" for 127.0.0.1 at 2016-10-02 15:17:30 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"75"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 143]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 75]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (6.3ms) Completed 200 OK in 22ms (Views: 10.3ms | ActiveRecord: 0.7ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 15:17:30 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"75"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 143]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 75]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 143 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 9ms (Views: 2.4ms | ActiveRecord: 0.8ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$dLVpS/ZUpegNTRCE/c45iO4HMdlXPxhr/uFw31e81/9yw9VrKvvRO"], ["created_at", "2016-10-02 19:17:30.582104"], ["updated_at", "2016-10-02 19:17:30.582104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:17:30 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:17:30 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 19:17:30.598533"], ["current_sign_in_at", "2016-10-02 19:17:30.598533"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 19:17:30.599232"], ["id", 144]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Started GET "/" for 127.0.0.1 at 2016-10-02 15:17:30 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 144]] Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)  (0.3ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1173e895-2725-46b2-8e34-e9518fb9a444' LIMIT 1 Tang::Plan Exists (0.7ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1173e895-2725-46b2-8e34-e9518fb9a444' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "1173e895-2725-46b2-8e34-e9518fb9a444"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 19:17:30.615056"], ["updated_at", "2016-10-02 19:17:30.615056"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 19:17:30.615056"], ["item_id", 76], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 15:17:30 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 144]] Tang::Subscription Load (0.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 144]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 144]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.2ms) Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.9ms) Started GET "/tang/account/subscription/new?plan=76" for 127.0.0.1 at 2016-10-02 15:17:30 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"76"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 144]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 76]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 15:17:30 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"76"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 144]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 76]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 144 LIMIT 1 Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.1ms) Completed 200 OK in 9ms (Views: 2.5ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$l7jVG37AwDdLaGEAP17bs.7ueo57gRFAo225jcOMPrLaNxDAgh3/."], ["created_at", "2016-10-02 19:18:14.197670"], ["updated_at", "2016-10-02 19:18:14.197670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:18:14 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.2ms) Rendered devise/sessions/new.html.erb within layouts/application (37.9ms) Completed 200 OK in 491ms (Views: 477.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:18:14 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 19:18:14.730129"], ["current_sign_in_at", "2016-10-02 19:18:14.730129"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 19:18:14.730885"], ["id", 145]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 20ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 15:18:14 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 145]] Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 15:18:14 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 145]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (7.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (11.1ms) Completed 200 OK in 43ms (Views: 23.4ms | ActiveRecord: 2.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 15:18:14 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 145]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 19:18:14.838915"], ["updated_at", "2016-10-02 19:18:14.838915"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "145"], ["created_at", "2016-10-02 19:18:14.838915"], ["item_id", 77], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/77 Completed 302 Found in 851ms (ActiveRecord: 3.0ms) Started GET "/tang/admin/plans/77" for 127.0.0.1 at 2016-10-02 15:18:15 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"77"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 145]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 77]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (8.1ms) Completed 200 OK in 17ms (Views: 12.4ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$aeo6hV0IwY8AVIF.QlZrleWLPJuKmMkIQph2CRKQrx7tlIQthlAhu"], ["created_at", "2016-10-02 19:18:15.719729"], ["updated_at", "2016-10-02 19:18:15.719729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:18:15 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:18:15 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 19:18:15.734468"], ["current_sign_in_at", "2016-10-02 19:18:15.734468"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 19:18:15.735281"], ["id", 146]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 15:18:15 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 146]] Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 15:18:15 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 146]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.9ms) Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 15:18:15 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 146]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.7ms) Completed 200 OK in 11ms (Views: 6.2ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$CFS8nYAXAyYPL7M7B89y4eIWW/f3FES0Idt2utAkLD8YAhkzeXpJC"], ["created_at", "2016-10-02 19:18:15.805430"], ["updated_at", "2016-10-02 19:18:15.805430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:18:15 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:18:15 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 19:18:15.821276"], ["current_sign_in_at", "2016-10-02 19:18:15.821276"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 19:18:15.821957"], ["id", 147]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 15:18:15 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 147]] Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '22a0da8d-a94a-4b2f-b2d7-274647fa2f72' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '22a0da8d-a94a-4b2f-b2d7-274647fa2f72' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "22a0da8d-a94a-4b2f-b2d7-274647fa2f72"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 19:18:15.831386"], ["updated_at", "2016-10-02 19:18:15.831386"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 19:18:15.831386"], ["item_id", 78], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 15:18:15 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 147]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 147]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 147]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (9.1ms) Completed 200 OK in 34ms (Views: 20.6ms | ActiveRecord: 2.6ms) Started GET "/tang/account/subscription/new?plan=78" for 127.0.0.1 at 2016-10-02 15:18:15 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"78"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 147]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 78]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (7.5ms) Completed 200 OK in 25ms (Views: 12.7ms | ActiveRecord: 0.7ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 15:18:15 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"78"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 147]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 78]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 147 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 8ms (Views: 2.4ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$fL0i8t3SYihHOFHIyouomep9J079GLa4t.agVNaEs747szeVB4gJG"], ["created_at", "2016-10-02 19:18:16.007010"], ["updated_at", "2016-10-02 19:18:16.007010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:18:16 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.2ms) Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:18:16 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 19:18:16.020816"], ["current_sign_in_at", "2016-10-02 19:18:16.020816"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 19:18:16.021693"], ["id", 148]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 15:18:16 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 148]] Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '22a0da8d-a94a-4b2f-b2d7-274647fa2f72' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '22a0da8d-a94a-4b2f-b2d7-274647fa2f72' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "22a0da8d-a94a-4b2f-b2d7-274647fa2f72"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 19:18:16.031443"], ["updated_at", "2016-10-02 19:18:16.031443"]] SQL (0.4ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 19:18:16.031443"], ["item_id", 79], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 15:18:16 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 148]] Tang::Subscription Load (0.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 148]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 148]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.1ms) Completed 200 OK in 6ms (Views: 3.1ms | ActiveRecord: 0.9ms) Started GET "/tang/account/subscription/new?plan=79" for 127.0.0.1 at 2016-10-02 15:18:16 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"79"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 148]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 79]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.2ms) Completed 200 OK in 6ms (Views: 2.7ms | ActiveRecord: 0.3ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 15:18:16 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"79"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 148]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 79]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 148 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.2ms) Completed 200 OK in 7ms (Views: 2.7ms | ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (2.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (6.8ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$WYPwXYg7bomVd351Rx2gxeGUEKgzgSO/rd6TmN7tH/5zla7N7fnwm"], ["created_at", "2016-10-02 19:57:17.557825"], ["updated_at", "2016-10-02 19:57:17.557825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:57:17 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.2ms) Rendered devise/sessions/new.html.erb within layouts/application (38.8ms) Completed 200 OK in 317ms (Views: 303.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:57:17 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 19:57:17.917068"], ["current_sign_in_at", "2016-10-02 19:57:17.917068"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 19:57:17.917809"], ["id", 149]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 21ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 15:57:17 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 149]] Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 15:57:17 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 149]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (9.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (13.3ms) Completed 200 OK in 45ms (Views: 26.8ms | ActiveRecord: 1.7ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 15:57:18 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 149]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 19:57:18.029027"], ["updated_at", "2016-10-02 19:57:18.029027"]] SQL (0.6ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "149"], ["created_at", "2016-10-02 19:57:18.029027"], ["item_id", 80], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/80 Completed 302 Found in 454ms (ActiveRecord: 3.8ms) Started GET "/tang/admin/plans/80" for 127.0.0.1 at 2016-10-02 15:57:18 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"80"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 149]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 80]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (8.3ms) Completed 200 OK in 17ms (Views: 12.7ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$ETliM51AEDPZZTUvKbb1Pev0P4ek70GHoZ59hl3/A9kCsZmtqhfCO"], ["created_at", "2016-10-02 19:57:18.513643"], ["updated_at", "2016-10-02 19:57:18.513643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:57:18 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.4ms) Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:57:18 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 19:57:18.528393"], ["current_sign_in_at", "2016-10-02 19:57:18.528393"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 19:57:18.529042"], ["id", 150]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 15:57:18 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.1ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 150]] Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 15:57:18 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 150]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (2.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.3ms) Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 15:57:18 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 150]]  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.5ms) Completed 200 OK in 10ms (Views: 4.8ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$wwTRadSzADXSMNEfGgUwpOBDcb6f53UFw4Aankj2lvvo/xuyTaWJi"], ["created_at", "2016-10-02 19:57:18.610486"], ["updated_at", "2016-10-02 19:57:18.610486"]]  (12.3ms) COMMIT  (31.9ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (15.2ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (39.6ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (40.4ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$h5YSl7AQs928cMLuUOkH/ui5NhMwjkNt78gCMy80q6PY2oBpBHMKu"], ["created_at", "2016-10-02 19:57:18.790778"], ["updated_at", "2016-10-02 19:57:18.790778"]]  (0.3ms) COMMIT  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (47.4ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (24.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (23.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$lmMCYTBqXVO/jMDvY/eqr..XqxEPnF1HsmFSrzR8Zlun29zmlWFo6"], ["created_at", "2016-10-02 19:59:22.721492"], ["updated_at", "2016-10-02 19:59:22.721492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:59:22 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (37.9ms) Completed 200 OK in 312ms (Views: 298.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:59:23 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 19:59:23.095108"], ["current_sign_in_at", "2016-10-02 19:59:23.095108"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 19:59:23.095832"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 20ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 15:59:23 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 15:59:23 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (7.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (11.0ms) Completed 200 OK in 43ms (Views: 25.2ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 15:59:23 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (6.6ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 19:59:23.210926"], ["updated_at", "2016-10-02 19:59:23.210926"]] SQL (19.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-02 19:59:23.210926"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 904ms (ActiveRecord: 28.3ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 15:59:24 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (8.7ms) Completed 200 OK in 18ms (Views: 13.6ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$UNvvG6tjuQ6Te8zFPMKEq.ZrWVH0TjlvXXM5GMiyugSlemrH4XjcC"], ["created_at", "2016-10-02 19:59:24.140694"], ["updated_at", "2016-10-02 19:59:24.140694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:59:24 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.5ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:59:24 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 19:59:24.156192"], ["current_sign_in_at", "2016-10-02 19:59:24.156192"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 19:59:24.156822"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 15:59:24 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 15:59:24 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.3ms) Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 15:59:24 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.7ms) Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$9J95h9FRwWN1MZGhMi3TSuvIBeWeSRGYddRFJ0YGQFtSke3e8lJpO"], ["created_at", "2016-10-02 19:59:24.235980"], ["updated_at", "2016-10-02 19:59:24.235980"]]  (6.9ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:59:31 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.6ms) Rendered devise/sessions/new.html.erb within layouts/application (4.1ms) Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 15:59:31 -0400 Started GET "/assets/application-ec6d1d50655a8c5eb72a3bfc57d3ffd0e976c5d1dfd10bc8dff7b8f09d15d559.js" for 127.0.0.1 at 2016-10-02 15:59:31 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:59:32 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 19:59:32.374666"], ["current_sign_in_at", "2016-10-02 19:59:32.374666"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 19:59:32.375656"], ["id", 3]]  (6.2ms) COMMIT Redirected to http://127.0.0.1:51423/ Completed 302 Found in 17ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2016-10-02 15:59:32 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.1ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '241d09f9-65c0-4c9a-99b1-31414464f2e8' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '241d09f9-65c0-4c9a-99b1-31414464f2e8' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "241d09f9-65c0-4c9a-99b1-31414464f2e8"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 19:59:32.541742"], ["updated_at", "2016-10-02 19:59:32.541742"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 19:59:32.541742"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.5ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 15:59:32 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (18.5ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.5ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (8.7ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (21.1ms) Completed 200 OK in 78ms (Views: 26.0ms | ActiveRecord: 31.2ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 15:59:32 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (7.3ms) Completed 200 OK in 29ms (Views: 11.8ms | ActiveRecord: 1.9ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 15:59:33 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "commit"=>"Submit Payment"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.4ms) Completed 200 OK in 11ms (Views: 3.5ms | ActiveRecord: 1.0ms)  (0.5ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.2ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (214.6ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (38.0ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$jeshqNYE.eLgaTa9.AhYweiRaC4uCC4PQihvvm/rfXUiPSrV/9bQe"], ["created_at", "2016-10-02 19:59:36.103379"], ["updated_at", "2016-10-02 19:59:36.103379"]]  (5.8ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:59:36 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.4ms) Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 15:59:36 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 19:59:36.516962"], ["current_sign_in_at", "2016-10-02 19:59:36.516962"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 19:59:36.517756"], ["id", 1]]  (5.8ms) COMMIT Redirected to http://127.0.0.1:51423/ Completed 302 Found in 14ms (ActiveRecord: 6.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 15:59:36 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '241d09f9-65c0-4c9a-99b1-31414464f2e8' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '241d09f9-65c0-4c9a-99b1-31414464f2e8' LIMIT 1 SQL (5.8ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "241d09f9-65c0-4c9a-99b1-31414464f2e8"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 19:59:36.656426"], ["updated_at", "2016-10-02 19:59:36.656426"]] SQL (16.7ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 19:59:36.656426"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (10.9ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 15:59:36 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (2.0ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (5.1ms) Completed 200 OK in 13ms (Views: 4.6ms | ActiveRecord: 3.5ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 15:59:36 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.4ms) Completed 200 OK in 6ms (Views: 3.0ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 15:59:37 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.3ms) Completed 200 OK in 8ms (Views: 3.0ms | ActiveRecord: 0.8ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (64.8ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (22.9ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$Zr1ZTtuq9lBUDGNADNWH8.EOk8aKH03UTNi/Wmx0HboZ5A47oolVC"], ["created_at", "2016-10-02 20:00:05.918249"], ["updated_at", "2016-10-02 20:00:05.918249"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:00:05 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (35.8ms) Completed 200 OK in 287ms (Views: 274.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:00:06 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:00:06.266678"], ["current_sign_in_at", "2016-10-02 20:00:06.266678"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:00:06.267410"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 19ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:00:06 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:00:06 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (7.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (11.1ms) Completed 200 OK in 40ms (Views: 22.3ms | ActiveRecord: 1.6ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:00:06 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 20:00:06.372225"], ["updated_at", "2016-10-02 20:00:06.372225"]] SQL (17.6ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-02 20:00:06.372225"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 1301ms (ActiveRecord: 20.5ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 16:00:07 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (8.1ms) Completed 200 OK in 18ms (Views: 12.5ms | ActiveRecord: 0.5ms)  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$XQGhwTf/ce98/glq6jep6.F4emaHOT5/B7.dyaBpZGxux95wiP49K"], ["created_at", "2016-10-02 20:00:07.703620"], ["updated_at", "2016-10-02 20:00:07.703620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:00:07 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:00:07 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:00:07.716799"], ["current_sign_in_at", "2016-10-02 20:00:07.716799"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:00:07.717383"], ["id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:00:07 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:00:07 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.3ms) Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:00:07 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.7ms) Completed 200 OK in 10ms (Views: 5.1ms | ActiveRecord: 0.7ms)  (0.3ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$PqD3AMVPLob3.haE8PBFS.Z.JPYr7I2xkSNfzFkDlobzcrn75NwfG"], ["created_at", "2016-10-02 20:00:07.802364"], ["updated_at", "2016-10-02 20:00:07.802364"]]  (7.2ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:00:10 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.7ms) Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 16:00:10 -0400 Started GET "/assets/application-ec6d1d50655a8c5eb72a3bfc57d3ffd0e976c5d1dfd10bc8dff7b8f09d15d559.js" for 127.0.0.1 at 2016-10-02 16:00:10 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:00:11 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:00:11.132538"], ["current_sign_in_at", "2016-10-02 20:00:11.132538"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:00:11.133587"], ["id", 3]]  (6.1ms) COMMIT Redirected to http://127.0.0.1:51830/ Completed 302 Found in 17ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:00:11 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '0128e2b3-772d-48ca-a3af-8dce855942f1' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '0128e2b3-772d-48ca-a3af-8dce855942f1' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "0128e2b3-772d-48ca-a3af-8dce855942f1"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:00:11.285728"], ["updated_at", "2016-10-02 20:00:11.285728"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:00:11.285728"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:00:11 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (9.9ms) Completed 200 OK in 39ms (Views: 22.1ms | ActiveRecord: 3.7ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 16:00:11 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (6.4ms) Completed 200 OK in 28ms (Views: 10.6ms | ActiveRecord: 2.1ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:00:12 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "commit"=>"Submit Payment"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.3ms) Completed 200 OK in 10ms (Views: 3.2ms | ActiveRecord: 0.9ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.0ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (41.2ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$KzTxFSegCO2CmMpdrE/gN.4XtezmT9plp5Rrzc9764jPtwr2a0FXC"], ["created_at", "2016-10-02 20:00:19.727619"], ["updated_at", "2016-10-02 20:00:19.727619"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:00:19 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.3ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:00:20 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:00:20.103774"], ["current_sign_in_at", "2016-10-02 20:00:20.103774"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:00:20.104695"], ["id", 1]]  (5.5ms) COMMIT Redirected to http://127.0.0.1:51830/ Completed 302 Found in 14ms (ActiveRecord: 6.4ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:00:20 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '0128e2b3-772d-48ca-a3af-8dce855942f1' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '0128e2b3-772d-48ca-a3af-8dce855942f1' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "0128e2b3-772d-48ca-a3af-8dce855942f1"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:00:20.256360"], ["updated_at", "2016-10-02 20:00:20.256360"]] SQL (0.5ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:00:20.256360"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:00:20 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.9ms) Completed 200 OK in 8ms (Views: 4.0ms | ActiveRecord: 1.4ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 16:00:20 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (1.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.8ms) Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:00:21 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.5ms) Completed 200 OK in 8ms (Views: 3.4ms | ActiveRecord: 0.7ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (36.7ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$OkraN3eHeqbGJXfyZtn3uuh1kZAFm4RkIWpddHP7C4tQw.6tj6imG"], ["created_at", "2016-10-02 20:01:00.165049"], ["updated_at", "2016-10-02 20:01:00.165049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:01:00 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (29.1ms) Completed 200 OK in 250ms (Views: 237.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:01:00 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:01:00.446877"], ["current_sign_in_at", "2016-10-02 20:01:00.446877"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:01:00.447593"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:01:00 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:01:00 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (7.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (10.1ms) Completed 200 OK in 40ms (Views: 21.5ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:01:00 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 20:01:00.548840"], ["updated_at", "2016-10-02 20:01:00.548840"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-02 20:01:00.548840"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 839ms (ActiveRecord: 3.1ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 16:01:01 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (6.4ms) Completed 200 OK in 14ms (Views: 10.4ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$8rry9OjIEOcI9ykabZBz8uw450x.5ViIMDYv6Rl1VugYT45h2BSN."], ["created_at", "2016-10-02 20:01:01.414298"], ["updated_at", "2016-10-02 20:01:01.414298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:01:01 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:01:01 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:01:01.427944"], ["current_sign_in_at", "2016-10-02 20:01:01.427944"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:01:01.428597"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:01:01 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:01:01 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.4ms) Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:01:01 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.5ms) Completed 200 OK in 9ms (Views: 4.7ms | ActiveRecord: 0.6ms)  (0.3ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$hIrhqBAvLx2zocfePvu1S.9ngixT9YfYpnoSnMNTqRzeYuNLAvaNe"], ["created_at", "2016-10-02 20:01:01.508996"], ["updated_at", "2016-10-02 20:01:01.508996"]]  (0.4ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:01:04 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.7ms) Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 16:01:04 -0400 Started GET "/assets/application-ec6d1d50655a8c5eb72a3bfc57d3ffd0e976c5d1dfd10bc8dff7b8f09d15d559.js" for 127.0.0.1 at 2016-10-02 16:01:04 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:01:04 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:01:04.673307"], ["current_sign_in_at", "2016-10-02 20:01:04.673307"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:01:04.674299"], ["id", 3]]  (6.1ms) COMMIT Redirected to http://127.0.0.1:52189/ Completed 302 Found in 16ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:01:04 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '89793802-ded2-4635-a1d8-863d29c8ac9b' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '89793802-ded2-4635-a1d8-863d29c8ac9b' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "89793802-ded2-4635-a1d8-863d29c8ac9b"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:01:04.827589"], ["updated_at", "2016-10-02 20:01:04.827589"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:01:04.827589"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:01:04 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (10.9ms) Completed 200 OK in 43ms (Views: 23.5ms | ActiveRecord: 3.8ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 16:01:05 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (1.9ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (6.4ms) Completed 200 OK in 27ms (Views: 10.5ms | ActiveRecord: 3.5ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:01:05 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "commit"=>"Submit Payment"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.2ms) Completed 200 OK in 10ms (Views: 3.0ms | ActiveRecord: 0.8ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.1ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.7ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (33.8ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$axQZxYcS1H95DYZL8aNHye05KN0Gbv1cM4IS/jH4xn0X42sUWfb9W"], ["created_at", "2016-10-02 20:01:13.176305"], ["updated_at", "2016-10-02 20:01:13.176305"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:01:13 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.2ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:01:13 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:01:13.567965"], ["current_sign_in_at", "2016-10-02 20:01:13.567965"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:01:13.568684"], ["id", 1]]  (5.7ms) COMMIT Redirected to http://127.0.0.1:52189/ Completed 302 Found in 14ms (ActiveRecord: 6.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:01:13 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '89793802-ded2-4635-a1d8-863d29c8ac9b' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '89793802-ded2-4635-a1d8-863d29c8ac9b' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "89793802-ded2-4635-a1d8-863d29c8ac9b"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:01:13.711948"], ["updated_at", "2016-10-02 20:01:13.711948"]] SQL (0.5ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:01:13.711948"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.5ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:01:13 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.6ms) Completed 200 OK in 8ms (Views: 4.2ms | ActiveRecord: 1.4ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 16:01:13 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (2.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (3.0ms) Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:01:14 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.3ms) Completed 200 OK in 8ms (Views: 2.9ms | ActiveRecord: 0.7ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (42.1ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$B3JMa6Sf1m6LXE5JeZe.mOhqCEMK7FzVmj1kq5Q32wl4c7/9V63O."], ["created_at", "2016-10-02 20:02:31.778303"], ["updated_at", "2016-10-02 20:02:31.778303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:02:31 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.0ms) Rendered devise/sessions/new.html.erb within layouts/application (24.3ms) Completed 200 OK in 241ms (Views: 226.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:02:32 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:02:32.049855"], ["current_sign_in_at", "2016-10-02 20:02:32.049855"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:02:32.050614"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:02:32 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:02:32 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (9.8ms) Completed 200 OK in 39ms (Views: 21.4ms | ActiveRecord: 1.5ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:02:32 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 20:02:32.151046"], ["updated_at", "2016-10-02 20:02:32.151046"]] SQL (12.0ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-02 20:02:32.151046"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 860ms (ActiveRecord: 14.8ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 16:02:33 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (7.7ms) Completed 200 OK in 18ms (Views: 12.8ms | ActiveRecord: 0.6ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$9mPf3lPS6DaRkOfEYpKyWOtzNaXbw2KQ1nocFkqlrow/6m5zs1w6K"], ["created_at", "2016-10-02 20:02:33.043072"], ["updated_at", "2016-10-02 20:02:33.043072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:02:33 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:02:33 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:02:33.056790"], ["current_sign_in_at", "2016-10-02 20:02:33.056790"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:02:33.057583"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:02:33 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:02:33 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (2.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.3ms) Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.4ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:02:33 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.2ms) Completed 200 OK in 11ms (Views: 5.6ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$Y1Y26Fpd1P6iwRq6OXnyRu9.2FAuZsqja6Ap9jJCmq3J0oBc8y7oW"], ["created_at", "2016-10-02 20:02:33.139414"], ["updated_at", "2016-10-02 20:02:33.139414"]]  (0.4ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:02:36 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.8ms) Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 16:02:36 -0400 Started GET "/assets/application-ec6d1d50655a8c5eb72a3bfc57d3ffd0e976c5d1dfd10bc8dff7b8f09d15d559.js" for 127.0.0.1 at 2016-10-02 16:02:36 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:02:36 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:02:36.678920"], ["current_sign_in_at", "2016-10-02 20:02:36.678920"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:02:36.680207"], ["id", 3]]  (6.1ms) COMMIT Redirected to http://127.0.0.1:52580/ Completed 302 Found in 18ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:02:36 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f2d5ef97-438c-4a5b-b1b0-367fa9bcc70e' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f2d5ef97-438c-4a5b-b1b0-367fa9bcc70e' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "f2d5ef97-438c-4a5b-b1b0-367fa9bcc70e"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:02:36.833422"], ["updated_at", "2016-10-02 20:02:36.833422"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:02:36.833422"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:02:36 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (11.1ms) Completed 200 OK in 46ms (Views: 23.1ms | ActiveRecord: 3.5ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 16:02:37 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (2.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (5.9ms) Completed 200 OK in 26ms (Views: 9.9ms | ActiveRecord: 2.1ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:02:37 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "commit"=>"Submit Payment"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.3ms) Completed 200 OK in 10ms (Views: 3.1ms | ActiveRecord: 0.9ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.1ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (32.2ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$dKcxX9mFgX5VeO9uUtvMhu0cNjVE0AyoePwcr2H4Iu.DBaw4AApw2"], ["created_at", "2016-10-02 20:02:45.255106"], ["updated_at", "2016-10-02 20:02:45.255106"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:02:45 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.4ms) Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:02:45 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:02:45.636283"], ["current_sign_in_at", "2016-10-02 20:02:45.636283"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:02:45.637033"], ["id", 1]]  (5.9ms) COMMIT Redirected to http://127.0.0.1:52580/ Completed 302 Found in 14ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:02:45 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f2d5ef97-438c-4a5b-b1b0-367fa9bcc70e' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f2d5ef97-438c-4a5b-b1b0-367fa9bcc70e' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "f2d5ef97-438c-4a5b-b1b0-367fa9bcc70e"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:02:45.784084"], ["updated_at", "2016-10-02 20:02:45.784084"]] SQL (0.5ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:02:45.784084"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:02:45 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (3.0ms) Completed 200 OK in 8ms (Views: 4.0ms | ActiveRecord: 1.6ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 16:02:46 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (1.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.5ms) Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 0.5ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:02:46 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.3ms) Completed 200 OK in 8ms (Views: 3.0ms | ActiveRecord: 1.0ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (36.9ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$IkcmKpe3XPd.XjEpFj9Sm.qOCK7i/u4/A6Q1hLmVBDZubhUqtRSxy"], ["created_at", "2016-10-02 20:03:26.520272"], ["updated_at", "2016-10-02 20:03:26.520272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:03:26 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.4ms) Rendered devise/sessions/new.html.erb within layouts/application (26.6ms) Completed 200 OK in 249ms (Views: 237.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:03:26 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:03:26.798938"], ["current_sign_in_at", "2016-10-02 20:03:26.798938"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:03:26.799733"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:03:26 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.4ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 8ms (Views: 7.8ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:03:26 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (9.4ms) Completed 200 OK in 38ms (Views: 20.9ms | ActiveRecord: 1.4ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:03:26 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 20:03:26.906620"], ["updated_at", "2016-10-02 20:03:26.906620"]] SQL (0.6ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-02 20:03:26.906620"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 899ms (ActiveRecord: 3.4ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 16:03:27 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (6.7ms) Completed 200 OK in 15ms (Views: 10.8ms | ActiveRecord: 0.4ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$rQpBPmfJtqXjDKb92sghyeW2z3GFLFRDGJ/buE5aHI7E.jKkrotWC"], ["created_at", "2016-10-02 20:03:27.833061"], ["updated_at", "2016-10-02 20:03:27.833061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:03:27 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.6ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:03:27 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:03:27.848369"], ["current_sign_in_at", "2016-10-02 20:03:27.848369"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:03:27.849246"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:03:27 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.7ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:03:27 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.3ms) Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:03:27 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.4ms) Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$6HaGOWOn9Qwnglt.ArKI8eY7I2V0t7EHKtC4/hczgrBwIDFd8g4Fa"], ["created_at", "2016-10-02 20:03:27.939185"], ["updated_at", "2016-10-02 20:03:27.939185"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:03:30 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.7ms) Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 16:03:30 -0400 Started GET "/assets/application-ec6d1d50655a8c5eb72a3bfc57d3ffd0e976c5d1dfd10bc8dff7b8f09d15d559.js" for 127.0.0.1 at 2016-10-02 16:03:30 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:03:31 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:03:31.080245"], ["current_sign_in_at", "2016-10-02 20:03:31.080245"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:03:31.081266"], ["id", 3]]  (6.1ms) COMMIT Redirected to http://127.0.0.1:52952/ Completed 302 Found in 17ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:03:31 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.2ms)  (0.1ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9f695504-8fd0-45b1-a8c9-ddbb10969942' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9f695504-8fd0-45b1-a8c9-ddbb10969942' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "9f695504-8fd0-45b1-a8c9-ddbb10969942"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:03:31.243757"], ["updated_at", "2016-10-02 20:03:31.243757"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:03:31.243757"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:03:31 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (10.5ms) Completed 200 OK in 40ms (Views: 22.2ms | ActiveRecord: 3.8ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 16:03:31 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (6.4ms) Completed 200 OK in 27ms (Views: 10.7ms | ActiveRecord: 2.0ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:03:42 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "commit"=>"Submit Payment"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.3ms) Completed 200 OK in 11ms (Views: 3.3ms | ActiveRecord: 1.2ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.0ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.7ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (39.2ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$9Rjk3s7zNv3OX60WUJRFKeMD1EnUg1K.cNyzMANbNwfhO5dgkjnJ."], ["created_at", "2016-10-02 20:03:49.616341"], ["updated_at", "2016-10-02 20:03:49.616341"]]  (0.2ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:03:49 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.4ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:03:50 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:03:50.066145"], ["current_sign_in_at", "2016-10-02 20:03:50.066145"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:03:50.066886"], ["id", 1]]  (5.6ms) COMMIT Redirected to http://127.0.0.1:52952/ Completed 302 Found in 13ms (ActiveRecord: 6.5ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:03:50 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9f695504-8fd0-45b1-a8c9-ddbb10969942' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '9f695504-8fd0-45b1-a8c9-ddbb10969942' LIMIT 1 SQL (4.7ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "9f695504-8fd0-45b1-a8c9-ddbb10969942"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:03:50.203866"], ["updated_at", "2016-10-02 20:03:50.203866"]] SQL (0.6ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:03:50.203866"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:03:50 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.7ms) Completed 200 OK in 8ms (Views: 4.0ms | ActiveRecord: 1.3ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 16:03:50 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (1.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (3.0ms) Completed 200 OK in 8ms (Views: 4.7ms | ActiveRecord: 0.5ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:04:01 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.3ms) Completed 200 OK in 8ms (Views: 2.9ms | ActiveRecord: 0.7ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (39.1ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (24.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (23.0ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$1QgV7e4fo9v.LDYubE6qFO.TvrbIZ6GEkOSXX0CGAinZxcoRuCwEy"], ["created_at", "2016-10-02 20:08:15.523196"], ["updated_at", "2016-10-02 20:08:15.523196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:08:15 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.2ms) Rendered devise/sessions/new.html.erb within layouts/application (36.0ms) Completed 200 OK in 300ms (Views: 285.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:08:15 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:08:15.882999"], ["current_sign_in_at", "2016-10-02 20:08:15.882999"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:08:15.883741"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 19ms (ActiveRecord: 1.0ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:08:15 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.4ms) User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.4ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:08:15 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (7.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (11.5ms) Completed 200 OK in 41ms (Views: 23.9ms | ActiveRecord: 1.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:08:15 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (2.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 20:08:15.997826"], ["updated_at", "2016-10-02 20:08:15.997826"]] SQL (18.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-02 20:08:15.997826"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 907ms (ActiveRecord: 22.8ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 16:08:16 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (11.1ms) Completed 200 OK in 21ms (Views: 15.8ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$sUAhaBPIS02Z1jnHQSEwNeP12eVVrHo89K.DhTphS9EOMfPR0RQR2"], ["created_at", "2016-10-02 20:08:16.936027"], ["updated_at", "2016-10-02 20:08:16.936027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:08:16 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:08:16 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:08:16.949312"], ["current_sign_in_at", "2016-10-02 20:08:16.949312"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:08:16.950019"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:08:16 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:08:16 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.6ms) Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:08:16 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.7ms) Completed 200 OK in 9ms (Views: 4.9ms | ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$8sSuyeMr4qqysFBp2X8iAee3n.9EGzVoBTYBekNsRf/oC3tkDOJ3m"], ["created_at", "2016-10-02 20:08:17.032920"], ["updated_at", "2016-10-02 20:08:17.032920"]]  (6.7ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:08:20 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.9ms) Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 16:08:20 -0400 Started GET "/assets/application-ec6d1d50655a8c5eb72a3bfc57d3ffd0e976c5d1dfd10bc8dff7b8f09d15d559.js" for 127.0.0.1 at 2016-10-02 16:08:20 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:08:21 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:08:21.142411"], ["current_sign_in_at", "2016-10-02 20:08:21.142411"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:08:21.143477"], ["id", 3]]  (6.3ms) COMMIT Redirected to http://127.0.0.1:53700/ Completed 302 Found in 17ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:08:21 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'dbc2faef-7269-4f7e-8eb0-b6a098144a1e' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'dbc2faef-7269-4f7e-8eb0-b6a098144a1e' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "dbc2faef-7269-4f7e-8eb0-b6a098144a1e"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:08:21.297865"], ["updated_at", "2016-10-02 20:08:21.297865"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:08:21.297865"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:08:21 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (14.8ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (12.6ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (24.7ms) Completed 200 OK in 69ms (Views: 22.8ms | ActiveRecord: 30.5ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 16:08:21 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (2.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (7.2ms) Completed 200 OK in 30ms (Views: 11.5ms | ActiveRecord: 3.8ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:08:28 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "commit"=>"Submit Payment"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (1.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.7ms) Completed 200 OK in 13ms (Views: 4.0ms | ActiveRecord: 1.0ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.1ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (39.4ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$l95Zb2xoRlK1XMdkzKN2SOS1Ok3d4OOimNQ/K9xESZy9T9W9nvBJy"], ["created_at", "2016-10-02 20:08:32.040236"], ["updated_at", "2016-10-02 20:08:32.040236"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:08:32 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.4ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:08:32 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:08:32.522429"], ["current_sign_in_at", "2016-10-02 20:08:32.522429"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:08:32.523115"], ["id", 1]]  (6.1ms) COMMIT Redirected to http://127.0.0.1:53700/ Completed 302 Found in 14ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:08:32 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'dbc2faef-7269-4f7e-8eb0-b6a098144a1e' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'dbc2faef-7269-4f7e-8eb0-b6a098144a1e' LIMIT 1 SQL (2.5ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "dbc2faef-7269-4f7e-8eb0-b6a098144a1e"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:08:32.661073"], ["updated_at", "2016-10-02 20:08:32.661073"]] SQL (0.6ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:08:32.661073"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:08:32 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (3.0ms) Completed 200 OK in 8ms (Views: 3.9ms | ActiveRecord: 1.5ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 16:08:32 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.4ms) Completed 200 OK in 6ms (Views: 3.0ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:08:39 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.4ms) Completed 200 OK in 8ms (Views: 3.5ms | ActiveRecord: 0.7ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (40.3ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (23.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$iYQTmsSdt5KKLVkTuBzM4Otxs/O0cuH7WvaTemoOerZd94cEnZYwm"], ["created_at", "2016-10-02 20:08:53.650306"], ["updated_at", "2016-10-02 20:08:53.650306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:08:53 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (34.5ms) Completed 200 OK in 290ms (Views: 277.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:08:53 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:08:54.002891"], ["current_sign_in_at", "2016-10-02 20:08:54.002891"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:08:54.003716"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 19ms (ActiveRecord: 1.0ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:08:54 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 7ms (Views: 7.0ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:08:54 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (9.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (14.4ms) Completed 200 OK in 46ms (Views: 27.2ms | ActiveRecord: 1.4ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:08:54 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 20:08:54.115635"], ["updated_at", "2016-10-02 20:08:54.115635"]] SQL (12.0ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-02 20:08:54.115635"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 920ms (ActiveRecord: 14.8ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 16:08:55 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (10.0ms) Completed 200 OK in 22ms (Views: 15.3ms | ActiveRecord: 0.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$qyvexeP0Glg/fiweC/VbjuEddWoG/d9N8iQwx6cGD/d3Mrs/.u4zC"], ["created_at", "2016-10-02 20:08:55.074276"], ["updated_at", "2016-10-02 20:08:55.074276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:08:55 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:08:55 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:08:55.089537"], ["current_sign_in_at", "2016-10-02 20:08:55.089537"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:08:55.090394"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:08:55 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:08:55 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.4ms) Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:08:55 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.5ms) Completed 200 OK in 10ms (Views: 4.8ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$N4/64yCPLYWHcd0pZrU3AegldnnIqEMZyeMm8Oc0x2sLIFVPYRRj."], ["created_at", "2016-10-02 20:08:55.167613"], ["updated_at", "2016-10-02 20:08:55.167613"]]  (11.1ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:08:57 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.8ms) Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 16:08:57 -0400 Started GET "/assets/application-ec6d1d50655a8c5eb72a3bfc57d3ffd0e976c5d1dfd10bc8dff7b8f09d15d559.js" for 127.0.0.1 at 2016-10-02 16:08:57 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:08:58 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:08:58.585625"], ["current_sign_in_at", "2016-10-02 20:08:58.585625"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:08:58.586649"], ["id", 3]]  (6.0ms) COMMIT Redirected to http://127.0.0.1:54074/ Completed 302 Found in 17ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:08:58 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.2ms)  (0.1ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'ccd1d2f0-2415-40b1-ab73-b9c4bc9fea3a' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'ccd1d2f0-2415-40b1-ab73-b9c4bc9fea3a' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "ccd1d2f0-2415-40b1-ab73-b9c4bc9fea3a"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:08:58.743706"], ["updated_at", "2016-10-02 20:08:58.743706"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:08:58.743706"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.5ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:08:58 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.5ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.6ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (11.0ms) Completed 200 OK in 47ms (Views: 22.1ms | ActiveRecord: 4.1ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 16:08:58 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (6.4ms) Completed 200 OK in 26ms (Views: 10.7ms | ActiveRecord: 2.0ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:09:05 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "commit"=>"Submit Payment"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.3ms) Completed 200 OK in 11ms (Views: 3.4ms | ActiveRecord: 1.0ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.0ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (2.4ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (57.4ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$8gdfp6bXxcbyBCScCVd5yennacPqWZzeAoYssH6PFVI/uVDv.Ww1a"], ["created_at", "2016-10-02 20:09:09.161005"], ["updated_at", "2016-10-02 20:09:09.161005"]]  (0.2ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:09:09 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.6ms) Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:09:09 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:09:09.553182"], ["current_sign_in_at", "2016-10-02 20:09:09.553182"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:09:09.553932"], ["id", 1]]  (6.3ms) COMMIT Redirected to http://127.0.0.1:54074/ Completed 302 Found in 15ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:09:09 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'ccd1d2f0-2415-40b1-ab73-b9c4bc9fea3a' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'ccd1d2f0-2415-40b1-ab73-b9c4bc9fea3a' LIMIT 1 SQL (4.7ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "ccd1d2f0-2415-40b1-ab73-b9c4bc9fea3a"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:09:09.693721"], ["updated_at", "2016-10-02 20:09:09.693721"]] SQL (0.7ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:09:09.693721"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:09:09 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.5ms) Completed 200 OK in 8ms (Views: 4.0ms | ActiveRecord: 1.3ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 16:09:09 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.2ms) Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:09:16 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.1ms) Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.8ms)  (0.3ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (27.2ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (1.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$vgMqixbmlsIDLZTBIp0NHOtQbsZgaURddeXOFLr5YYwIEPZkdohbm"], ["created_at", "2016-10-02 20:13:18.898931"], ["updated_at", "2016-10-02 20:13:18.898931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:13:18 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.0ms) Rendered devise/sessions/new.html.erb within layouts/application (25.2ms) Completed 200 OK in 242ms (Views: 230.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:13:19 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:13:19.175984"], ["current_sign_in_at", "2016-10-02 20:13:19.175984"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:13:19.176712"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:13:19 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:13:19 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (9.2ms) Completed 200 OK in 39ms (Views: 19.8ms | ActiveRecord: 1.5ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:13:19 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 20:13:19.276232"], ["updated_at", "2016-10-02 20:13:19.276232"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-02 20:13:19.276232"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 446ms (ActiveRecord: 3.2ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 16:13:19 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (8.8ms) Completed 200 OK in 17ms (Views: 13.0ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$acM6HlkZKPkJ/Nc1UrDYKumHf8ahnouVtpotchKROXxdodnJkcj0C"], ["created_at", "2016-10-02 20:13:19.752317"], ["updated_at", "2016-10-02 20:13:19.752317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:13:19 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:13:19 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:13:19.766264"], ["current_sign_in_at", "2016-10-02 20:13:19.766264"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:13:19.766877"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:13:19 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.1ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:13:19 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.4ms) Completed 200 OK in 7ms (Views: 4.7ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:13:19 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.8ms) Completed 200 OK in 11ms (Views: 5.2ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$N4JqvibziRQSUSRqY3XixuBGNEiIM5v7dVltj7Mim7EumbEaK3pBm"], ["created_at", "2016-10-02 20:13:19.849177"], ["updated_at", "2016-10-02 20:13:19.849177"]]  (0.5ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:13:22 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.7ms) Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 16:13:22 -0400 Started GET "/assets/application-ec6d1d50655a8c5eb72a3bfc57d3ffd0e976c5d1dfd10bc8dff7b8f09d15d559.js" for 127.0.0.1 at 2016-10-02 16:13:22 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:13:23 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:13:23.259356"], ["current_sign_in_at", "2016-10-02 20:13:23.259356"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:13:23.260161"], ["id", 3]]  (6.1ms) COMMIT Redirected to http://127.0.0.1:54717/ Completed 302 Found in 16ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:13:23 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '46507366-c7a1-41c1-b107-5487f75845cb' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '46507366-c7a1-41c1-b107-5487f75845cb' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "46507366-c7a1-41c1-b107-5487f75845cb"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:13:23.414402"], ["updated_at", "2016-10-02 20:13:23.414402"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:13:23.414402"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:13:23 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.6ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (11.0ms) Completed 200 OK in 44ms (Views: 22.2ms | ActiveRecord: 3.6ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 16:13:23 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (6.0ms) Completed 200 OK in 27ms (Views: 10.0ms | ActiveRecord: 3.9ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:13:31 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "commit"=>"Submit Payment"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.3ms) Completed 200 OK in 11ms (Views: 3.1ms | ActiveRecord: 1.1ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.1ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.9ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (37.2ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$p3viQJsiVgtQJFxW.enJm.7a8pWdcSjCWV20JwFcEN6Y/X5/Bmy/m"], ["created_at", "2016-10-02 20:13:34.833691"], ["updated_at", "2016-10-02 20:13:34.833691"]]  (0.2ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:13:34 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.6ms) Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:13:35 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.2ms) BEGIN SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:13:35.217271"], ["current_sign_in_at", "2016-10-02 20:13:35.217271"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:13:35.218477"], ["id", 1]]  (5.5ms) COMMIT Redirected to http://127.0.0.1:54717/ Completed 302 Found in 17ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:13:35 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.4ms)  (0.2ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '46507366-c7a1-41c1-b107-5487f75845cb' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '46507366-c7a1-41c1-b107-5487f75845cb' LIMIT 1 SQL (5.1ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "46507366-c7a1-41c1-b107-5487f75845cb"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:13:35.396484"], ["updated_at", "2016-10-02 20:13:35.396484"]] SQL (0.8ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:13:35.396484"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:13:35 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (8.3ms) Completed 200 OK in 15ms (Views: 10.5ms | ActiveRecord: 1.5ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 16:13:35 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.3ms) Completed 200 OK in 8ms (Views: 5.1ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:13:43 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 7ms (Views: 2.3ms | ActiveRecord: 0.8ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (66.1ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$D7po66ogwePII4kEtkkYxuXHf.ncro2XquTHCoGTY2pUUBRSf5Isu"], ["created_at", "2016-10-02 20:14:09.466941"], ["updated_at", "2016-10-02 20:14:09.466941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:14:09 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (26.1ms) Completed 200 OK in 237ms (Views: 225.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:14:09 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:14:09.734757"], ["current_sign_in_at", "2016-10-02 20:14:09.734757"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:14:09.735507"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 17ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:14:09 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:14:09 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (8.9ms) Completed 200 OK in 36ms (Views: 20.0ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:14:09 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 20:14:09.834810"], ["updated_at", "2016-10-02 20:14:09.834810"]] SQL (0.6ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-02 20:14:09.834810"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 855ms (ActiveRecord: 3.3ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 16:14:10 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (6.4ms) Completed 200 OK in 14ms (Views: 10.4ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$6VPE/BAGXs2l5jUkP6a/ZOXMZU8u8sFUWyFjPGGqwPUEYIT2Et3.m"], ["created_at", "2016-10-02 20:14:10.716115"], ["updated_at", "2016-10-02 20:14:10.716115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:14:10 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:14:10 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:14:10.728996"], ["current_sign_in_at", "2016-10-02 20:14:10.728996"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:14:10.729670"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:14:10 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:14:10 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.3ms) Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:14:10 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.6ms) Completed 200 OK in 9ms (Views: 4.9ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$Z2KXepr5p1/wqR42Om5.L.TahtHowYmbUutYyXVD5y.9Ec6SZh3Sq"], ["created_at", "2016-10-02 20:14:10.806870"], ["updated_at", "2016-10-02 20:14:10.806870"]]  (0.4ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:14:13 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.6ms) Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 16:14:13 -0400 Started GET "/assets/application-ec6d1d50655a8c5eb72a3bfc57d3ffd0e976c5d1dfd10bc8dff7b8f09d15d559.js" for 127.0.0.1 at 2016-10-02 16:14:13 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:14:13 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:14:13.870596"], ["current_sign_in_at", "2016-10-02 20:14:13.870596"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:14:13.871476"], ["id", 3]]  (6.2ms) COMMIT Redirected to http://127.0.0.1:55287/ Completed 302 Found in 17ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:14:13 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '4f256774-fde9-477f-956b-c8c245c3d595' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '4f256774-fde9-477f-956b-c8c245c3d595' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "4f256774-fde9-477f-956b-c8c245c3d595"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:14:14.026856"], ["updated_at", "2016-10-02 20:14:14.026856"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:14:14.026856"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:14:14 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.6ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (11.2ms) Completed 200 OK in 41ms (Views: 23.8ms | ActiveRecord: 4.2ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 16:14:14 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (1.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (7.4ms) Completed 200 OK in 27ms (Views: 11.6ms | ActiveRecord: 3.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:14:21 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "commit"=>"Submit Payment"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.1ms) Completed 200 OK in 10ms (Views: 2.9ms | ActiveRecord: 1.0ms)  (0.6ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.2ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (36.8ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$1jnz1sbEnY7rwGtq9XbB/ui4GXIqhFhaUS1XedhANJan2/o9VBc5S"], ["created_at", "2016-10-02 20:14:28.598386"], ["updated_at", "2016-10-02 20:14:28.598386"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:14:28 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.6ms) Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:14:28 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:14:28.954857"], ["current_sign_in_at", "2016-10-02 20:14:28.954857"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:14:28.955529"], ["id", 1]]  (5.9ms) COMMIT Redirected to http://127.0.0.1:55287/ Completed 302 Found in 14ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:14:28 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '4f256774-fde9-477f-956b-c8c245c3d595' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '4f256774-fde9-477f-956b-c8c245c3d595' LIMIT 1 SQL (4.6ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "4f256774-fde9-477f-956b-c8c245c3d595"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:14:29.089265"], ["updated_at", "2016-10-02 20:14:29.089265"]] SQL (0.6ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:14:29.089265"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:14:29 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.6ms) Completed 200 OK in 8ms (Views: 3.7ms | ActiveRecord: 1.3ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 16:14:29 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (2.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (3.1ms) Completed 200 OK in 8ms (Views: 5.0ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:14:36 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "commit"=>"Submit Payment"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 7ms (Views: 2.3ms | ActiveRecord: 0.7ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (37.9ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$pkhQDUAQJ9o/vVoH0mF4DOVQXEhDlKuRc2VgAbKrS14Y1wcNhIvJq"], ["created_at", "2016-10-02 20:16:23.607270"], ["updated_at", "2016-10-02 20:16:23.607270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:16:23 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.0ms) Rendered devise/sessions/new.html.erb within layouts/application (27.3ms) Completed 200 OK in 241ms (Views: 229.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:16:23 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:16:23.883062"], ["current_sign_in_at", "2016-10-02 20:16:23.883062"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:16:23.883837"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 17ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:16:23 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:16:23 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (9.0ms) Completed 200 OK in 41ms (Views: 20.1ms | ActiveRecord: 1.8ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:16:23 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 20:16:23.986222"], ["updated_at", "2016-10-02 20:16:23.986222"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-02 20:16:23.986222"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 941ms (ActiveRecord: 3.6ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 16:16:24 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (6.7ms) Completed 200 OK in 15ms (Views: 10.7ms | ActiveRecord: 0.5ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$..bjigv8dEGDDqdIkPG/RuGNTBU8LaBBfe.o9kC8aVd0mO1A5cUke"], ["created_at", "2016-10-02 20:16:24.954372"], ["updated_at", "2016-10-02 20:16:24.954372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:16:24 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.5ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:16:24 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:16:24.970190"], ["current_sign_in_at", "2016-10-02 20:16:24.970190"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:16:24.970872"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:16:24 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:16:24 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.4ms) Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:16:24 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.5ms) Completed 200 OK in 9ms (Views: 4.8ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$LlF/PFIzJq1vFPcOReVqxO9QWden44m74qwpJ9A9qvVorUL2N3W6y"], ["created_at", "2016-10-02 20:16:25.049558"], ["updated_at", "2016-10-02 20:16:25.049558"]]  (1.6ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:16:27 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.5ms) Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 16:16:28 -0400 Started GET "/assets/application-ec6d1d50655a8c5eb72a3bfc57d3ffd0e976c5d1dfd10bc8dff7b8f09d15d559.js" for 127.0.0.1 at 2016-10-02 16:16:28 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:16:28 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:16:28.683592"], ["current_sign_in_at", "2016-10-02 20:16:28.683592"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:16:28.684459"], ["id", 3]]  (6.2ms) COMMIT Redirected to http://127.0.0.1:55954/ Completed 302 Found in 17ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:16:28 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '7bfbb321-c61c-4ce1-8b7e-4ddd9b24a552' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '7bfbb321-c61c-4ce1-8b7e-4ddd9b24a552' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "7bfbb321-c61c-4ce1-8b7e-4ddd9b24a552"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:16:28.843112"], ["updated_at", "2016-10-02 20:16:28.843112"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:16:28.843112"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:16:28 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (2.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (1.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.5ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (11.7ms) Completed 200 OK in 50ms (Views: 22.5ms | ActiveRecord: 6.9ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 16:16:29 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (6.1ms) Completed 200 OK in 27ms (Views: 9.9ms | ActiveRecord: 2.2ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:16:36 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "commit"=>"Submit Payment"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.5ms) Completed 200 OK in 10ms (Views: 3.2ms | ActiveRecord: 0.9ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.0ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (34.4ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$leVsTtQEDg7YKKZxBqXviOBDAaZEaC7ijoSWWqj38Ynsz0ohArKXi"], ["created_at", "2016-10-02 20:16:44.250537"], ["updated_at", "2016-10-02 20:16:44.250537"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:16:44 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.4ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:16:44 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:16:44.733988"], ["current_sign_in_at", "2016-10-02 20:16:44.733988"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:16:44.735097"], ["id", 1]]  (5.8ms) COMMIT Redirected to http://127.0.0.1:55954/ Completed 302 Found in 14ms (ActiveRecord: 6.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:16:44 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '7bfbb321-c61c-4ce1-8b7e-4ddd9b24a552' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '7bfbb321-c61c-4ce1-8b7e-4ddd9b24a552' LIMIT 1 SQL (2.7ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "7bfbb321-c61c-4ce1-8b7e-4ddd9b24a552"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:16:44.959149"], ["updated_at", "2016-10-02 20:16:44.959149"]] SQL (0.6ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:16:44.959149"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:16:44 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.9ms) Completed 200 OK in 8ms (Views: 4.0ms | ActiveRecord: 1.5ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 16:16:45 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.4ms) Completed 200 OK in 9ms (Views: 5.8ms | ActiveRecord: 0.5ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:16:52 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "commit"=>"Submit Payment"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 6ms (Views: 2.3ms | ActiveRecord: 0.8ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (32.3ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$dPgI.fVBraPk5MogpuxvXeFCyiNI2xJINgXnAdWj9m0p/awm1o.p6"], ["created_at", "2016-10-02 20:16:59.154030"], ["updated_at", "2016-10-02 20:16:59.154030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:16:59 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (25.4ms) Completed 200 OK in 408ms (Views: 396.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:16:59 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:16:59.592380"], ["current_sign_in_at", "2016-10-02 20:16:59.592380"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:16:59.593086"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 16ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:16:59 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:16:59 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (9.2ms) Completed 200 OK in 37ms (Views: 20.4ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:16:59 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 20:16:59.686640"], ["updated_at", "2016-10-02 20:16:59.686640"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-02 20:16:59.686640"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 790ms (ActiveRecord: 3.4ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 16:17:00 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (7.7ms) Completed 200 OK in 17ms (Views: 12.4ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$fJ4XqF2hGdW3pmwIL/5bh.NgXcfRX1wBB8NT0I3P.LULJHBt8u5ZO"], ["created_at", "2016-10-02 20:17:00.506139"], ["updated_at", "2016-10-02 20:17:00.506139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:17:00 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:17:00 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:17:00.520299"], ["current_sign_in_at", "2016-10-02 20:17:00.520299"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:17:00.521099"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:17:00 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:17:00 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.1ms) Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:17:00 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.5ms) Completed 200 OK in 9ms (Views: 4.8ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$k5YGF6YIP3JkBTKvdQsno.Ufq8q5PBpCdcPz8KTJjUghhxBrVksIC"], ["created_at", "2016-10-02 20:17:00.597654"], ["updated_at", "2016-10-02 20:17:00.597654"]]  (0.4ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:17:03 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.5ms) Rendered devise/sessions/new.html.erb within layouts/application (3.1ms) Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 16:17:03 -0400 Started GET "/assets/application-87857b97db537098fd445070f716601b3b476c49ca3abaa7f20d1485469b9741.js" for 127.0.0.1 at 2016-10-02 16:17:03 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:17:03 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:17:03.754810"], ["current_sign_in_at", "2016-10-02 20:17:03.754810"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:17:03.755804"], ["id", 3]]  (6.3ms) COMMIT Redirected to http://127.0.0.1:56499/ Completed 302 Found in 17ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:17:03 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1ecec11e-8865-4859-ab05-7ebdfad40b8e' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1ecec11e-8865-4859-ab05-7ebdfad40b8e' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "1ecec11e-8865-4859-ab05-7ebdfad40b8e"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:17:03.913546"], ["updated_at", "2016-10-02 20:17:03.913546"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:17:03.913546"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:17:03 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (11.4ms) Completed 200 OK in 46ms (Views: 22.6ms | ActiveRecord: 3.7ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 16:17:04 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (6.4ms) Completed 200 OK in 34ms (Views: 10.5ms | ActiveRecord: 2.0ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:17:11 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "stripe_token"=>"tok_190GOZGYKt5n7d1YIYHoi1sM"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (1.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 416ms (Views: 4.4ms | ActiveRecord: 0.8ms)  (0.5ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (2.6ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (33.0ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$upZc1lVDjldgU5pxh.z2Yewt3S47YOP3ehNo.1JRU/3jyzfr0D48a"], ["created_at", "2016-10-02 20:17:18.207602"], ["updated_at", "2016-10-02 20:17:18.207602"]]  (0.2ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:17:18 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.2ms) Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:17:18 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.2ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:17:18.592460"], ["current_sign_in_at", "2016-10-02 20:17:18.592460"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:17:18.593299"], ["id", 1]]  (5.6ms) COMMIT Redirected to http://127.0.0.1:56499/ Completed 302 Found in 13ms (ActiveRecord: 6.6ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:17:18 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1ecec11e-8865-4859-ab05-7ebdfad40b8e' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1ecec11e-8865-4859-ab05-7ebdfad40b8e' LIMIT 1 SQL (6.4ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "1ecec11e-8865-4859-ab05-7ebdfad40b8e"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:17:18.729111"], ["updated_at", "2016-10-02 20:17:18.729111"]] SQL (0.6ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:17:18.729111"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:17:18 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.4ms) Completed 200 OK in 7ms (Views: 3.4ms | ActiveRecord: 1.3ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 16:17:18 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (2.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (3.2ms) Completed 200 OK in 9ms (Views: 5.7ms | ActiveRecord: 0.6ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:17:26 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"tok_190GOoGYKt5n7d1YFiDU1NSJ"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (1.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.8ms) Completed 200 OK in 577ms (Views: 4.0ms | ActiveRecord: 0.9ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (39.0ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$zMvYPSMng/GySoPs8UeK..HLH8pxe.pbJO7JbYTFUm.u9yhXOWpee"], ["created_at", "2016-10-02 20:18:11.583738"], ["updated_at", "2016-10-02 20:18:11.583738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:18:11 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.0ms) Rendered devise/sessions/new.html.erb within layouts/application (24.5ms) Completed 200 OK in 370ms (Views: 358.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:18:11 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:18:11.985435"], ["current_sign_in_at", "2016-10-02 20:18:11.985435"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:18:11.986279"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 1.1ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:18:11 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:18:12 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (9.4ms) Completed 200 OK in 37ms (Views: 20.2ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:18:12 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 20:18:12.083231"], ["updated_at", "2016-10-02 20:18:12.083231"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-02 20:18:12.083231"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 1077ms (ActiveRecord: 3.1ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 16:18:13 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (6.9ms) Completed 200 OK in 15ms (Views: 10.9ms | ActiveRecord: 0.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$eNq6/viYBSvbXNLJH5b8YOuLRMFs6NC0Kr/hXaq1CakFe44rlq4ae"], ["created_at", "2016-10-02 20:18:13.190825"], ["updated_at", "2016-10-02 20:18:13.190825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:18:13 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.6ms) Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:18:13 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:18:13.208163"], ["current_sign_in_at", "2016-10-02 20:18:13.208163"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:18:13.209051"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 1.0ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:18:13 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.1ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:18:13 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.9ms) Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:18:13 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.2ms) Completed 200 OK in 10ms (Views: 5.7ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$c5VaLOOmMN0k7ybtCC87cOGuDcv6vG3RVAUcyB7UXVM43yAt6veMO"], ["created_at", "2016-10-02 20:18:13.282524"], ["updated_at", "2016-10-02 20:18:13.282524"]]  (0.4ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:18:15 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (3.3ms) Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 16:18:15 -0400 Started GET "/assets/application-bf6cf518e8dc267eb1ffee83717bab5787da4a8f3972201fb4b2332e39cd089e.js" for 127.0.0.1 at 2016-10-02 16:18:15 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:18:16 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:18:16.378301"], ["current_sign_in_at", "2016-10-02 20:18:16.378301"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:18:16.379283"], ["id", 3]]  (6.1ms) COMMIT Redirected to http://127.0.0.1:57085/ Completed 302 Found in 17ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:18:16 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.1ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '4024e833-96ac-405d-9ab2-8e136735d69b' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '4024e833-96ac-405d-9ab2-8e136735d69b' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "4024e833-96ac-405d-9ab2-8e136735d69b"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:18:16.535982"], ["updated_at", "2016-10-02 20:18:16.535982"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:18:16.535982"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.5ms) COMMIT  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.1ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (35.5ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$Z1tYt3Wzk.E0wffSRMbQI.0cGCi40cfLzHYavJRIgHwMEn52/Okla"], ["created_at", "2016-10-02 20:18:16.653360"], ["updated_at", "2016-10-02 20:18:16.653360"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:18:16 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.3ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:18:17 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:18:17.023064"], ["current_sign_in_at", "2016-10-02 20:18:17.023064"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:18:17.024092"], ["id", 1]]  (6.0ms) COMMIT Redirected to http://127.0.0.1:57085/ Completed 302 Found in 15ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:18:17 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '4024e833-96ac-405d-9ab2-8e136735d69b' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '4024e833-96ac-405d-9ab2-8e136735d69b' LIMIT 1 SQL (5.1ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "4024e833-96ac-405d-9ab2-8e136735d69b"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:18:17.180103"], ["updated_at", "2016-10-02 20:18:17.180103"]] SQL (0.9ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:18:17.180103"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.5ms) COMMIT  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (38.9ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$yXJs.s7UKiJOb/YmkHxgreR4g8bl14ELqFUBHuTkExHiwFuowdL2O"], ["created_at", "2016-10-02 20:19:50.229701"], ["updated_at", "2016-10-02 20:19:50.229701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:19:50 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.2ms) Rendered devise/sessions/new.html.erb within layouts/application (25.6ms) Completed 200 OK in 244ms (Views: 230.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:19:50 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:19:50.505180"], ["current_sign_in_at", "2016-10-02 20:19:50.505180"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:19:50.505893"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:19:50 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 7ms (Views: 6.9ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:19:50 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (9.6ms) Completed 200 OK in 39ms (Views: 21.9ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:19:50 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 20:19:50.603732"], ["updated_at", "2016-10-02 20:19:50.603732"]] SQL (0.6ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-02 20:19:50.603732"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 842ms (ActiveRecord: 3.4ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 16:19:51 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (7.9ms) Completed 200 OK in 18ms (Views: 13.4ms | ActiveRecord: 0.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$OcN3kAW7la6wFqBdUGlhye/ed6FHHbmjXBRAR0P9BeshTsHciSY1C"], ["created_at", "2016-10-02 20:19:51.476246"], ["updated_at", "2016-10-02 20:19:51.476246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:19:51 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:19:51 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:19:51.490400"], ["current_sign_in_at", "2016-10-02 20:19:51.490400"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:19:51.491144"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:19:51 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:19:51 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.4ms) Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:19:51 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.0ms) Completed 200 OK in 10ms (Views: 5.4ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$prXb1/bLD/6Ytcw3xOqn/eef6pnUaH1/LD99brJ2FnMOKcYO1XLgG"], ["created_at", "2016-10-02 20:19:51.561332"], ["updated_at", "2016-10-02 20:19:51.561332"]]  (11.2ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:19:54 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.5ms) Rendered devise/sessions/new.html.erb within layouts/application (3.0ms) Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 16:19:54 -0400 Started GET "/assets/application-bf6cf518e8dc267eb1ffee83717bab5787da4a8f3972201fb4b2332e39cd089e.js" for 127.0.0.1 at 2016-10-02 16:19:54 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:19:54 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.3ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:19:54.651654"], ["current_sign_in_at", "2016-10-02 20:19:54.651654"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:19:54.652716"], ["id", 3]]  (5.8ms) COMMIT Redirected to http://127.0.0.1:57290/ Completed 302 Found in 16ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:19:54 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '5d867bc8-7957-401e-b5fc-1529c854a0fa' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '5d867bc8-7957-401e-b5fc-1529c854a0fa' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "5d867bc8-7957-401e-b5fc-1529c854a0fa"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:19:54.805001"], ["updated_at", "2016-10-02 20:19:54.805001"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:19:54.805001"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.2ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (62.9ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (1.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$XVu0B65FnuMMMwLDxChBzumdWh/AjoiqyvAa6TBN0d4f59NpGq10i"], ["created_at", "2016-10-02 20:19:54.962512"], ["updated_at", "2016-10-02 20:19:54.962512"]]  (0.2ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:19:54 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.4ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:19:55 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:19:55.341681"], ["current_sign_in_at", "2016-10-02 20:19:55.341681"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:19:55.342377"], ["id", 1]]  (5.5ms) COMMIT Redirected to http://127.0.0.1:57290/ Completed 302 Found in 13ms (ActiveRecord: 6.6ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:19:55 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '5d867bc8-7957-401e-b5fc-1529c854a0fa' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '5d867bc8-7957-401e-b5fc-1529c854a0fa' LIMIT 1 SQL (5.6ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "5d867bc8-7957-401e-b5fc-1529c854a0fa"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:19:55.479508"], ["updated_at", "2016-10-02 20:19:55.479508"]] SQL (0.5ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:19:55.479508"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (40.0ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (1.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$364j3uQ2GXU7bESDhMneLuPydGU7ef/h8q3vQyltRYDQ/Lf0/xTJ."], ["created_at", "2016-10-02 20:22:15.052227"], ["updated_at", "2016-10-02 20:22:15.052227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:22:15 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.2ms) Rendered devise/sessions/new.html.erb within layouts/application (27.2ms) Completed 200 OK in 242ms (Views: 230.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:22:15 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:22:15.326262"], ["current_sign_in_at", "2016-10-02 20:22:15.326262"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:22:15.327020"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:22:15 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:22:15 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (8.9ms) Completed 200 OK in 39ms (Views: 21.8ms | ActiveRecord: 1.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:22:15 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 20:22:15.427449"], ["updated_at", "2016-10-02 20:22:15.427449"]] SQL (0.6ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-02 20:22:15.427449"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 864ms (ActiveRecord: 3.7ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 16:22:16 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (6.8ms) Completed 200 OK in 15ms (Views: 11.3ms | ActiveRecord: 0.5ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$Q0KvhDfZxKpKvgbYEAtgROAPa2UfSrg9IzuORxGGFVDcdLxn/R9mm"], ["created_at", "2016-10-02 20:22:16.317639"], ["updated_at", "2016-10-02 20:22:16.317639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:22:16 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:22:16 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:22:16.331015"], ["current_sign_in_at", "2016-10-02 20:22:16.331015"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:22:16.331681"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:22:16 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:22:16 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.4ms) Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:22:16 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.7ms) Completed 200 OK in 12ms (Views: 6.4ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$rOEyyEjljUGyuHWVJwt4A.zF/Zb77SUHZ3w0zLQvjobUcokLNKx5i"], ["created_at", "2016-10-02 20:22:16.414152"], ["updated_at", "2016-10-02 20:22:16.414152"]]  (0.4ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:22:19 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.8ms) Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 16:22:19 -0400 Started GET "/assets/application-bf6cf518e8dc267eb1ffee83717bab5787da4a8f3972201fb4b2332e39cd089e.js" for 127.0.0.1 at 2016-10-02 16:22:19 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:22:20 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:22:20.177178"], ["current_sign_in_at", "2016-10-02 20:22:20.177178"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:22:20.178157"], ["id", 3]]  (6.0ms) COMMIT Redirected to http://127.0.0.1:57500/ Completed 302 Found in 16ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:22:20 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:22:20.332845"], ["updated_at", "2016-10-02 20:22:20.332845"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:22:20.332845"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:22:20 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (1.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.5ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (11.8ms) Completed 200 OK in 45ms (Views: 22.5ms | ActiveRecord: 5.0ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 16:22:20 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (6.2ms) Completed 200 OK in 27ms (Views: 10.4ms | ActiveRecord: 2.0ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:22:28 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "stripe_token"=>"tok_190GTgGYKt5n7d1Yt7lsn14g"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (1.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.5ms) Completed 200 OK in 410ms (Views: 3.6ms | ActiveRecord: 0.8ms)  (0.5ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.1ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (35.2ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$aPFB6rCAbtDaJ.Q1T.psqOXclZjtCFIORaXDvjuQkggb6dqTQtYs."], ["created_at", "2016-10-02 20:22:34.719721"], ["updated_at", "2016-10-02 20:22:34.719721"]]  (0.2ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:22:34 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.2ms) Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:22:35 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:22:35.111164"], ["current_sign_in_at", "2016-10-02 20:22:35.111164"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:22:35.111856"], ["id", 1]]  (5.9ms) COMMIT Redirected to http://127.0.0.1:57500/ Completed 302 Found in 14ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:22:35 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (6.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:22:35.239661"], ["updated_at", "2016-10-02 20:22:35.239661"]] SQL (5.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:22:35.239661"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:22:35 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (2.8ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.6ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.5ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (3.9ms) Completed 200 OK in 16ms (Views: 5.4ms | ActiveRecord: 4.5ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 16:22:35 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.2ms) Completed 200 OK in 6ms (Views: 3.1ms | ActiveRecord: 0.3ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:22:42 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"tok_190GTuGYKt5n7d1YD8siX7jR"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.3ms) Completed 200 OK in 625ms (Views: 2.9ms | ActiveRecord: 0.7ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (38.1ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$HXUV8A84puz4pnmSIAFJWeYkme8cvgkmx/aJbOEDMEtkNQ8dYs0e."], ["created_at", "2016-10-02 20:23:48.899132"], ["updated_at", "2016-10-02 20:23:48.899132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:23:48 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (27.2ms) Completed 200 OK in 258ms (Views: 242.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:23:49 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:23:49.190976"], ["current_sign_in_at", "2016-10-02 20:23:49.190976"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:23:49.191919"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 20ms (ActiveRecord: 1.0ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:23:49 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:23:49 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (9.6ms) Completed 200 OK in 38ms (Views: 20.5ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:23:49 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 20:23:49.293161"], ["updated_at", "2016-10-02 20:23:49.293161"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-02 20:23:49.293161"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 835ms (ActiveRecord: 3.3ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 16:23:50 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (6.4ms) Completed 200 OK in 14ms (Views: 10.4ms | ActiveRecord: 0.4ms)  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$6ebEtXT12Q3waVn2wyv22OeHH98goqYr57/6vfZwt06Z8zcuPeWLC"], ["created_at", "2016-10-02 20:23:50.157343"], ["updated_at", "2016-10-02 20:23:50.157343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:23:50 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:23:50 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:23:50.170965"], ["current_sign_in_at", "2016-10-02 20:23:50.170965"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:23:50.171719"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:23:50 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:23:50 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (2.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.2ms) Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:23:50 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.9ms) Completed 200 OK in 10ms (Views: 5.4ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$u5tQbJAtzdgjiPKn3ujZR.emNBwy9lpMTVn.WiLEtCmr7rkH3Vz36"], ["created_at", "2016-10-02 20:23:50.255110"], ["updated_at", "2016-10-02 20:23:50.255110"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:23:52 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.5ms) Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 16:23:52 -0400 Started GET "/assets/application-bf6cf518e8dc267eb1ffee83717bab5787da4a8f3972201fb4b2332e39cd089e.js" for 127.0.0.1 at 2016-10-02 16:23:52 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:23:53 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:23:53.386325"], ["current_sign_in_at", "2016-10-02 20:23:53.386325"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:23:53.387149"], ["id", 3]]  (6.2ms) COMMIT Redirected to http://127.0.0.1:58163/ Completed 302 Found in 17ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:23:53 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.1ms) User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:23:53.536678"], ["updated_at", "2016-10-02 20:23:53.536678"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:23:53.536678"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:23:53 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (12.3ms) Completed 200 OK in 46ms (Views: 23.4ms | ActiveRecord: 3.7ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 16:23:53 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (4.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (7.9ms) Completed 200 OK in 28ms (Views: 12.0ms | ActiveRecord: 2.0ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:24:01 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "stripe_token"=>"tok_190GVBGYKt5n7d1Ymf06ujWZ"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (1.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.7ms) Completed 200 OK in 425ms (Views: 4.1ms | ActiveRecord: 1.0ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.2ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.9ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (32.9ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$TK88V2xkeGnB8vUzJ9i7Y.GNx0AS6jqidODMHeDkbOGBUncoQ7Tsq"], ["created_at", "2016-10-02 20:24:07.988191"], ["updated_at", "2016-10-02 20:24:07.988191"]]  (0.4ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:24:07 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:24:08 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:24:08.376177"], ["current_sign_in_at", "2016-10-02 20:24:08.376177"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:24:08.376895"], ["id", 1]]  (5.5ms) COMMIT Redirected to http://127.0.0.1:58163/ Completed 302 Found in 13ms (ActiveRecord: 6.4ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:24:08 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (6.1ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:24:08.512536"], ["updated_at", "2016-10-02 20:24:08.512536"]] SQL (0.5ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:24:08.512536"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:24:08 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.7ms) Completed 200 OK in 8ms (Views: 4.2ms | ActiveRecord: 1.3ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 16:24:08 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.2ms) Completed 200 OK in 6ms (Views: 2.9ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:24:15 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"tok_190GVPGYKt5n7d1YlN0hD4PG"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.4ms) Completed 200 OK in 422ms (Views: 3.2ms | ActiveRecord: 0.6ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (32.8ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$ARaCGa0uGdDGuyTZbMqsIOMGOvsqGNxFBGxynSId.8BN2AEX/Xgym"], ["created_at", "2016-10-02 20:25:01.243140"], ["updated_at", "2016-10-02 20:25:01.243140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:25:01 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.0ms) Rendered devise/sessions/new.html.erb within layouts/application (23.5ms) Completed 200 OK in 237ms (Views: 222.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:25:01 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:25:01.511280"], ["current_sign_in_at", "2016-10-02 20:25:01.511280"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:25:01.512089"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:25:01 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:25:01 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (9.0ms) Completed 200 OK in 37ms (Views: 20.0ms | ActiveRecord: 1.6ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:25:01 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 20:25:01.608792"], ["updated_at", "2016-10-02 20:25:01.608792"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-02 20:25:01.608792"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 858ms (ActiveRecord: 3.5ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 16:25:02 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (7.0ms) Completed 200 OK in 15ms (Views: 11.1ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$/UI9PIn1RGO9xJhjpG6zYugPwYSSijJ/Ai798X6Gy.dVxGFiSkpBC"], ["created_at", "2016-10-02 20:25:02.494590"], ["updated_at", "2016-10-02 20:25:02.494590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:25:02 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:25:02 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:25:02.510250"], ["current_sign_in_at", "2016-10-02 20:25:02.510250"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:25:02.510857"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:25:02 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:25:02 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.2ms) Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:25:02 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.5ms) Completed 200 OK in 9ms (Views: 4.8ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$s0pYtoMMDyAtM2WSB6KSDe5pkXmoEC8rEPC4KaeSpwXCHRpLlhmMy"], ["created_at", "2016-10-02 20:25:02.589143"], ["updated_at", "2016-10-02 20:25:02.589143"]]  (0.5ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:25:05 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.6ms) Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 16:25:05 -0400 Started GET "/assets/application-bf6cf518e8dc267eb1ffee83717bab5787da4a8f3972201fb4b2332e39cd089e.js" for 127.0.0.1 at 2016-10-02 16:25:05 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:25:06 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:25:06.272849"], ["current_sign_in_at", "2016-10-02 20:25:06.272849"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:25:06.273910"], ["id", 3]]  (6.1ms) COMMIT Redirected to http://127.0.0.1:58748/ Completed 302 Found in 17ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:25:06 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.1ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:25:06.426861"], ["updated_at", "2016-10-02 20:25:06.426861"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:25:06.426861"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:25:06 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (9.9ms) Completed 200 OK in 44ms (Views: 20.8ms | ActiveRecord: 3.6ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 16:25:06 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (6.4ms) Completed 200 OK in 27ms (Views: 11.1ms | ActiveRecord: 2.2ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:25:08 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "stripe_token"=>"tok_190GWHGYKt5n7d1Y02fUJa1m"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (1.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.7ms) Completed 200 OK in 451ms (Views: 3.9ms | ActiveRecord: 1.0ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.0ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.7ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (32.9ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$zvQA1jSPDd0nI7kHFa4cpOuwYDlV5pF7aY3eCiDgdDQ5mdC8KAtXa"], ["created_at", "2016-10-02 20:25:15.823244"], ["updated_at", "2016-10-02 20:25:15.823244"]]  (0.2ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:25:15 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.2ms) Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:25:16 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:25:16.186626"], ["current_sign_in_at", "2016-10-02 20:25:16.186626"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:25:16.187311"], ["id", 1]]  (5.8ms) COMMIT Redirected to http://127.0.0.1:58748/ Completed 302 Found in 14ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:25:16 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (5.0ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:25:16.330436"], ["updated_at", "2016-10-02 20:25:16.330436"]] SQL (0.6ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:25:16.330436"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:25:16 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.8ms) Completed 200 OK in 8ms (Views: 4.2ms | ActiveRecord: 1.4ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 16:25:16 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (1.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.5ms) Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:25:18 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"tok_190GWQGYKt5n7d1Ysqp0YUGT"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.4ms) Completed 200 OK in 477ms (Views: 3.1ms | ActiveRecord: 0.8ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (37.8ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$l3eUiLhGd7CllAXAt8wqcOvndhThKMCzF6Zy6OZkbChNVCu37R.iu"], ["created_at", "2016-10-02 20:25:35.069048"], ["updated_at", "2016-10-02 20:25:35.069048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:25:35 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (23.9ms) Completed 200 OK in 236ms (Views: 223.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:25:35 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:25:35.334721"], ["current_sign_in_at", "2016-10-02 20:25:35.334721"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:25:35.335556"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:25:35 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 7ms (Views: 6.9ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:25:35 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (7.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (10.6ms) Completed 200 OK in 40ms (Views: 22.4ms | ActiveRecord: 1.5ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:25:35 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 20:25:35.433526"], ["updated_at", "2016-10-02 20:25:35.433526"]] SQL (0.7ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-02 20:25:35.433526"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 1080ms (ActiveRecord: 3.6ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 16:25:36 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (7.8ms) Completed 200 OK in 18ms (Views: 13.0ms | ActiveRecord: 0.5ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$kekxulyPhN/WFmHiXY.5qeC1kIjzaaMdW3E7UtH/.P2NNsAEqpXhu"], ["created_at", "2016-10-02 20:25:36.546152"], ["updated_at", "2016-10-02 20:25:36.546152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:25:36 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:25:36 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:25:36.560296"], ["current_sign_in_at", "2016-10-02 20:25:36.560296"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:25:36.560904"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:25:36 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:25:36 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.4ms) Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:25:36 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.4ms) Completed 200 OK in 9ms (Views: 4.7ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$aDPApz.kbrEIekmfJ.mazessiFWRHwuoCaQlb7zo.VNuxSiUx6kse"], ["created_at", "2016-10-02 20:25:36.640913"], ["updated_at", "2016-10-02 20:25:36.640913"]]  (0.4ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:25:39 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.8ms) Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 16:25:39 -0400 Started GET "/assets/application-bf6cf518e8dc267eb1ffee83717bab5787da4a8f3972201fb4b2332e39cd089e.js" for 127.0.0.1 at 2016-10-02 16:25:39 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:25:39 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:25:39.743590"], ["current_sign_in_at", "2016-10-02 20:25:39.743590"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:25:39.744558"], ["id", 3]]  (6.3ms) COMMIT Redirected to http://127.0.0.1:59304/ Completed 302 Found in 17ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:25:39 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:25:39.901228"], ["updated_at", "2016-10-02 20:25:39.901228"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:25:39.901228"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:25:39 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (2.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (11.0ms) Completed 200 OK in 44ms (Views: 21.7ms | ActiveRecord: 5.6ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 16:25:40 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (1.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (6.1ms) Completed 200 OK in 26ms (Views: 10.1ms | ActiveRecord: 3.5ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:25:42 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "stripe_token"=>"tok_190GWoGYKt5n7d1YyDyv6C1j"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (1.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.7ms) Completed 200 OK in 692ms (Views: 3.9ms | ActiveRecord: 1.0ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.1ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.7ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (31.6ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$4b8M.K1/knRnkj.qfOMVJeBC3PdW3g0/YZcXXnikbIi.fTdWhdN.W"], ["created_at", "2016-10-02 20:25:49.293600"], ["updated_at", "2016-10-02 20:25:49.293600"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:25:49 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.2ms) Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:25:49 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:25:49.665614"], ["current_sign_in_at", "2016-10-02 20:25:49.665614"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:25:49.666683"], ["id", 1]]  (5.7ms) COMMIT Redirected to http://127.0.0.1:59304/ Completed 302 Found in 14ms (ActiveRecord: 6.6ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:25:49 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (5.0ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:25:49.811614"], ["updated_at", "2016-10-02 20:25:49.811614"]] SQL (0.7ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:25:49.811614"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:25:49 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.6ms) Completed 200 OK in 8ms (Views: 4.0ms | ActiveRecord: 1.3ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 16:25:50 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.3ms) Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:25:52 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"tok_190GWyGYKt5n7d1YtMnqLYbj"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.4ms) Completed 200 OK in 390ms (Views: 3.3ms | ActiveRecord: 0.8ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (39.3ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$WoCj1Re.0sWCvNGfvlWesuuDBtXkUnjbaqQbahQXuVliShjiJVu4C"], ["created_at", "2016-10-02 20:28:48.296701"], ["updated_at", "2016-10-02 20:28:48.296701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:28:48 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (27.2ms) Completed 200 OK in 260ms (Views: 247.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:28:48 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:28:48.591569"], ["current_sign_in_at", "2016-10-02 20:28:48.591569"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:28:48.592413"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 20ms (ActiveRecord: 1.2ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:28:48 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:28:48 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (9.7ms) Completed 200 OK in 42ms (Views: 23.5ms | ActiveRecord: 1.6ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:28:48 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 20:28:48.698566"], ["updated_at", "2016-10-02 20:28:48.698566"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-02 20:28:48.698566"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 800ms (ActiveRecord: 3.1ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 16:28:49 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (8.3ms) Completed 200 OK in 18ms (Views: 13.7ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$.2RuLTxQcj1k4izYer8kteIXVnel8slkWHe0KZKfFmCdX5/XpFHYq"], ["created_at", "2016-10-02 20:28:49.531176"], ["updated_at", "2016-10-02 20:28:49.531176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:28:49 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:28:49 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:28:49.545155"], ["current_sign_in_at", "2016-10-02 20:28:49.545155"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:28:49.547139"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:28:49 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:28:49 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.5ms) Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:28:49 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.6ms) Completed 200 OK in 9ms (Views: 5.0ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$.RsOFHk/aVGyi.qzTgHpwuwkgTuPX2FWXpAzztKghFpVyCVffu5iO"], ["created_at", "2016-10-02 20:28:49.622327"], ["updated_at", "2016-10-02 20:28:49.622327"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:28:52 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.5ms) Rendered devise/sessions/new.html.erb within layouts/application (3.1ms) Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 16:28:52 -0400 Started GET "/assets/application-bf6cf518e8dc267eb1ffee83717bab5787da4a8f3972201fb4b2332e39cd089e.js" for 127.0.0.1 at 2016-10-02 16:28:52 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:28:53 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:28:53.394315"], ["current_sign_in_at", "2016-10-02 20:28:53.394315"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:28:53.395207"], ["id", 3]]  (6.2ms) COMMIT Redirected to http://127.0.0.1:60110/ Completed 302 Found in 17ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:28:53 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:28:53.550346"], ["updated_at", "2016-10-02 20:28:53.550346"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:28:53.550346"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:28:53 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (10.4ms) Completed 200 OK in 39ms (Views: 21.3ms | ActiveRecord: 3.8ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 16:28:53 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (6.3ms) Completed 200 OK in 26ms (Views: 10.3ms | ActiveRecord: 2.1ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:28:56 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "stripe_token"=>"tok_190GZwGYKt5n7d1YxANd9LvD"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (1.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.5ms) Completed 200 OK in 482ms (Views: 3.4ms | ActiveRecord: 0.8ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.1ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (2.6ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (33.1ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$lSjkK.edwRhJ/fpzShfVf.tzv5nxkysa3J78FbyQsM32BIYu/zAoC"], ["created_at", "2016-10-02 20:29:02.944850"], ["updated_at", "2016-10-02 20:29:02.944850"]]  (0.2ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:29:02 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.5ms) Rendered devise/sessions/new.html.erb within layouts/application (2.6ms) Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:29:03 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:29:03.297272"], ["current_sign_in_at", "2016-10-02 20:29:03.297272"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:29:03.298468"], ["id", 1]]  (5.9ms) COMMIT Redirected to http://127.0.0.1:60110/ Completed 302 Found in 14ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:29:03 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (5.0ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:29:03.437193"], ["updated_at", "2016-10-02 20:29:03.437193"]] SQL (0.6ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:29:03.437193"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:29:03 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.7ms) Completed 200 OK in 8ms (Views: 3.7ms | ActiveRecord: 1.3ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 16:29:03 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (1.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.5ms) Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.6ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:29:05 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"tok_190Ga5GYKt5n7d1YT2WbYVTD"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (1.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.6ms) Completed 200 OK in 454ms (Views: 3.6ms | ActiveRecord: 0.8ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (45.8ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (2.1ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$bFRf5n3nQizFR7FB7OrskuOjDsum9FbnNYX7G2eJs0kiyH6fk3V/2"], ["created_at", "2016-10-02 20:30:03.953986"], ["updated_at", "2016-10-02 20:30:03.953986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:30:03 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.3ms) Rendered devise/sessions/new.html.erb within layouts/application (26.0ms) Completed 200 OK in 242ms (Views: 227.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:30:04 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:30:04.229768"], ["current_sign_in_at", "2016-10-02 20:30:04.229768"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:30:04.230536"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 17ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:30:04 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.4ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:30:04 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (9.3ms) Completed 200 OK in 37ms (Views: 20.5ms | ActiveRecord: 1.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:30:04 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 20:30:04.328503"], ["updated_at", "2016-10-02 20:30:04.328503"]] SQL (0.7ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-02 20:30:04.328503"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 29ms (ActiveRecord: 3.1ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 16:30:04 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (6.9ms) Completed 200 OK in 14ms (Views: 10.5ms | ActiveRecord: 0.4ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$vj.PQtelC1TZ8zDnhHVyxOPlXksYIk0hSg3VYiGNEUKueqnfd/0Ku"], ["created_at", "2016-10-02 20:30:04.383052"], ["updated_at", "2016-10-02 20:30:04.383052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:30:04 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.7ms) Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:30:04 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:30:04.395041"], ["current_sign_in_at", "2016-10-02 20:30:04.395041"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:30:04.395918"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:30:04 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:30:04 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.0ms) Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:30:04 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.7ms) Completed 200 OK in 9ms (Views: 5.0ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$DtTbpHJoDJ3hlcaPo.G3p.CbKG9dlc5qndkpIALjfEnRLx1SRbaO."], ["created_at", "2016-10-02 20:30:04.472459"], ["updated_at", "2016-10-02 20:30:04.472459"]]  (0.4ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:30:06 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (3.1ms) Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 16:30:06 -0400 Started GET "/assets/application-bf6cf518e8dc267eb1ffee83717bab5787da4a8f3972201fb4b2332e39cd089e.js" for 127.0.0.1 at 2016-10-02 16:30:06 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:30:07 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.2ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:30:07.576733"], ["current_sign_in_at", "2016-10-02 20:30:07.576733"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:30:07.577775"], ["id", 3]]  (5.6ms) COMMIT Redirected to http://127.0.0.1:60705/ Completed 302 Found in 16ms (ActiveRecord: 7.0ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:30:07 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.1ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:30:07.732841"], ["updated_at", "2016-10-02 20:30:07.732841"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:30:07.732841"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:30:07 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (2.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (11.0ms) Completed 200 OK in 45ms (Views: 21.6ms | ActiveRecord: 6.2ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 16:30:07 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (1.6ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (6.2ms) Completed 200 OK in 27ms (Views: 10.1ms | ActiveRecord: 3.6ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:30:10 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "stripe_token"=>"tok_190Gb8GYKt5n7d1YQbxpDYw3"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.3ms) Completed 200 OK in 10ms (Views: 2.9ms | ActiveRecord: 0.9ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.0ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.9ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (54.0ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$rpRUvw7Kam88SsNN1L7oz.m6QZfmfk.7ybGOUXi44t23qMGUZ1g/y"], ["created_at", "2016-10-02 20:30:17.168446"], ["updated_at", "2016-10-02 20:30:17.168446"]]  (0.2ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:30:17 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.2ms) Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:30:17 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:30:17.538314"], ["current_sign_in_at", "2016-10-02 20:30:17.538314"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:30:17.539010"], ["id", 1]]  (5.9ms) COMMIT Redirected to http://127.0.0.1:60705/ Completed 302 Found in 14ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:30:17 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (6.1ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:30:17.680118"], ["updated_at", "2016-10-02 20:30:17.680118"]] SQL (0.6ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:30:17.680118"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:30:17 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.6ms) Completed 200 OK in 8ms (Views: 3.8ms | ActiveRecord: 1.3ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 16:30:17 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.3ms) Completed 200 OK in 8ms (Views: 3.3ms | ActiveRecord: 0.6ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:30:20 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"tok_190GbIGYKt5n7d1YBUwPV0P1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 8ms (Views: 3.5ms | ActiveRecord: 0.8ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (35.0ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$fNZbuJ6.U2tJG5fLE4xhcO8aTy.rKl8NIb6AB6ycr07eLqNNA1jFC"], ["created_at", "2016-10-02 20:32:59.627568"], ["updated_at", "2016-10-02 20:32:59.627568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:32:59 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.9ms) Rendered devise/sessions/new.html.erb within layouts/application (23.7ms) Completed 200 OK in 246ms (Views: 234.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:32:59 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:32:59.902865"], ["current_sign_in_at", "2016-10-02 20:32:59.902865"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:32:59.903637"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 19ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:32:59 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:32:59 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (10.5ms) Completed 200 OK in 40ms (Views: 23.6ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:32:59 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 20:33:00.001652"], ["updated_at", "2016-10-02 20:33:00.001652"]] SQL (0.6ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-02 20:33:00.001652"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 442ms (ActiveRecord: 3.5ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 16:33:00 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (7.6ms) Completed 200 OK in 18ms (Views: 12.6ms | ActiveRecord: 0.6ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$X0ykqF.cWAReejbFCsRV1eHOfnpO7j66Tr9SPnPggeGHsYR.Fo2X2"], ["created_at", "2016-10-02 20:33:00.476994"], ["updated_at", "2016-10-02 20:33:00.476994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:33:00 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:33:00 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:33:00.491307"], ["current_sign_in_at", "2016-10-02 20:33:00.491307"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:33:00.491948"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:33:00 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:33:00 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.3ms) Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:33:00 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.2ms) Completed 200 OK in 11ms (Views: 5.7ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$rs.d5emoZSoVvJ.S6wEIGeMJhca64jfKTU/MRyAhxIYTyzzqHnpke"], ["created_at", "2016-10-02 20:33:00.562731"], ["updated_at", "2016-10-02 20:33:00.562731"]]  (0.4ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:33:03 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (3.0ms) Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 16:33:03 -0400 Started GET "/assets/application-bf6cf518e8dc267eb1ffee83717bab5787da4a8f3972201fb4b2332e39cd089e.js" for 127.0.0.1 at 2016-10-02 16:33:03 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:33:03 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:33:03.940092"], ["current_sign_in_at", "2016-10-02 20:33:03.940092"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:33:03.941122"], ["id", 3]]  (5.4ms) COMMIT Redirected to http://127.0.0.1:61450/ Completed 302 Found in 16ms (ActiveRecord: 6.5ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:33:03 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:33:04.094180"], ["updated_at", "2016-10-02 20:33:04.094180"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:33:04.094180"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:33:04 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (5.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (10.5ms) Completed 200 OK in 45ms (Views: 22.0ms | ActiveRecord: 8.8ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 16:33:04 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (6.0ms) Completed 200 OK in 24ms (Views: 9.8ms | ActiveRecord: 1.9ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:33:06 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "stripe_token"=>"tok_190GdyGYKt5n7d1YFha1eFvg"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.2ms) Completed 200 OK in 11ms (Views: 3.0ms | ActiveRecord: 1.0ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (2.7ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (32.7ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$WEnz5tJzlm41KdIDcCbLmutWyXwjxBhn3c9iR6TcetuTFO8IyIXHK"], ["created_at", "2016-10-02 20:33:13.511775"], ["updated_at", "2016-10-02 20:33:13.511775"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:33:13 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.3ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:33:13 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:33:13.888917"], ["current_sign_in_at", "2016-10-02 20:33:13.888917"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:33:13.889753"], ["id", 1]]  (6.1ms) COMMIT Redirected to http://127.0.0.1:61450/ Completed 302 Found in 14ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:33:13 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (5.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:33:14.022319"], ["updated_at", "2016-10-02 20:33:14.022319"]] SQL (0.6ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:33:14.022319"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:33:14 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.7ms) Completed 200 OK in 8ms (Views: 3.8ms | ActiveRecord: 1.4ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 16:33:14 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (1.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.6ms) Completed 200 OK in 8ms (Views: 5.0ms | ActiveRecord: 0.5ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:33:16 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"tok_190Ge8GYKt5n7d1Y9qS4SjhY"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 7ms (Views: 2.4ms | ActiveRecord: 0.8ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (47.0ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$B5uPMT91bJVAkZNUk.X7Ge5fNoEv4sCuznnxAQlAV99ggfo5GLff."], ["created_at", "2016-10-02 20:40:55.471809"], ["updated_at", "2016-10-02 20:40:55.471809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:40:55 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.0ms) Rendered devise/sessions/new.html.erb within layouts/application (24.0ms) Completed 200 OK in 364ms (Views: 350.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:40:55 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:40:55.866030"], ["current_sign_in_at", "2016-10-02 20:40:55.866030"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:40:55.866820"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 17ms (ActiveRecord: 1.0ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:40:55 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:40:55 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (10.6ms) Completed 200 OK in 41ms (Views: 24.9ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:40:55 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (1.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 20:40:55.968302"], ["updated_at", "2016-10-02 20:40:55.968302"]] SQL (0.6ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-02 20:40:55.968302"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 419ms (ActiveRecord: 4.0ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 16:40:56 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (7.8ms) Completed 200 OK in 19ms (Views: 13.7ms | ActiveRecord: 0.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$FZhsdhtopaQNEmF89BTkRuJQw6yQhKfDjIuQFLho3Gx3nIKdt5TIi"], ["created_at", "2016-10-02 20:40:56.419059"], ["updated_at", "2016-10-02 20:40:56.419059"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:40:56 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.5ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:40:56 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:40:56.435375"], ["current_sign_in_at", "2016-10-02 20:40:56.435375"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:40:56.436060"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:40:56 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:40:56 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.4ms) Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.4ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:40:56 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.6ms) Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$fd/vfpKiZm5xUTIMKQ4yGu9o5bZnjG5jc.Hb1aowC.o6c20m5uff6"], ["created_at", "2016-10-02 20:40:56.518219"], ["updated_at", "2016-10-02 20:40:56.518219"]]  (0.5ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:40:59 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.6ms) Rendered devise/sessions/new.html.erb within layouts/application (3.4ms) Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 16:40:59 -0400 Started GET "/assets/application-82c3eb748a59734f838dcbb1ad72b00d4dc551a1ae142c099207bb40b1bdb2b8.js" for 127.0.0.1 at 2016-10-02 16:40:59 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:41:00 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:41:00.238965"], ["current_sign_in_at", "2016-10-02 20:41:00.238965"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:41:00.240006"], ["id", 3]]  (5.6ms) COMMIT Redirected to http://127.0.0.1:62511/ Completed 302 Found in 17ms (ActiveRecord: 6.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:41:00 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:41:00.405040"], ["updated_at", "2016-10-02 20:41:00.405040"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:41:00.405040"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:41:00 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (10.6ms) Completed 200 OK in 45ms (Views: 24.2ms | ActiveRecord: 4.2ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 16:41:00 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (10.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (14.0ms) Completed 200 OK in 38ms (Views: 19.0ms | ActiveRecord: 2.0ms)  (0.5ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (2.0ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.9ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (35.6ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$3NFQsBdtfEYNCSOkAvj/m.i3TgiClPYEBRc5VjtTPvdwo23rVJBR2"], ["created_at", "2016-10-02 20:41:04.766596"], ["updated_at", "2016-10-02 20:41:04.766596"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:41:04 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:41:05 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:41:05.122137"], ["current_sign_in_at", "2016-10-02 20:41:05.122137"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:41:05.122875"], ["id", 1]]  (6.2ms) COMMIT Redirected to http://127.0.0.1:62511/ Completed 302 Found in 14ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:41:05 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)  (0.2ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (6.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:41:05.246477"], ["updated_at", "2016-10-02 20:41:05.246477"]] SQL (3.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:41:05.246477"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:41:05 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.2ms) Completed 200 OK in 7ms (Views: 3.0ms | ActiveRecord: 1.4ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 16:41:05 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.4ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (63.1ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$hbnyjItSGFSAbJPo9s6fiex2wfl3ZVBP2kMUL.E6yVfMM5KEPTp66"], ["created_at", "2016-10-02 20:41:55.320116"], ["updated_at", "2016-10-02 20:41:55.320116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:41:55 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.0ms) Rendered devise/sessions/new.html.erb within layouts/application (23.7ms) Completed 200 OK in 233ms (Views: 220.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:41:55 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:41:55.582678"], ["current_sign_in_at", "2016-10-02 20:41:55.582678"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:41:55.583469"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 17ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:41:55 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 7ms (Views: 6.8ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:41:55 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (7.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (11.1ms) Completed 200 OK in 40ms (Views: 22.7ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:41:55 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 20:41:55.680816"], ["updated_at", "2016-10-02 20:41:55.680816"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-02 20:41:55.680816"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 840ms (ActiveRecord: 3.1ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 16:41:56 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (6.8ms) Completed 200 OK in 15ms (Views: 10.7ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$do17MrvMGxFs/oCNWIgm7OTD.c4WISct.o4IIwlHBuTb9d8c7S0Vu"], ["created_at", "2016-10-02 20:41:56.552258"], ["updated_at", "2016-10-02 20:41:56.552258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:41:56 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:41:56 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:41:56.566464"], ["current_sign_in_at", "2016-10-02 20:41:56.566464"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:41:56.567144"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:41:56 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:41:56 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.5ms) Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:41:56 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.7ms) Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$pJDk78mPPFJESz6kcuVJ3ubgbNARIUBpzXdHmHbv7ZP8V9MskvwR6"], ["created_at", "2016-10-02 20:41:56.639661"], ["updated_at", "2016-10-02 20:41:56.639661"]]  (0.4ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:41:59 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.6ms) Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 16:41:59 -0400 Started GET "/assets/application-82c3eb748a59734f838dcbb1ad72b00d4dc551a1ae142c099207bb40b1bdb2b8.js" for 127.0.0.1 at 2016-10-02 16:41:59 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:41:59 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:41:59.842485"], ["current_sign_in_at", "2016-10-02 20:41:59.842485"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:41:59.843422"], ["id", 3]]  (5.8ms) COMMIT Redirected to http://127.0.0.1:63087/ Completed 302 Found in 17ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:41:59 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.1ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:41:59.998493"], ["updated_at", "2016-10-02 20:41:59.998493"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:41:59.998493"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (5.5ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:42:00 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (10.4ms) Completed 200 OK in 40ms (Views: 22.3ms | ActiveRecord: 3.6ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 16:42:00 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (2.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (6.0ms) Completed 200 OK in 26ms (Views: 10.0ms | ActiveRecord: 1.9ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:42:02 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "stripe_token"=>"test_tok_1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 SQL (0.4ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-02 20:42:02.691243"], ["id", 3]]  (6.1ms) COMMIT  (0.1ms) BEGIN Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (5.0ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 2], ["customer_id", 3], ["stripe_id", "test_su_4"], ["created_at", "2016-10-02 20:42:02.705816"], ["updated_at", "2016-10-02 20:42:02.705816"]] SQL (0.4ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-02 20:42:02.705816"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.4ms) COMMIT Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Completed 500 Internal Server Error in 75ms (ActiveRecord: 16.5ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.1ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (38.6ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$7b16IGKh1cRV2XnqppRiI.dS4BxcaJr5uwm1/TDHYwVGkqoqdBARa"], ["created_at", "2016-10-02 20:42:07.534068"], ["updated_at", "2016-10-02 20:42:07.534068"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:42:07 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.3ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:42:08 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:42:08.016477"], ["current_sign_in_at", "2016-10-02 20:42:08.016477"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:42:08.017144"], ["id", 1]]  (5.6ms) COMMIT Redirected to http://127.0.0.1:63087/ Completed 302 Found in 14ms (ActiveRecord: 6.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:42:08 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (4.6ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:42:08.155590"], ["updated_at", "2016-10-02 20:42:08.155590"]] SQL (0.6ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:42:08.155590"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:42:08 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.5ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.5ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (3.0ms) Completed 200 OK in 9ms (Views: 4.4ms | ActiveRecord: 1.7ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 16:42:08 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.2ms) Completed 200 OK in 6ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:42:10 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"test_tok_1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (1.7ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 1) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 1) LIMIT 1 SQL (0.3ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-02 20:42:10.478558"], ["id", 1]]  (5.9ms) COMMIT  (0.1ms) BEGIN Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 1], ["customer_id", 1], ["stripe_id", "test_su_4"], ["created_at", "2016-10-02 20:42:10.494793"], ["updated_at", "2016-10-02 20:42:10.494793"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-02 20:42:10.494793"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.3ms) COMMIT Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Completed 500 Internal Server Error in 40ms (ActiveRecord: 11.3ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (39.5ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$Vctn9ms3wZmMAjty2nESr.LnpbQs7i.FmigxW0ZW4JyVrxqzsMGvi"], ["created_at", "2016-10-02 20:43:11.841159"], ["updated_at", "2016-10-02 20:43:11.841159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:43:11 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.3ms) Rendered devise/sessions/new.html.erb within layouts/application (29.5ms) Completed 200 OK in 249ms (Views: 237.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:43:12 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:43:12.121567"], ["current_sign_in_at", "2016-10-02 20:43:12.121567"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:43:12.122300"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 17ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:43:12 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 7ms (Views: 6.9ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:43:12 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (9.2ms) Completed 200 OK in 37ms (Views: 20.5ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:43:12 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 20:43:12.220171"], ["updated_at", "2016-10-02 20:43:12.220171"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-02 20:43:12.220171"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 875ms (ActiveRecord: 3.1ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 16:43:13 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (6.4ms) Completed 200 OK in 14ms (Views: 10.4ms | ActiveRecord: 0.4ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$sRtCmGXUmXsYA8Y/.Ocrbe2ItsHjHt9AYV1AVkQ/6U62JAPvHaqzS"], ["created_at", "2016-10-02 20:43:13.125408"], ["updated_at", "2016-10-02 20:43:13.125408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:43:13 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:43:13 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:43:13.138968"], ["current_sign_in_at", "2016-10-02 20:43:13.138968"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:43:13.139877"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:43:13 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.6ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:43:13 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (2.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.3ms) Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:43:13 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.4ms) Completed 200 OK in 9ms (Views: 4.7ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$ihDC1va0DvUJlIYAHRhvo.WMuN0NxJmgwYrl1OeVAzamXsaS3yY02"], ["created_at", "2016-10-02 20:43:13.218454"], ["updated_at", "2016-10-02 20:43:13.218454"]]  (0.4ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:43:16 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.8ms) Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 16:43:16 -0400 Started GET "/assets/application-82c3eb748a59734f838dcbb1ad72b00d4dc551a1ae142c099207bb40b1bdb2b8.js" for 127.0.0.1 at 2016-10-02 16:43:16 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:43:16 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:43:16.702554"], ["current_sign_in_at", "2016-10-02 20:43:16.702554"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:43:16.703350"], ["id", 3]]  (6.1ms) COMMIT Redirected to http://127.0.0.1:63603/ Completed 302 Found in 17ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:43:16 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:43:16.858963"], ["updated_at", "2016-10-02 20:43:16.858963"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:43:16.858963"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:43:16 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (2.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.5ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (12.5ms) Completed 200 OK in 46ms (Views: 23.4ms | ActiveRecord: 6.0ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 16:43:17 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (1.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (2.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (6.0ms) Completed 200 OK in 26ms (Views: 9.9ms | ActiveRecord: 3.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:43:19 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "stripe_token"=>"test_tok_1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 SQL (0.2ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-02 20:43:19.522694"], ["id", 3]]  (1.6ms) COMMIT  (0.1ms) BEGIN Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 2], ["customer_id", 3], ["stripe_id", "test_su_4"], ["created_at", "2016-10-02 20:43:19.531692"], ["updated_at", "2016-10-02 20:43:19.531692"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-02 20:43:19.531692"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.3ms) COMMIT Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Completed 500 Internal Server Error in 57ms (ActiveRecord: 6.5ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.0ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (15.5ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$y2FNQ.9zz3YLKGm3qlNDe.t2sHNmB0U4utZzOLrBr.H3RabajkU5a"], ["created_at", "2016-10-02 20:43:24.361106"], ["updated_at", "2016-10-02 20:43:24.361106"]]  (0.2ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:43:24 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.2ms) Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:43:24 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:43:24.851295"], ["current_sign_in_at", "2016-10-02 20:43:24.851295"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:43:24.852212"], ["id", 1]]  (6.2ms) COMMIT Redirected to http://127.0.0.1:63603/ Completed 302 Found in 14ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:43:24 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:43:25.000364"], ["updated_at", "2016-10-02 20:43:25.000364"]] SQL (0.4ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:43:25.000364"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:43:25 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.6ms) Completed 200 OK in 7ms (Views: 3.5ms | ActiveRecord: 1.3ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 16:43:25 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (2.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (2.7ms) Completed 200 OK in 7ms (Views: 4.2ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:43:27 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"test_tok_1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 1) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 1) LIMIT 1 SQL (0.2ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-02 20:43:27.296638"], ["id", 1]]  (6.2ms) COMMIT  (0.2ms) BEGIN Tang::Subscription Exists (0.4ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (11.9ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 1], ["customer_id", 1], ["stripe_id", "test_su_4"], ["created_at", "2016-10-02 20:43:27.310877"], ["updated_at", "2016-10-02 20:43:27.310877"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-02 20:43:27.310877"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.3ms) COMMIT Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Completed 500 Internal Server Error in 42ms (ActiveRecord: 21.5ms)  (1.9ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (44.3ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$GCjM3qfH/6j3.W9/fo2V2u3dxL76BbBsI28tpTTR./Hf44nP4y4se"], ["created_at", "2016-10-02 20:43:48.723010"], ["updated_at", "2016-10-02 20:43:48.723010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:43:48 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (27.8ms) Completed 200 OK in 263ms (Views: 250.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:43:49 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:43:49.021414"], ["current_sign_in_at", "2016-10-02 20:43:49.021414"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:43:49.022158"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 19ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:43:49 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:43:49 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (10.0ms) Completed 200 OK in 43ms (Views: 24.3ms | ActiveRecord: 1.9ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:43:49 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 20:43:49.135031"], ["updated_at", "2016-10-02 20:43:49.135031"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-02 20:43:49.135031"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 423ms (ActiveRecord: 3.0ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 16:43:49 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (6.6ms) Completed 200 OK in 15ms (Views: 10.7ms | ActiveRecord: 0.4ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$n/HV5vJcHA9I93EJQIm4Au1.YaZMpB7GvUNzuc78cPmCbugZBWaii"], ["created_at", "2016-10-02 20:43:49.587682"], ["updated_at", "2016-10-02 20:43:49.587682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:43:49 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.6ms) Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:43:49 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:43:49.603356"], ["current_sign_in_at", "2016-10-02 20:43:49.603356"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:43:49.603973"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:43:49 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:43:49 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.4ms) Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:43:49 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.6ms) Completed 200 OK in 11ms (Views: 4.9ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$Bb.lkVYjy6Uu2KARUIcRBOb4N5BoZ0UTNxTLDHMZDU1ncTlUNlJom"], ["created_at", "2016-10-02 20:43:49.688567"], ["updated_at", "2016-10-02 20:43:49.688567"]]  (1.9ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:43:52 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.9ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 16:43:52 -0400 Started GET "/assets/application-82c3eb748a59734f838dcbb1ad72b00d4dc551a1ae142c099207bb40b1bdb2b8.js" for 127.0.0.1 at 2016-10-02 16:43:52 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:43:53 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:43:53.072640"], ["current_sign_in_at", "2016-10-02 20:43:53.072640"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:43:53.073628"], ["id", 3]]  (5.8ms) COMMIT Redirected to http://127.0.0.1:64132/ Completed 302 Found in 17ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:43:53 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:43:53.241484"], ["updated_at", "2016-10-02 20:43:53.241484"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:43:53.241484"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:43:53 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (11.7ms) Completed 200 OK in 46ms (Views: 23.4ms | ActiveRecord: 6.1ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 16:43:53 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (6.1ms) Completed 200 OK in 27ms (Views: 10.4ms | ActiveRecord: 2.2ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:43:56 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "stripe_token"=>"test_tok_1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 SQL (0.2ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-02 20:43:56.297288"], ["id", 3]]  (0.3ms) COMMIT  (0.1ms) BEGIN Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 2], ["customer_id", 3], ["stripe_id", "test_su_4"], ["created_at", "2016-10-02 20:43:56.304764"], ["updated_at", "2016-10-02 20:43:56.304764"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-02 20:43:56.304764"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.4ms) COMMIT Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Completed 500 Internal Server Error in 55ms (ActiveRecord: 5.1ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.0ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (34.1ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$r8ahpe8gWfntF.HYAK5gtuaMFjpDPwzh4Z2NCrLo6EOj.6phmgTCC"], ["created_at", "2016-10-02 20:44:00.839671"], ["updated_at", "2016-10-02 20:44:00.839671"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:44:00 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.3ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:44:01 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:44:01.258715"], ["current_sign_in_at", "2016-10-02 20:44:01.258715"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:44:01.259607"], ["id", 1]]  (6.0ms) COMMIT Redirected to http://127.0.0.1:64132/ Completed 302 Found in 14ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:44:01 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (5.0ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:44:01.395825"], ["updated_at", "2016-10-02 20:44:01.395825"]] SQL (0.5ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:44:01.395825"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:44:01 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.3ms) Completed 200 OK in 7ms (Views: 3.3ms | ActiveRecord: 1.4ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 16:44:01 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (1.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.4ms) Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:44:03 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"test_tok_1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 1) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 1) LIMIT 1 SQL (0.2ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-02 20:44:03.721608"], ["id", 1]]  (5.7ms) COMMIT  (0.1ms) BEGIN Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (11.4ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 1], ["customer_id", 1], ["stripe_id", "test_su_4"], ["created_at", "2016-10-02 20:44:03.734300"], ["updated_at", "2016-10-02 20:44:03.734300"]] SQL (0.4ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-02 20:44:03.734300"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.3ms) COMMIT Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Completed 500 Internal Server Error in 46ms (ActiveRecord: 19.8ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (42.7ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$/qYo77C7z85FxAt488UNLOsNM5l2UalevELW2EIJqsHuKGDZJAday"], ["created_at", "2016-10-02 20:44:16.743606"], ["updated_at", "2016-10-02 20:44:16.743606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:44:16 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.3ms) Rendered devise/sessions/new.html.erb within layouts/application (25.4ms) Completed 200 OK in 238ms (Views: 225.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:44:17 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:44:17.013649"], ["current_sign_in_at", "2016-10-02 20:44:17.013649"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:44:17.014514"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 19ms (ActiveRecord: 1.0ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:44:17 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.4ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:44:17 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (9.2ms) Completed 200 OK in 37ms (Views: 20.1ms | ActiveRecord: 1.4ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:44:17 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["created_at", "2016-10-02 20:44:17.111892"], ["updated_at", "2016-10-02 20:44:17.111892"]] SQL (0.7ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-02 20:44:17.111892"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 410ms (ActiveRecord: 3.3ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 16:44:17 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (6.5ms) Completed 200 OK in 14ms (Views: 10.3ms | ActiveRecord: 0.4ms)  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$jwFEyrkRkGAu7Xem2x.mbuv/d73myVRd9C7ZLC7NbxVsB.MARB8hK"], ["created_at", "2016-10-02 20:44:17.550075"], ["updated_at", "2016-10-02 20:44:17.550075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:44:17 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:44:17 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:44:17.563753"], ["current_sign_in_at", "2016-10-02 20:44:17.563753"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:44:17.564444"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:44:17 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:44:17 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (2.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.3ms) Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:44:17 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.4ms) Completed 200 OK in 9ms (Views: 4.6ms | ActiveRecord: 0.6ms)  (0.3ms) ROLLBACK User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$BYjus/ICZVkdFoXiZHQocePs0lXI6xWR2uBurI7nWbW.PBsmuGVyS"], ["created_at", "2016-10-02 20:44:17.643006"], ["updated_at", "2016-10-02 20:44:17.643006"]]  (0.4ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:44:20 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.7ms) Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 16:44:20 -0400 Started GET "/assets/application-82c3eb748a59734f838dcbb1ad72b00d4dc551a1ae142c099207bb40b1bdb2b8.js" for 127.0.0.1 at 2016-10-02 16:44:20 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:44:20 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:44:20.791461"], ["current_sign_in_at", "2016-10-02 20:44:20.791461"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:44:20.792439"], ["id", 3]]  (6.2ms) COMMIT Redirected to http://127.0.0.1:64616/ Completed 302 Found in 17ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:44:20 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:44:20.952161"], ["updated_at", "2016-10-02 20:44:20.952161"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:44:20.952161"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.5ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:44:20 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (10.4ms) Completed 200 OK in 46ms (Views: 22.0ms | ActiveRecord: 3.6ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 16:44:21 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (4.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (7.8ms) Completed 200 OK in 29ms (Views: 12.3ms | ActiveRecord: 2.3ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:44:24 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "stripe_token"=>"test_tok_1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 SQL (0.2ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-02 20:44:24.038145"], ["id", 3]]  (0.3ms) COMMIT  (0.1ms) BEGIN Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 2], ["customer_id", 3], ["stripe_id", "test_su_4"], ["created_at", "2016-10-02 20:44:24.045468"], ["updated_at", "2016-10-02 20:44:24.045468"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-02 20:44:24.045468"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.4ms) COMMIT Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]]  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 3], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 4], ["exp_year", 2016], ["fingerprint", "wXWJT135mEK107G8"], ["funding", "credit"], ["last4", "4242"], ["name", "Johnny App"], ["created_at", "2016-10-02 20:44:24.079786"], ["updated_at", "2016-10-02 20:44:24.079786"]]  (0.3ms) COMMIT Redirected to http://127.0.0.1:64616/tang/account/subscription Completed 302 Found in 58ms (ActiveRecord: 6.3ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:44:24 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > NULL) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (6.1ms) Completed 500 Internal Server Error in 13ms (ActiveRecord: 1.8ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.1ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (17.4ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$i33Mpmdk9PKF9VnqDNUQM.muE7MT7lWqREz0CQzLRvskvBsoHLoQi"], ["created_at", "2016-10-02 20:44:28.521374"], ["updated_at", "2016-10-02 20:44:28.521374"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:44:28 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:44:28 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:44:28.928216"], ["current_sign_in_at", "2016-10-02 20:44:28.928216"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:44:28.928937"], ["id", 1]]  (5.9ms) COMMIT Redirected to http://127.0.0.1:64616/ Completed 302 Found in 15ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:44:28 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (1.5ms) INSERT INTO "tang_plans" ("currency", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["currency", "usd"], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:44:29.075478"], ["updated_at", "2016-10-02 20:44:29.075478"]] SQL (0.6ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:44:29.075478"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:44:29 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.8ms) Completed 200 OK in 8ms (Views: 4.2ms | ActiveRecord: 1.3ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 16:44:29 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.1ms) Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:44:31 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"test_tok_1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 1) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 1) LIMIT 1 SQL (0.2ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-02 20:44:31.440321"], ["id", 1]]  (6.0ms) COMMIT  (0.1ms) BEGIN Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (11.0ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 1], ["customer_id", 1], ["stripe_id", "test_su_4"], ["created_at", "2016-10-02 20:44:31.452936"], ["updated_at", "2016-10-02 20:44:31.452936"]] SQL (0.4ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-02 20:44:31.452936"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.4ms) COMMIT Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]]  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 1], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 4], ["exp_year", 2016], ["fingerprint", "wXWJT135mEK107G8"], ["funding", "credit"], ["last4", "4242"], ["name", "Johnny App"], ["created_at", "2016-10-02 20:44:31.470005"], ["updated_at", "2016-10-02 20:44:31.470005"]]  (0.3ms) COMMIT Redirected to http://127.0.0.1:64616/tang/account/subscription Completed 302 Found in 39ms (ActiveRecord: 20.6ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:44:31 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > NULL) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (5.8ms) Completed 500 Internal Server Error in 10ms (ActiveRecord: 1.2ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (34.8ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$jmVHoY5S2T9tNDCrVenzSej2A0f5TIj6YQLl7g1acNyiQpQKPw4lu"], ["created_at", "2016-10-02 20:46:26.053866"], ["updated_at", "2016-10-02 20:46:26.053866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:46:26 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.2ms) Rendered devise/sessions/new.html.erb within layouts/application (30.2ms) Completed 200 OK in 253ms (Views: 241.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:46:26 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:46:26.337755"], ["current_sign_in_at", "2016-10-02 20:46:26.337755"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:46:26.338528"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 21ms (ActiveRecord: 1.0ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:46:26 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.4ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:46:26 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (9.4ms) Completed 200 OK in 41ms (Views: 20.8ms | ActiveRecord: 1.6ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:46:26 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-02 20:46:26.445358"], ["updated_at", "2016-10-02 20:46:26.445358"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-02 20:46:26.445358"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 845ms (ActiveRecord: 3.2ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 16:46:27 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (6.8ms) Completed 200 OK in 15ms (Views: 11.1ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$UC/iBvzMHZv4OdhCbH34fOrpBOcwyyClPoy/METSAUZ6CJ4G5lTQO"], ["created_at", "2016-10-02 20:46:27.318468"], ["updated_at", "2016-10-02 20:46:27.318468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:46:27 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:46:27 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:46:27.332141"], ["current_sign_in_at", "2016-10-02 20:46:27.332141"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:46:27.332755"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:46:27 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:46:27 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.4ms) Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:46:27 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.7ms) Completed 200 OK in 10ms (Views: 5.2ms | ActiveRecord: 0.7ms)  (0.3ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$LjB65JQjnJGHS8UN0RmlBO4W1KL0XL60Ww.38Cr0xIA.vIG0ZaL56"], ["created_at", "2016-10-02 20:46:27.414241"], ["updated_at", "2016-10-02 20:46:27.414241"]]  (2.4ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:46:30 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.9ms) Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 16:46:30 -0400 Started GET "/assets/application-82c3eb748a59734f838dcbb1ad72b00d4dc551a1ae142c099207bb40b1bdb2b8.js" for 127.0.0.1 at 2016-10-02 16:46:30 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:46:30 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:46:30.953017"], ["current_sign_in_at", "2016-10-02 20:46:30.953017"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:46:30.954242"], ["id", 3]]  (6.0ms) COMMIT Redirected to http://127.0.0.1:65240/ Completed 302 Found in 18ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:46:30 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:46:31.111541"], ["updated_at", "2016-10-02 20:46:31.111541"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:46:31.111541"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:46:31 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (9.6ms) Completed 200 OK in 46ms (Views: 22.2ms | ActiveRecord: 3.8ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 16:46:31 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (7.4ms) Completed 200 OK in 29ms (Views: 12.3ms | ActiveRecord: 2.0ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:46:33 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "stripe_token"=>"test_tok_1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 SQL (0.3ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-02 20:46:33.746135"], ["id", 3]]  (0.2ms) COMMIT  (0.1ms) BEGIN Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 2], ["customer_id", 3], ["stripe_id", "test_su_4"], ["created_at", "2016-10-02 20:46:33.754551"], ["updated_at", "2016-10-02 20:46:33.754551"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-02 20:46:33.754551"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.4ms) COMMIT Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]]  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 3], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 4], ["exp_year", 2016], ["fingerprint", "wXWJT135mEK107G8"], ["funding", "credit"], ["last4", "4242"], ["name", "Johnny App"], ["created_at", "2016-10-02 20:46:33.788668"], ["updated_at", "2016-10-02 20:46:33.788668"]]  (0.2ms) COMMIT Redirected to http://127.0.0.1:65240/tang/account/subscription Completed 302 Found in 58ms (ActiveRecord: 6.1ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:46:33 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > 0) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.7ms) Completed 200 OK in 10ms (Views: 3.9ms | ActiveRecord: 2.0ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.1ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (32.3ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$LVYn2.SmrVqpiAdWt1862uho/18jt5bohgitp60yWKvDE0QqQ9L9C"], ["created_at", "2016-10-02 20:46:38.724739"], ["updated_at", "2016-10-02 20:46:38.724739"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:46:38 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.2ms) Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:46:39 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:46:39.093849"], ["current_sign_in_at", "2016-10-02 20:46:39.093849"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:46:39.094546"], ["id", 1]]  (6.1ms) COMMIT Redirected to http://127.0.0.1:65240/ Completed 302 Found in 14ms (ActiveRecord: 7.0ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:46:39 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (6.3ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:46:39.228018"], ["updated_at", "2016-10-02 20:46:39.228018"]] SQL (2.4ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:46:39.228018"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:46:39 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (3.0ms) Completed 200 OK in 8ms (Views: 4.1ms | ActiveRecord: 1.3ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 16:46:39 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:46:41 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"test_tok_1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 1) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 1) LIMIT 1 SQL (0.2ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-02 20:46:41.538053"], ["id", 1]]  (5.7ms) COMMIT  (0.1ms) BEGIN Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (11.1ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 1], ["customer_id", 1], ["stripe_id", "test_su_4"], ["created_at", "2016-10-02 20:46:41.550247"], ["updated_at", "2016-10-02 20:46:41.550247"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-02 20:46:41.550247"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.4ms) COMMIT Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]]  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 1], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 4], ["exp_year", 2016], ["fingerprint", "wXWJT135mEK107G8"], ["funding", "credit"], ["last4", "4242"], ["name", "Johnny App"], ["created_at", "2016-10-02 20:46:41.571088"], ["updated_at", "2016-10-02 20:46:41.571088"]]  (0.3ms) COMMIT Redirected to http://127.0.0.1:65240/tang/account/subscription Completed 302 Found in 46ms (ActiveRecord: 21.3ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:46:41 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > 0) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.3ms) Completed 200 OK in 7ms (Views: 3.2ms | ActiveRecord: 1.2ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (37.2ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (28.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$qG8iLaKgtyknqy700fIaY.RpuRanDYtzezqT3IxAZiNeLN7S90nhO"], ["created_at", "2016-10-02 20:48:23.983866"], ["updated_at", "2016-10-02 20:48:23.983866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:48:24 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (28.0ms) Completed 200 OK in 252ms (Views: 239.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:48:24 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:48:24.295802"], ["current_sign_in_at", "2016-10-02 20:48:24.295802"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:48:24.296554"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 20ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:48:24 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:48:24 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (7.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (11.7ms) Completed 200 OK in 44ms (Views: 26.3ms | ActiveRecord: 1.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:48:24 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (3.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-02 20:48:24.409145"], ["updated_at", "2016-10-02 20:48:24.409145"]] SQL (0.7ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-02 20:48:24.409145"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 888ms (ActiveRecord: 6.0ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 16:48:25 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (6.5ms) Completed 200 OK in 16ms (Views: 11.0ms | ActiveRecord: 0.5ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$Y6p.18Ug80wi3QuuzHCB3OtGv0IUWp39JGb.D/xTqGu.rDIp6PBiq"], ["created_at", "2016-10-02 20:48:25.328062"], ["updated_at", "2016-10-02 20:48:25.328062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:48:25 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:48:25 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:48:25.341939"], ["current_sign_in_at", "2016-10-02 20:48:25.341939"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:48:25.342852"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:48:25 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.1ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:48:25 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.7ms) Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:48:25 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.8ms) Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$uzU4ziyzUOAjRGxaHMZdBe1eK93pnl.hnfrSRgDIjbSYXjuvY9F2e"], ["created_at", "2016-10-02 20:48:25.428863"], ["updated_at", "2016-10-02 20:48:25.428863"]]  (0.4ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:48:28 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.9ms) Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 16:48:28 -0400 Started GET "/assets/application-82c3eb748a59734f838dcbb1ad72b00d4dc551a1ae142c099207bb40b1bdb2b8.js" for 127.0.0.1 at 2016-10-02 16:48:28 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:48:28 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:48:28.657515"], ["current_sign_in_at", "2016-10-02 20:48:28.657515"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:48:28.658412"], ["id", 3]]  (6.2ms) COMMIT Redirected to http://127.0.0.1:49613/ Completed 302 Found in 18ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:48:28 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:48:28.818959"], ["updated_at", "2016-10-02 20:48:28.818959"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:48:28.818959"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:48:28 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (5.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (19.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (11.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (22.7ms) Completed 200 OK in 76ms (Views: 23.1ms | ActiveRecord: 38.4ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 16:48:29 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (7.5ms) Completed 200 OK in 29ms (Views: 11.7ms | ActiveRecord: 2.0ms)  (0.5ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.2ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (8.6ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (34.0ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$t5fArI7rar/ZmP41rnuUrugUqxG8vrlzfHX3lnuGABF47xKtcthW2"], ["created_at", "2016-10-02 20:48:33.180892"], ["updated_at", "2016-10-02 20:48:33.180892"]]  (0.2ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:48:33 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.3ms) Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:48:33 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:48:33.556360"], ["current_sign_in_at", "2016-10-02 20:48:33.556360"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:48:33.557269"], ["id", 1]]  (5.7ms) COMMIT Redirected to http://127.0.0.1:49613/ Completed 302 Found in 14ms (ActiveRecord: 6.6ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:48:33 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.1ms) User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (11.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:48:33.690137"], ["updated_at", "2016-10-02 20:48:33.690137"]] SQL (0.6ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:48:33.690137"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.5ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:48:33 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.6ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.5ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.5ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.5ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (4.1ms) Completed 200 OK in 17ms (Views: 5.1ms | ActiveRecord: 2.5ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 16:48:33 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.1ms) Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.4ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (62.4ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (23.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$ZpL4dJH7uBkXm.M0J113pOQ2f669kXEXUE2SEwGQK8Cjf0RuDz/Lm"], ["created_at", "2016-10-02 20:49:28.320537"], ["updated_at", "2016-10-02 20:49:28.320537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:49:28 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.2ms) Rendered devise/sessions/new.html.erb within layouts/application (35.7ms) Completed 200 OK in 307ms (Views: 291.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:49:28 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:49:28.687677"], ["current_sign_in_at", "2016-10-02 20:49:28.687677"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:49:28.688531"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 20ms (ActiveRecord: 1.2ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:49:28 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 8ms (Views: 7.6ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:49:28 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (7.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (10.8ms) Completed 200 OK in 43ms (Views: 22.9ms | ActiveRecord: 1.4ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:49:28 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.6ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-02 20:49:28.795415"], ["updated_at", "2016-10-02 20:49:28.795415"]] SQL (12.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-02 20:49:28.795415"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 910ms (ActiveRecord: 15.2ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 16:49:29 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (8.3ms) Completed 200 OK in 18ms (Views: 13.0ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (6.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$OTF9THU12IvSgz8sECdKwe2ZZsSG9dfrKFfhuhRByf1OS/TLKB83a"], ["created_at", "2016-10-02 20:49:29.737156"], ["updated_at", "2016-10-02 20:49:29.737156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:49:29 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.9ms) Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:49:29 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:49:29.761502"], ["current_sign_in_at", "2016-10-02 20:49:29.761502"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:49:29.762343"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:49:29 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:49:29 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (2.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.2ms) Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:49:29 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.7ms) Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$6fGYbRckWnCkgBxuiuAQxegISrNb/XR4GEWICwTxSOC/I2SNBpfnG"], ["created_at", "2016-10-02 20:49:29.838731"], ["updated_at", "2016-10-02 20:49:29.838731"]]  (5.9ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:49:32 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.7ms) Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 16:49:32 -0400 Started GET "/assets/application-82c3eb748a59734f838dcbb1ad72b00d4dc551a1ae142c099207bb40b1bdb2b8.js" for 127.0.0.1 at 2016-10-02 16:49:32 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:49:33 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:49:33.252507"], ["current_sign_in_at", "2016-10-02 20:49:33.252507"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:49:33.253722"], ["id", 3]]  (6.0ms) COMMIT Redirected to http://127.0.0.1:50251/ Completed 302 Found in 18ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:49:33 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:49:33.416882"], ["updated_at", "2016-10-02 20:49:33.416882"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:49:33.416882"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:49:33 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (18.9ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (28.0ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (39.5ms) Completed 200 OK in 89ms (Views: 22.6ms | ActiveRecord: 50.1ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 16:49:33 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (4.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (8.2ms) Completed 200 OK in 30ms (Views: 12.8ms | ActiveRecord: 2.3ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.1ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (40.3ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$PTEXC3vlSWWaNNJFHBJzJ.sjKB17Egnhorom2Fouobx3vlcK5jv/e"], ["created_at", "2016-10-02 20:49:37.752363"], ["updated_at", "2016-10-02 20:49:37.752363"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:49:37 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.4ms) Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:49:38 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:49:38.131320"], ["current_sign_in_at", "2016-10-02 20:49:38.131320"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:49:38.131992"], ["id", 1]]  (6.0ms) COMMIT Redirected to http://127.0.0.1:50251/ Completed 302 Found in 14ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:49:38 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.4ms)  (0.2ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (6.4ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:49:38.267329"], ["updated_at", "2016-10-02 20:49:38.267329"]] SQL (5.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:49:38.267329"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.5ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:49:38 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.5ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.7ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (8.2ms) Completed 200 OK in 15ms (Views: 10.7ms | ActiveRecord: 2.0ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 16:49:38 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.2ms) Completed 200 OK in 7ms (Views: 4.5ms | ActiveRecord: 0.4ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (38.0ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (23.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$VjQXHo1OcH3J2a7gT9q2lOPTg8H5ogn5GxGWXv0d6lh2gguxZ1w5m"], ["created_at", "2016-10-02 20:51:57.335451"], ["updated_at", "2016-10-02 20:51:57.335451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:51:57 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (37.6ms) Completed 200 OK in 303ms (Views: 288.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:51:57 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:51:57.700576"], ["current_sign_in_at", "2016-10-02 20:51:57.700576"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:51:57.701302"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 19ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:51:57 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 9ms (Views: 7.9ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:51:57 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (7.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (11.4ms) Completed 200 OK in 45ms (Views: 25.4ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:51:57 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-02 20:51:57.816033"], ["updated_at", "2016-10-02 20:51:57.816033"]] SQL (12.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-02 20:51:57.816033"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 871ms (ActiveRecord: 15.2ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 16:51:58 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (9.3ms) Completed 200 OK in 19ms (Views: 13.8ms | ActiveRecord: 0.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$ufAAAle/MqDQgSz3hMpi7ubo27h2KCHwbFZq5NM7iVDxNvLvAu5oG"], ["created_at", "2016-10-02 20:51:58.720636"], ["updated_at", "2016-10-02 20:51:58.720636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:51:58 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.2ms) Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:51:58 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:51:58.737571"], ["current_sign_in_at", "2016-10-02 20:51:58.737571"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:51:58.738584"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:51:58 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 16:51:58 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.7ms) Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 16:51:58 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.8ms) Completed 200 OK in 10ms (Views: 5.4ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.2ms) BEGIN User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$JMEQKJCi0maCixhOZZD8uO3Sss8WJVtU6iA9Fw98m0Tc5mVj/Q2mS"], ["created_at", "2016-10-02 20:51:58.829409"], ["updated_at", "2016-10-02 20:51:58.829409"]]  (5.6ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:52:02 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.5ms) Rendered devise/sessions/new.html.erb within layouts/application (3.4ms) Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 16:52:02 -0400 Started GET "/assets/application-82c3eb748a59734f838dcbb1ad72b00d4dc551a1ae142c099207bb40b1bdb2b8.js" for 127.0.0.1 at 2016-10-02 16:52:02 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:52:02 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:52:02.747386"], ["current_sign_in_at", "2016-10-02 20:52:02.747386"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:52:02.748353"], ["id", 3]]  (12.1ms) COMMIT Redirected to http://127.0.0.1:50902/ Completed 302 Found in 24ms (ActiveRecord: 13.3ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:52:02 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:52:02.915299"], ["updated_at", "2016-10-02 20:52:02.915299"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:52:02.915299"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:52:02 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (15.8ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (12.8ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (24.3ms) Completed 200 OK in 71ms (Views: 21.6ms | ActiveRecord: 31.7ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 16:52:03 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (4.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (8.1ms) Completed 200 OK in 30ms (Views: 12.9ms | ActiveRecord: 2.3ms)  (0.5ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.2ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (34.3ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$p8Ekw8b5CXrMGY624/UHy.rWHzfOcCpGopIfTujZx164bxby5iKsW"], ["created_at", "2016-10-02 20:52:05.184276"], ["updated_at", "2016-10-02 20:52:05.184276"]]  (0.2ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:52:05 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.4ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 16:52:05 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 20:52:05.572754"], ["current_sign_in_at", "2016-10-02 20:52:05.572754"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 20:52:05.573528"], ["id", 1]]  (0.3ms) COMMIT Redirected to http://127.0.0.1:50902/ Completed 302 Found in 9ms (ActiveRecord: 1.4ms) Started GET "/" for 127.0.0.1 at 2016-10-02 16:52:05 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (6.1ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 20:52:05.829027"], ["updated_at", "2016-10-02 20:52:05.829027"]] SQL (0.6ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 20:52:05.829027"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 16:52:05 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (5.6ms) Completed 200 OK in 14ms (Views: 10.2ms | ActiveRecord: 1.5ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 16:52:06 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.5ms) Completed 200 OK in 6ms (Views: 3.0ms | ActiveRecord: 0.5ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (44.3ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (7.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN User Load (36.9ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (5.8ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (29.0ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$y9YkLsttqg.Lfmq4R0/oie2863edWu4OM/QuK3z322xtyg5bIVKKy"], ["created_at", "2016-10-02 23:12:32.792766"], ["updated_at", "2016-10-02 23:12:32.792766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 19:12:32 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.5ms) Rendered devise/sessions/new.html.erb within layouts/application (36.5ms) Completed 200 OK in 348ms (Views: 331.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 19:12:33 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (6.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 SQL (12.0ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 23:12:33.239741"], ["current_sign_in_at", "2016-10-02 23:12:33.239741"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 23:12:33.240919"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 43ms (ActiveRecord: 18.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 19:12:33 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 19:12:33 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (7.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (10.7ms) Completed 200 OK in 45ms (Views: 22.8ms | ActiveRecord: 1.8ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 19:12:33 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (1.9ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (5.8ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-02 23:12:33.378869"], ["updated_at", "2016-10-02 23:12:33.378869"]] SQL (29.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-02 23:12:33.378869"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 495ms (ActiveRecord: 39.5ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 19:12:33 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (12.2ms) Completed 200 OK in 27ms (Views: 19.4ms | ActiveRecord: 0.7ms)  (5.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$z.y1V3e6IFhevMcHnIpEkuxqdgjOHO9LRIRkAuyTGXHYvUBW/SnPm"], ["created_at", "2016-10-02 23:12:33.918644"], ["updated_at", "2016-10-02 23:12:33.918644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 19:12:33 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.3ms) Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 19:12:33 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 23:12:33.934405"], ["current_sign_in_at", "2016-10-02 23:12:33.934405"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 23:12:33.935280"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 1.1ms) Started GET "/" for 127.0.0.1 at 2016-10-02 19:12:33 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 19:12:33 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.4ms) Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 19:12:33 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (6.4ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.7ms) Completed 200 OK in 18ms (Views: 6.5ms | ActiveRecord: 6.9ms)  (0.1ms) ROLLBACK User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$rcfIdLZQf3EzTaDXJrrOFukA6CVzpQpihTXAThsPD09t7AnMZjpyy"], ["created_at", "2016-10-02 23:12:34.038004"], ["updated_at", "2016-10-02 23:12:34.038004"]]  (17.9ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 19:12:37 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.9ms) Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 19:12:37 -0400 Started GET "/assets/application-82c3eb748a59734f838dcbb1ad72b00d4dc551a1ae142c099207bb40b1bdb2b8.js" for 127.0.0.1 at 2016-10-02 19:12:37 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 19:12:38 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 23:12:38.424225"], ["current_sign_in_at", "2016-10-02 23:12:38.424225"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 23:12:38.425249"], ["id", 3]]  (6.2ms) COMMIT Redirected to http://127.0.0.1:51987/ Completed 302 Found in 17ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2016-10-02 19:12:38 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 23:12:38.585822"], ["updated_at", "2016-10-02 23:12:38.585822"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 23:12:38.585822"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 19:12:38 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (23.8ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.5ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (7.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (17.9ms) Completed 200 OK in 73ms (Views: 21.0ms | ActiveRecord: 34.6ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 19:12:38 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (8.2ms) Completed 200 OK in 31ms (Views: 12.7ms | ActiveRecord: 3.7ms)  (6.7ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.2ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.9ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (95.6ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$8JtShkU9ePQL6EELn1rIeOlVYregKmB.UFs2CZAiu283JjZj2NRJ."], ["created_at", "2016-10-02 23:12:42.982161"], ["updated_at", "2016-10-02 23:12:42.982161"]]  (0.2ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 19:12:42 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.5ms) Rendered devise/sessions/new.html.erb within layouts/application (2.5ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 19:12:43 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 23:12:43.339169"], ["current_sign_in_at", "2016-10-02 23:12:43.339169"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 23:12:43.339939"], ["id", 1]]  (6.0ms) COMMIT Redirected to http://127.0.0.1:51987/ Completed 302 Found in 13ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 19:12:43 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (5.9ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 23:12:43.470871"], ["updated_at", "2016-10-02 23:12:43.470871"]] SQL (0.6ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 23:12:43.470871"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 19:12:43 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.4ms) Completed 200 OK in 14ms (Views: 9.6ms | ActiveRecord: 1.4ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 19:12:43 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.1ms) Completed 200 OK in 6ms (Views: 2.9ms | ActiveRecord: 0.5ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (44.2ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (1.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$QTFvzWQfga8vd5ORS7ZQreMu7Jd4if/RdNS4BlEaDBvqCIO7ISRyO"], ["created_at", "2016-10-02 23:14:00.983677"], ["updated_at", "2016-10-02 23:14:00.983677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 19:14:00 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.0ms) Rendered devise/sessions/new.html.erb within layouts/application (26.1ms) Completed 200 OK in 260ms (Views: 245.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 19:14:01 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 23:14:01.278639"], ["current_sign_in_at", "2016-10-02 23:14:01.278639"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 23:14:01.279365"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 1.0ms) Started GET "/" for 127.0.0.1 at 2016-10-02 19:14:01 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 19:14:01 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (7.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (12.1ms) Completed 200 OK in 43ms (Views: 26.0ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 19:14:01 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-02 23:14:01.384264"], ["updated_at", "2016-10-02 23:14:01.384264"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-02 23:14:01.384264"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 850ms (ActiveRecord: 3.5ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 19:14:02 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (6.8ms) Completed 200 OK in 16ms (Views: 11.0ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$y0uJ5VCVNT3yJinE36uWCeXiM5F9XUEQiLCNwZkdINKvsSWekqLFi"], ["created_at", "2016-10-02 23:14:02.262326"], ["updated_at", "2016-10-02 23:14:02.262326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 19:14:02 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 19:14:02 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 23:14:02.276055"], ["current_sign_in_at", "2016-10-02 23:14:02.276055"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 23:14:02.276843"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 19:14:02 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 19:14:02 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (2.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.4ms) Completed 200 OK in 7ms (Views: 4.7ms | ActiveRecord: 0.4ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 19:14:02 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (5.3ms) Completed 200 OK in 12ms (Views: 6.9ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$oVCXKd3mPsBmIM/I1zXu8uqR9hDu5Lfm3rJ.SeYMeed1SvC6yH25G"], ["created_at", "2016-10-02 23:14:02.354691"], ["updated_at", "2016-10-02 23:14:02.354691"]]  (0.4ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 19:14:04 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.8ms) Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 19:14:04 -0400 Started GET "/assets/application-82c3eb748a59734f838dcbb1ad72b00d4dc551a1ae142c099207bb40b1bdb2b8.js" for 127.0.0.1 at 2016-10-02 19:14:04 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 19:14:05 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 23:14:05.525696"], ["current_sign_in_at", "2016-10-02 23:14:05.525696"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 23:14:05.526712"], ["id", 3]]  (6.0ms) COMMIT Redirected to http://127.0.0.1:52723/ Completed 302 Found in 17ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2016-10-02 19:14:05 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.1ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 23:14:05.685028"], ["updated_at", "2016-10-02 23:14:05.685028"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 23:14:05.685028"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 19:14:05 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (9.9ms) Completed 200 OK in 44ms (Views: 21.6ms | ActiveRecord: 3.5ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 19:14:05 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (6.3ms) Completed 200 OK in 36ms (Views: 11.0ms | ActiveRecord: 8.8ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.0ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.7ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (34.8ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$ahJBMKbG9lOkYBaQWOXwH./P0oyYjBIcyXedjt9jOVhrod.Z/lsGu"], ["created_at", "2016-10-02 23:14:09.956252"], ["updated_at", "2016-10-02 23:14:09.956252"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 19:14:09 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.5ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 19:14:10 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 23:14:10.313604"], ["current_sign_in_at", "2016-10-02 23:14:10.313604"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 23:14:10.314273"], ["id", 1]]  (5.7ms) COMMIT Redirected to http://127.0.0.1:52723/ Completed 302 Found in 13ms (ActiveRecord: 6.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 19:14:10 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (6.3ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 23:14:10.445334"], ["updated_at", "2016-10-02 23:14:10.445334"]] SQL (0.5ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 23:14:10.445334"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.5ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 19:14:10 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (3.7ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (8.9ms) Completed 200 OK in 15ms (Views: 7.0ms | ActiveRecord: 4.9ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 19:14:10 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.2ms) Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.5ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (40.8ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$PlvPzVL7tFPZ/NBVjRZT5eOfXcNwWKybQjkwdpqw85ZRoykcldsGG"], ["created_at", "2016-10-02 23:15:24.405162"], ["updated_at", "2016-10-02 23:15:24.405162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 19:15:24 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (25.0ms) Completed 200 OK in 377ms (Views: 364.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 19:15:24 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 23:15:24.815783"], ["current_sign_in_at", "2016-10-02 23:15:24.815783"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 23:15:24.816546"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 1.0ms) Started GET "/" for 127.0.0.1 at 2016-10-02 19:15:24 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 19:15:24 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (7.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (10.5ms) Completed 200 OK in 40ms (Views: 22.0ms | ActiveRecord: 1.4ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 19:15:24 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (1.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-02 23:15:24.919456"], ["updated_at", "2016-10-02 23:15:24.919456"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-02 23:15:24.919456"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 843ms (ActiveRecord: 4.0ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 19:15:25 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (6.7ms) Completed 200 OK in 15ms (Views: 10.7ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$pG8ldTpQ9z4YbEtyH4LcIuShQnRUY.v.fCBPzLmFoiBDbiapwR31."], ["created_at", "2016-10-02 23:15:25.790796"], ["updated_at", "2016-10-02 23:15:25.790796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 19:15:25 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 19:15:25 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 23:15:25.804863"], ["current_sign_in_at", "2016-10-02 23:15:25.804863"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 23:15:25.805551"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 19:15:25 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 19:15:25 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.2ms) Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 19:15:25 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.9ms) Completed 200 OK in 10ms (Views: 5.2ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$w16ozbLF7VFn4Ax2kacLfuZSsYk9bH5/MmdPepy5T/QciSGynlkuO"], ["created_at", "2016-10-02 23:15:25.887862"], ["updated_at", "2016-10-02 23:15:25.887862"]]  (0.4ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 19:15:28 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (3.0ms) Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 19:15:28 -0400 Started GET "/assets/application-331d0e45393825e12d6a602e49efed623fbd4ca681935e4c34a085abaf28c3a9.js" for 127.0.0.1 at 2016-10-02 19:15:28 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 19:15:29 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 23:15:29.581774"], ["current_sign_in_at", "2016-10-02 23:15:29.581774"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 23:15:29.582737"], ["id", 3]]  (5.8ms) COMMIT Redirected to http://127.0.0.1:53320/ Completed 302 Found in 17ms (ActiveRecord: 7.0ms) Started GET "/" for 127.0.0.1 at 2016-10-02 19:15:29 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.1ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 23:15:29.744325"], ["updated_at", "2016-10-02 23:15:29.744325"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 23:15:29.744325"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 19:15:29 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.5ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (10.7ms) Completed 200 OK in 45ms (Views: 22.7ms | ActiveRecord: 3.8ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 19:15:30 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (9.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (12.5ms) Completed 200 OK in 37ms (Views: 16.6ms | ActiveRecord: 2.3ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.2ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (33.6ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.8ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$cw9yOQ3myZs4ybwuvsOlrewxbpzZb8GSevntnb16hPOkK9imted8m"], ["created_at", "2016-10-02 23:15:34.039361"], ["updated_at", "2016-10-02 23:15:34.039361"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 19:15:34 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.4ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 19:15:34 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 23:15:34.388423"], ["current_sign_in_at", "2016-10-02 23:15:34.388423"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 23:15:34.389139"], ["id", 1]]  (5.5ms) COMMIT Redirected to http://127.0.0.1:53320/ Completed 302 Found in 13ms (ActiveRecord: 6.6ms) Started GET "/" for 127.0.0.1 at 2016-10-02 19:15:34 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.1ms) User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (6.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 23:15:34.511474"], ["updated_at", "2016-10-02 23:15:34.511474"]] SQL (6.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 23:15:34.511474"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 19:15:34 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.2ms) Completed 200 OK in 7ms (Views: 3.2ms | ActiveRecord: 1.3ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 19:15:34 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (38.6ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (6.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (25.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (23.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$dKQhDk7cY3aZ4pGP1mSyPuEuxyLymMp4juIY6NwBWiFTCv3w/D9ZO"], ["created_at", "2016-10-02 23:45:00.042787"], ["updated_at", "2016-10-02 23:45:00.042787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 19:45:00 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (39.6ms) Completed 200 OK in 327ms (Views: 310.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 19:45:00 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 23:45:00.427057"], ["current_sign_in_at", "2016-10-02 23:45:00.427057"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 23:45:00.427857"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 20ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 19:45:00 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 19:45:00 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (11.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (16.8ms) Completed 200 OK in 48ms (Views: 29.5ms | ActiveRecord: 1.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 19:45:00 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (6.6ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.7ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-02 23:45:00.552537"], ["updated_at", "2016-10-02 23:45:00.552537"]] SQL (18.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-02 23:45:00.552537"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 472ms (ActiveRecord: 27.4ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 19:45:01 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (10.0ms) Completed 200 OK in 19ms (Views: 14.4ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$wvYyP/Z4P1cdYOpNaN799O70diT9jgRcXjsXAOpf8AiXGHN40kk.S"], ["created_at", "2016-10-02 23:45:01.050152"], ["updated_at", "2016-10-02 23:45:01.050152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 19:45:01 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 19:45:01 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 23:45:01.066272"], ["current_sign_in_at", "2016-10-02 23:45:01.066272"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 23:45:01.066913"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 19:45:01 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 19:45:01 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.5ms) Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 19:45:01 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.6ms) Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$T3XK6T1Aq/2O4jS0bDAhXuKEKBaNis4.abHmUuU.B1zSGCirWPAEm"], ["created_at", "2016-10-02 23:45:01.154286"], ["updated_at", "2016-10-02 23:45:01.154286"]]  (6.2ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 19:45:05 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.5ms) Rendered devise/sessions/new.html.erb within layouts/application (3.2ms) Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 19:45:05 -0400 Started GET "/assets/application-331d0e45393825e12d6a602e49efed623fbd4ca681935e4c34a085abaf28c3a9.js" for 127.0.0.1 at 2016-10-02 19:45:05 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 19:45:05 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 23:45:05.695823"], ["current_sign_in_at", "2016-10-02 23:45:05.695823"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 23:45:05.696805"], ["id", 3]]  (6.4ms) COMMIT Redirected to http://127.0.0.1:55796/ Completed 302 Found in 17ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2016-10-02 19:45:05 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.1ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 23:45:05.857301"], ["updated_at", "2016-10-02 23:45:05.857301"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 23:45:05.857301"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 19:45:05 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (23.1ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (23.8ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (35.9ms) Completed 200 OK in 89ms (Views: 22.1ms | ActiveRecord: 49.9ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 19:45:06 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (4.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (7.7ms) Completed 200 OK in 27ms (Views: 11.9ms | ActiveRecord: 2.2ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 19:45:08 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "stripe_token"=>"tok_190JdoGYKt5n7d1YdfsM2gSV"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.1ms) Completed 200 OK in 10ms (Views: 2.7ms | ActiveRecord: 0.9ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.0ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (66.7ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.2ms) BEGIN User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$wzw59mjvNucOx/Xlgs75AugMrxGZoSr2kewWC3Bi1jjxpEd8Hnw6K"], ["created_at", "2016-10-02 23:45:15.467661"], ["updated_at", "2016-10-02 23:45:15.467661"]]  (0.2ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 19:45:15 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.5ms) Rendered devise/sessions/new.html.erb within layouts/application (3.9ms) Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 19:45:16 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.2ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-02 23:45:16.050356"], ["current_sign_in_at", "2016-10-02 23:45:16.050356"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-02 23:45:16.051430"], ["id", 1]]  (5.7ms) COMMIT Redirected to http://127.0.0.1:55796/ Completed 302 Found in 16ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2016-10-02 19:45:16 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (3.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 13ms (Views: 9.3ms | ActiveRecord: 3.7ms)  (0.1ms) BEGIN Tang::Plan Exists (3.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-02 23:45:16.258445"], ["updated_at", "2016-10-02 23:45:16.258445"]] SQL (0.8ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-02 23:45:16.258445"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.5ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 19:45:16 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.6ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.5ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.7ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (4.5ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (16.9ms) Completed 200 OK in 28ms (Views: 16.6ms | ActiveRecord: 6.7ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 19:45:16 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.4ms) Completed 200 OK in 7ms (Views: 3.4ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 19:45:19 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"tok_190JdzGYKt5n7d1Yav8Rjstu"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.1ms) Completed 200 OK in 7ms (Views: 2.6ms | ActiveRecord: 0.7ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (42.7ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.8ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.5ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (2.8ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (24.9ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL  (0.3ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (17.6ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (21.8ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$ChyeMvCBNbSAxZnLlVSjiuyr5dojmrFqq2Cc7PgXLZwb8Y0EsYG/q"], ["created_at", "2016-10-03 00:18:07.579010"], ["updated_at", "2016-10-03 00:18:07.579010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$9A2vpLMuUDGjv6wu5ZIKsu0vuAWWpwvvBStj5jv6qwBkPJS5sxcgG"], ["created_at", "2016-10-03 00:18:07.610230"], ["updated_at", "2016-10-03 00:18:07.610230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$NEpBS9KSIS8J.DTKCz4APeqoWlg7I5NF6nsBQKQLpzl.ef5zEPUxC"], ["created_at", "2016-10-03 00:18:07.617447"], ["updated_at", "2016-10-03 00:18:07.617447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 76ms (Views: 29.1ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$zFcF88fo2F8Ot3YlFMiW/.AWXolF0xE2N9lZSut9.BbNGPgLsUI2a"], ["created_at", "2016-10-03 00:18:07.707800"], ["updated_at", "2016-10-03 00:18:07.707800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$zEoMr2hEi3/rKza9vLCPF.vWfIpC53ijun9kzk80I.OyHzDTwybpu"], ["created_at", "2016-10-03 00:18:07.713231"], ["updated_at", "2016-10-03 00:18:07.713231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$hYLM/lbjkIT15ZBDobLxN.82dfmuoBmKQfvK0h4zHkgjV0wkx6FwG"], ["created_at", "2016-10-03 00:18:07.722326"], ["updated_at", "2016-10-03 00:18:07.722326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 SQL (6.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$zVLINNb0O/shEkfIFREFdOVCiknJ5iYucwWvYAEED6H1VWIeygdUS"], ["created_at", "2016-10-03 00:18:07.727685"], ["updated_at", "2016-10-03 00:18:07.727685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$mlthEYETEqAIE0hGnOfD..S8swXJ4y8WBXnctR97EemlaWjuYYsOe"], ["created_at", "2016-10-03 00:18:07.739764"], ["updated_at", "2016-10-03 00:18:07.739764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$hhdqvmYzBo04qYMdyZ4Yd.JnntWjhHrZOeDITqTqn1STMcgwHVSb6"], ["created_at", "2016-10-03 00:18:07.744855"], ["updated_at", "2016-10-03 00:18:07.744855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$S8S4bhO0UtazhbNVZVhLDe0OAkDyFNau758F2qqm/uBnt049LER0W"], ["created_at", "2016-10-03 00:18:07.749724"], ["updated_at", "2016-10-03 00:18:07.749724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$9pmSl8G8vcbB/I0cdb5pcO04W/VWAA//3bQotL7AFHCXMW2tgQLaG"], ["created_at", "2016-10-03 00:18:07.754181"], ["updated_at", "2016-10-03 00:18:07.754181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$XFJ5DjgS6uvAjNw1Jl.81u8tQpYmPTRcteK.dkLPSpUxu19WMj8RK"], ["created_at", "2016-10-03 00:18:07.759097"], ["updated_at", "2016-10-03 00:18:07.759097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$vtJqorenSq1DdtYu4fxm.egWTwxaORtMiFbMPBG0Pvw.Hn/KiqoLG"], ["created_at", "2016-10-03 00:18:07.764063"], ["updated_at", "2016-10-03 00:18:07.764063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$WfTGF2x11nrv/jwgVDesx.U0W6Wl2nt59nr/yolf4p9aSVnC9fIK2"], ["created_at", "2016-10-03 00:18:07.768743"], ["updated_at", "2016-10-03 00:18:07.768743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$fjquzxBcF9mtXt9LVsoDTOx4XVar9J9llXFt.GieiBs74UQs51/CO"], ["created_at", "2016-10-03 00:18:07.773736"], ["updated_at", "2016-10-03 00:18:07.773736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$Si8.H3Xg5clBgkqmzMrQFeymzGk7dWelBUGu4CT4Y6EyMK4J7sRV2"], ["created_at", "2016-10-03 00:18:07.778532"], ["updated_at", "2016-10-03 00:18:07.778532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$azNqCFLE2M/RwWC5.OLofOV4oVnnmKqU2ZExUw8rkDJv5W3wVBbhe"], ["created_at", "2016-10-03 00:18:07.783437"], ["updated_at", "2016-10-03 00:18:07.783437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$AbpegikuutZVGK7jJp5ZuuHqVekMJrIG0AwFNcfArP45KNLE.26Y."], ["created_at", "2016-10-03 00:18:07.788203"], ["updated_at", "2016-10-03 00:18:07.788203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$A9/LS8FuAAcF2yr/./QTZ.Xmu4y2sx6x9HQleUO/3.Gb.FtpefR/O"], ["created_at", "2016-10-03 00:18:07.792862"], ["updated_at", "2016-10-03 00:18:07.792862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$P71PU/EeH5hiZXIo8GfsR.LbE8qYNQ4p9KDf4enbFVWODRmP7s4Pu"], ["created_at", "2016-10-03 00:18:07.797701"], ["updated_at", "2016-10-03 00:18:07.797701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$aN46zBfL/pQ03akt4Vktk.gaIL/tnsawNzuQ4g1jQjp21FX6a4Voe"], ["created_at", "2016-10-03 00:18:07.802285"], ["updated_at", "2016-10-03 00:18:07.802285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$JBaM7MT1y/z4UOjCawyTPuRtM/u.2FTrPLxhGJJNFF.ka9D3KcEgq"], ["created_at", "2016-10-03 00:18:07.806912"], ["updated_at", "2016-10-03 00:18:07.806912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$WlUkvoOmBEAERotvFw405ebxhserL1BRA0kxBaf5knF79NguTlF0O"], ["created_at", "2016-10-03 00:18:07.811614"], ["updated_at", "2016-10-03 00:18:07.811614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$ipzl0zM8OFCvenq8XinJp.Xj7BFWmmpRDMotQcHyUei1Xf2W7aLsG"], ["created_at", "2016-10-03 00:18:07.816144"], ["updated_at", "2016-10-03 00:18:07.816144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$Yg/67UOcOlwLBHlcDjsU1OdaguEqYwzxkfMY8hYw5QOjzXi2kQWRK"], ["created_at", "2016-10-03 00:18:07.820902"], ["updated_at", "2016-10-03 00:18:07.820902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$biqnFmIRWiUTuq.KTa6Oiun4o.FVkmwcKLLLLAx9OJ3esupSmzjdC"], ["created_at", "2016-10-03 00:18:07.825603"], ["updated_at", "2016-10-03 00:18:07.825603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$eefiMaUVMGyZE4aLosqBTO.E5xyEYypahQa756sf7QluywPg4uJYG"], ["created_at", "2016-10-03 00:18:07.830529"], ["updated_at", "2016-10-03 00:18:07.830529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 00:18:07.847635"], ["updated_at", "2016-10-03 00:18:07.847635"]] SQL (11.9ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-03 00:18:07.847635"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 17ms (Views: 15.0ms | ActiveRecord: 0.3ms) Tang::Plan Load (0.5ms) SELECT "tang_plans".* FROM "tang_plans"  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$Gjdq6CPENkj8KFaAXz9M0.SJ4tbahV9avhe3y5edZr8.0ryenhisW"], ["created_at", "2016-10-03 00:18:08.385906"], ["updated_at", "2016-10-03 00:18:08.385906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 00:18:08.389822"], ["updated_at", "2016-10-03 00:18:08.389822"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-03 00:18:08.389822"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 28]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (0.4ms) Completed 200 OK in 14ms (Views: 8.3ms | ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$8JS53KzqR9JMTNhwZcc8rOiQBP2wrdlAcnZlejfqGv8NCNV5WpPV6"], ["created_at", "2016-10-03 00:18:08.816572"], ["updated_at", "2016-10-03 00:18:08.816572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$d02UM.VK9S1hjrw4R4sgbOMfWIetQSGNc2I1pI6MCsR9zdLR9BA7K"], ["created_at", "2016-10-03 00:18:08.832878"], ["updated_at", "2016-10-03 00:18:08.832878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456' LIMIT 1 SQL (3.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 00:18:08.836504"], ["updated_at", "2016-10-03 00:18:08.836504"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-03 00:18:08.836504"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#edit as HTML Parameters: {"id"=>"3"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 30]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.2ms) Completed 200 OK in 9ms (Views: 6.2ms | ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$/aLw4dCCdy8pzQFuVnYlseYh/ezDs9jq2qzTGP7fLlvYERuuHazm6"], ["created_at", "2016-10-03 00:18:09.352656"], ["updated_at", "2016-10-03 00:18:09.352656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 00:18:09.362312"], ["updated_at", "2016-10-03 00:18:09.362312"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "31"], ["created_at", "2016-10-03 00:18:09.362312"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/4 Completed 302 Found in 406ms (ActiveRecord: 1.3ms)  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$oFsGoR/lcs66GMzUZpCWfedDGv522II4QhIbDMeT6ucAoNxubnGZy"], ["created_at", "2016-10-03 00:18:09.770686"], ["updated_at", "2016-10-03 00:18:09.770686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 00:18:09.779003"], ["updated_at", "2016-10-03 00:18:09.779003"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "32"], ["created_at", "2016-10-03 00:18:09.779003"], ["item_id", 5], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/5 Completed 302 Found in 495ms (ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$/OfmMg9M8HCoIVIlehCAfu2297mD26fxoJxkIWpce0rTU97SzFeoG"], ["created_at", "2016-10-03 00:18:10.279488"], ["updated_at", "2016-10-03 00:18:10.279488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 00:18:10.287233"], ["updated_at", "2016-10-03 00:18:10.287233"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "33"], ["created_at", "2016-10-03 00:18:10.287233"], ["item_id", 6], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/6 Completed 302 Found in 382ms (ActiveRecord: 1.1ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$rbrUbWWMgFi9CFmBXNLswejifB0MgfOw9bzQABgDTft6EGKPFkvh6"], ["created_at", "2016-10-03 00:18:10.673826"], ["updated_at", "2016-10-03 00:18:10.673826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.0ms) Completed 200 OK in 15ms (Views: 0.6ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$n1EDA7zEao8nTUqqU2o18u3qKk05ZWMpkCQl2aCDnd4li0Hqc.IB6"], ["created_at", "2016-10-03 00:18:10.698519"], ["updated_at", "2016-10-03 00:18:10.698519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.1ms) Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$akO0Vq9cQWBtOZzhNm5c5exRy0KzcyblIclr69GRcZ.Q2/YJNZ0MG"], ["created_at", "2016-10-03 00:18:10.713021"], ["updated_at", "2016-10-03 00:18:10.713021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 00:18:10.716027"], ["updated_at", "2016-10-03 00:18:10.716027"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-03 00:18:10.716027"], ["item_id", 7], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$cI9.vBlfY9ks5rYYM4IL/.0fkrdnYRG/rmMF.AwxiO23uesrVfWma"], ["created_at", "2016-10-03 00:18:11.118690"], ["updated_at", "2016-10-03 00:18:11.118690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 00:18:11.121964"], ["updated_at", "2016-10-03 00:18:11.121964"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-03 00:18:11.121964"], ["item_id", 8], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"8"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 37]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 8]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456' AND "tang_plans"."id" != 8) LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456' AND "tang_plans"."id" != 8) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/8 Completed 302 Found in 773ms (ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$0P/WtVoCj6vqSKcDpZJV0ezeCOxJ7CR25xar5Ln1mh0mDboUG8S3K"], ["created_at", "2016-10-03 00:18:12.252114"], ["updated_at", "2016-10-03 00:18:12.252114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 00:18:12.256020"], ["updated_at", "2016-10-03 00:18:12.256020"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "37"], ["created_at", "2016-10-03 00:18:12.256020"], ["item_id", 9], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"9"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 38]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 9]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456' AND "tang_plans"."id" != 9) LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456' AND "tang_plans"."id" != 9) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/9 Completed 302 Found in 761ms (ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$SUmpMEDQLL9eK5JYaZsGWuZlkjFkajJw.W95yAxf9WKzTy/57YKxi"], ["created_at", "2016-10-03 00:18:13.400692"], ["updated_at", "2016-10-03 00:18:13.400692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 00:18:13.404080"], ["updated_at", "2016-10-03 00:18:13.404080"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "38"], ["created_at", "2016-10-03 00:18:13.404080"], ["item_id", 10], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"10"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 39]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 10]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456' AND "tang_plans"."id" != 10) LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 10ms (Views: 1.0ms | ActiveRecord: 1.3ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$cIKXCBh1cIlU9WafBaLb2.0yvEvvYywA694Wqk5CSl0YP6WU6LFhC"], ["created_at", "2016-10-03 00:18:13.802499"], ["updated_at", "2016-10-03 00:18:13.802499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 00:18:13.805936"], ["updated_at", "2016-10-03 00:18:13.805936"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "39"], ["created_at", "2016-10-03 00:18:13.805936"], ["item_id", 11], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"11"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 40]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 11]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456' AND "tang_plans"."id" != 11) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 7ms (Views: 1.0ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$mLLqkAVudda7SZ.3HzkgrugodD6ucFwxr4y76uQu1DhJXr27OiyAC"], ["created_at", "2016-10-03 00:18:14.281157"], ["updated_at", "2016-10-03 00:18:14.281157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 00:18:14.286720"], ["updated_at", "2016-10-03 00:18:14.286720"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "40"], ["created_at", "2016-10-03 00:18:14.286720"], ["item_id", 12], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"12"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 41]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 12]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 12], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 12\nstripe_id: 34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: 0\nhighlight: false\ncreated_at: 2016-10-03 00:18:14.286720000 Z\nupdated_at: 2016-10-03 00:18:14.286720000 Z\n"], ["whodunnit", "41"], ["created_at", "2016-10-03 00:18:14.663592"]] SQL (0.3ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 794ms (ActiveRecord: 1.4ms)  (0.4ms) SELECT COUNT(*) FROM "tang_plans"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$UNwaHtD5tcbNMr9k1.MHSeJ2giSdjGVTc9TCUEbHZu9dI68kZa8Tm"], ["created_at", "2016-10-03 00:18:15.461101"], ["updated_at", "2016-10-03 00:18:15.461101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 00:18:15.468919"], ["updated_at", "2016-10-03 00:18:15.468919"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "41"], ["created_at", "2016-10-03 00:18:15.468919"], ["item_id", 13], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"13"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 42]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 13]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 13], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 13\nstripe_id: 34fe3b2c-9e5e-42d1-9ba4-0fc0e8c86456\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: 0\nhighlight: false\ncreated_at: 2016-10-03 00:18:15.468919000 Z\nupdated_at: 2016-10-03 00:18:15.468919000 Z\n"], ["whodunnit", "42"], ["created_at", "2016-10-03 00:18:16.190765"]] SQL (0.3ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 813ms (ActiveRecord: 1.8ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$O2Xbf86e7QY.l9ZitK5awuGsS4k47taYvGwjmHHeDYmNPlBcIe4eG"], ["created_at", "2016-10-03 00:18:17.008478"], ["updated_at", "2016-10-03 00:18:17.008478"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$5UiXo.pkzjib66MYIL/F4.pIo6oG2I2zYPxqNTQ7Gl5yOT/vVP1fO"], ["created_at", "2016-10-03 00:18:17.021203"], ["updated_at", "2016-10-03 00:18:17.021203"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$XjMSRRWDr5T4OW1ckCIcwO404Ns9TkpoA38u.WyhoNCSgS.qrENEC"], ["created_at", "2016-10-03 00:18:17.033651"], ["updated_at", "2016-10-03 00:18:17.033651"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$XK21Pqacyao/zmRtxSprNOYDvU5lsywZMq48RnSMhEmlGg9IUZX3O"], ["created_at", "2016-10-03 00:18:17.046138"], ["updated_at", "2016-10-03 00:18:17.046138"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$A5/vJbv3vrbpfj5jKte5L.G1GSA/1xABNvUL28t77yBIpi14fRzM2"], ["created_at", "2016-10-03 00:18:17.057745"], ["updated_at", "2016-10-03 00:18:17.057745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$.eP8XLXjwFczcpHmKi1F4OQUYLH1ey7gHAgiTWQpsZd7jH6DWP/vO"], ["created_at", "2016-10-03 00:18:17.067973"], ["updated_at", "2016-10-03 00:18:17.067973"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$t3AGBxiQMIRZwl3mlJYMWewpam.Heh6JEMwAgMe/y9CG/f9LhLzd."], ["created_at", "2016-10-03 00:18:17.079906"], ["updated_at", "2016-10-03 00:18:17.079906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$fG8uCybmOxEnEM/AuqdKKOMKAHts/gBp24hCK86OLw0gfOY4m126a"], ["created_at", "2016-10-03 00:18:17.090715"], ["updated_at", "2016-10-03 00:18:17.090715"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$.khm9KB6EoVkcAnrlAq33uC5hbyGDEhtvXysr3abkJWppZpLKIcXK"], ["created_at", "2016-10-03 00:18:17.101310"], ["updated_at", "2016-10-03 00:18:17.101310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$QXAjJFxL6L.h0ORF.TvAI.4nH.DvSitLJpnlGLZQLtljjN69J3ttm"], ["created_at", "2016-10-03 00:18:17.111277"], ["updated_at", "2016-10-03 00:18:17.111277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 23ms (Views: 14.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.5ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.0ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.9ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (17.7ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (21.7ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.7ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.5ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.2ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.9ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (24.5ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (2.7ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (19.5ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (23.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$6G5pcttqXgkqZM86lQTdDuq6SaX51G3Xe0QWu7UDkObDE.kZuZT4e"], ["created_at", "2016-10-03 00:25:58.684269"], ["updated_at", "2016-10-03 00:25:58.684269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:25:58 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.2ms) Rendered devise/sessions/new.html.erb within layouts/application (39.4ms) Completed 200 OK in 517ms (Views: 504.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:25:59 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 00:25:59.289480"], ["current_sign_in_at", "2016-10-03 00:25:59.289480"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 00:25:59.290333"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 22ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 20:25:59 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 11ms (Views: 9.9ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 20:25:59 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (9.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (12.8ms) Completed 200 OK in 52ms (Views: 25.1ms | ActiveRecord: 1.5ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 20:25:59 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (6.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 00:25:59.427874"], ["updated_at", "2016-10-03 00:25:59.427874"]] SQL (11.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 00:25:59.427874"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 144ms (ActiveRecord: 20.0ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 20:25:59 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (12.8ms) Completed 200 OK in 28ms (Views: 19.6ms | ActiveRecord: 0.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$taMMiCc3.bXCoEhBW7Wx4eML3/S26jg2COr79dPauK/nVVSNx5gWW"], ["created_at", "2016-10-03 00:25:59.624353"], ["updated_at", "2016-10-03 00:25:59.624353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:25:59 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.9ms) Rendered devise/sessions/new.html.erb within layouts/application (3.9ms) Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:25:59 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 00:25:59.647254"], ["current_sign_in_at", "2016-10-03 00:25:59.647254"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 00:25:59.648173"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 20:25:59 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 20:25:59 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.9ms) Completed 200 OK in 10ms (Views: 6.7ms | ActiveRecord: 0.5ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 20:25:59 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (6.7ms) Completed 200 OK in 15ms (Views: 8.9ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.0ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (20.9ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (18.1ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (5.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (9.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$4ftKS9MP86HIKXbxMYPvNeSf8K61ZLfyoDktnYc7cXA88tOxayquC"], ["created_at", "2016-10-03 00:26:37.635775"], ["updated_at", "2016-10-03 00:26:37.635775"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:26:37 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (2.8ms) Rendered devise/sessions/new.html.erb within layouts/application (65.5ms) Completed 200 OK in 530ms (Views: 495.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:26:38 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 00:26:38.249592"], ["current_sign_in_at", "2016-10-03 00:26:38.249592"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 00:26:38.251348"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 41ms (ActiveRecord: 1.6ms) Started GET "/" for 127.0.0.1 at 2016-10-02 20:26:38 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.6ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 17ms (Views: 15.8ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 20:26:38 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (23.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (31.9ms) Completed 200 OK in 108ms (Views: 66.3ms | ActiveRecord: 2.5ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 20:26:38 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.7ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.8ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 00:26:38.550295"], ["updated_at", "2016-10-03 00:26:38.550295"]] SQL (1.0ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 00:26:38.550295"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 221ms (ActiveRecord: 5.5ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 20:26:38 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.6ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (24.2ms) Completed 200 OK in 48ms (Views: 35.0ms | ActiveRecord: 1.1ms)  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (1.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$04ybXErKEvofurJUWJvey.ykhZDp.9eIfDyAwlFfUiRVFxIPj55AC"], ["created_at", "2016-10-03 00:26:38.866522"], ["updated_at", "2016-10-03 00:26:38.866522"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:26:38 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.6ms) Rendered devise/sessions/new.html.erb within layouts/application (8.1ms) Completed 200 OK in 15ms (Views: 12.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:26:38 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 00:26:38.910010"], ["current_sign_in_at", "2016-10-03 00:26:38.910010"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 00:26:38.911925"], ["id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 1.4ms) Started GET "/" for 127.0.0.1 at 2016-10-02 20:26:38 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.1ms) User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.4ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 20:26:38 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (13.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (14.7ms) Completed 200 OK in 24ms (Views: 19.2ms | ActiveRecord: 0.6ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 20:26:38 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (9.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (10.9ms) Completed 200 OK in 27ms (Views: 14.5ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.2ms) BEGIN User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$5CBYx8sgO8J9tLgDBvTyhuEI6MR4EsfAdkvgQmqXR2NnI.Apb6CY2"], ["created_at", "2016-10-03 00:26:39.123666"], ["updated_at", "2016-10-03 00:26:39.123666"]]  (0.5ms) COMMIT  (0.7ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.9ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.4ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (59.7ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.9ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (1.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$IPpZ2wyLgDdQ5di53IIpKeiDo2CJuKR211p8wPT/nmHy9rpLTYEjG"], ["created_at", "2016-10-03 00:26:39.396022"], ["updated_at", "2016-10-03 00:26:39.396022"]]  (0.3ms) COMMIT  (0.5ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (27.0ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.8ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN User Load (24.9ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (22.9ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$jRUqKX8I3.C0CTzntvfdpuoIkhP8T7nEOZsCQeJnfjCHyccQNHLyC"], ["created_at", "2016-10-03 00:40:07.617041"], ["updated_at", "2016-10-03 00:40:07.617041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:40:07 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.4ms) Rendered devise/sessions/new.html.erb within layouts/application (37.4ms) Completed 200 OK in 309ms (Views: 295.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:40:07 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 00:40:07.984502"], ["current_sign_in_at", "2016-10-03 00:40:07.984502"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 00:40:07.985281"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 20ms (ActiveRecord: 1.0ms) Started GET "/" for 127.0.0.1 at 2016-10-02 20:40:08 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.5ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 20:40:08 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (9.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (14.1ms) Completed 200 OK in 46ms (Views: 26.8ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 20:40:08 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (1.8ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (6.5ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 00:40:08.130673"], ["updated_at", "2016-10-03 00:40:08.130673"]] SQL (13.4ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 00:40:08.130673"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 137ms (ActiveRecord: 23.9ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 20:40:08 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (13.3ms) Completed 200 OK in 27ms (Views: 19.2ms | ActiveRecord: 0.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$VGekROX5lGPeFvYWmYPQ0uBUxrdim5vDn.6Ksm2imI7hTSFSB3mFS"], ["created_at", "2016-10-03 00:40:08.319311"], ["updated_at", "2016-10-03 00:40:08.319311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:40:08 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (3.8ms) Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:40:08 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 00:40:08.342515"], ["current_sign_in_at", "2016-10-03 00:40:08.342515"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 00:40:08.343665"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 20:40:08 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 20:40:08 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (5.4ms) Completed 200 OK in 11ms (Views: 7.3ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 20:40:08 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.3ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.5ms) Completed 200 OK in 14ms (Views: 6.6ms | ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (6.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$KGejm0RAwrt0zAIKoqalbedchGqXk4oseVg49LYLpcrLO55IFtTjC"], ["created_at", "2016-10-03 00:40:08.462671"], ["updated_at", "2016-10-03 00:40:08.462671"]]  (4.6ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:40:12 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.2ms) Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 20:40:12 -0400 Started GET "/assets/application-bf6cf518e8dc267eb1ffee83717bab5787da4a8f3972201fb4b2332e39cd089e.js" for 127.0.0.1 at 2016-10-02 20:40:12 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:40:12 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 00:40:12.774333"], ["current_sign_in_at", "2016-10-03 00:40:12.774333"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 00:40:12.775241"], ["id", 3]]  (6.0ms) COMMIT Redirected to http://127.0.0.1:61884/ Completed 302 Found in 16ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2016-10-02 20:40:12 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.1ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 00:40:12.936820"], ["updated_at", "2016-10-03 00:40:12.936820"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 00:40:12.936820"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 20:40:12 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (18.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.5ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (18.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (28.6ms) Completed 200 OK in 81ms (Views: 19.9ms | ActiveRecord: 40.0ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 20:40:13 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (7.2ms) Completed 200 OK in 25ms (Views: 11.4ms | ActiveRecord: 2.0ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 20:40:15 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "stripe_token"=>"tok_190KV9GYKt5n7d1YJ2zz9cSl"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.3ms) Completed 200 OK in 12ms (Views: 3.1ms | ActiveRecord: 0.9ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.0ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.9ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (34.8ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$qdXbAHbauNq1QPm0hTo/1u9Aa/8VVLv3Sn49Oh5R4KqAc6oFMmhmG"], ["created_at", "2016-10-03 00:40:22.711410"], ["updated_at", "2016-10-03 00:40:22.711410"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:40:22 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.8ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:40:23 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 00:40:23.135901"], ["current_sign_in_at", "2016-10-03 00:40:23.135901"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 00:40:23.136683"], ["id", 1]]  (6.1ms) COMMIT Redirected to http://127.0.0.1:61884/ Completed 302 Found in 14ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2016-10-02 20:40:23 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (6.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 00:40:23.271423"], ["updated_at", "2016-10-03 00:40:23.271423"]] SQL (0.9ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 00:40:23.271423"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 20:40:23 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.5ms) Completed 200 OK in 7ms (Views: 3.6ms | ActiveRecord: 1.4ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 20:40:23 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.1ms) Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 20:40:25 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"tok_190KVJGYKt5n7d1Yc4M0odbB"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 7ms (Views: 2.5ms | ActiveRecord: 0.7ms)  (0.3ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (34.9ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN User Load (25.9ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (23.0ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$MqDYmRO7BcH7qVYK5uCS..h1N5idnwlzmJIkOKeva8bYAVReINQ7."], ["created_at", "2016-10-03 00:41:14.246097"], ["updated_at", "2016-10-03 00:41:14.246097"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:41:14 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (39.3ms) Completed 200 OK in 309ms (Views: 295.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:41:14 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 00:41:14.615608"], ["current_sign_in_at", "2016-10-03 00:41:14.615608"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 00:41:14.616369"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 19ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 20:41:14 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.4ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 31ms (Views: 30.7ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 20:41:14 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (8.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (12.6ms) Completed 200 OK in 47ms (Views: 25.2ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 20:41:14 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (1.9ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (6.0ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 00:41:14.758488"], ["updated_at", "2016-10-03 00:41:14.758488"]] SQL (12.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 00:41:14.758488"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (1.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 139ms (ActiveRecord: 23.2ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 20:41:14 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (13.5ms) Completed 200 OK in 28ms (Views: 19.9ms | ActiveRecord: 0.7ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$DVYCmxqxK8bZBakAo8j2yuHg.fHAWYNBIKykOuEyl8Rg5nCGvlSfm"], ["created_at", "2016-10-03 00:41:14.949716"], ["updated_at", "2016-10-03 00:41:14.949716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:41:14 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (4.4ms) Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:41:14 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 00:41:14.973394"], ["current_sign_in_at", "2016-10-03 00:41:14.973394"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 00:41:14.974499"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 20:41:14 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 20:41:14 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (5.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (6.5ms) Completed 200 OK in 12ms (Views: 8.1ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 20:41:15 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.9ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.9ms) Completed 200 OK in 17ms (Views: 11.0ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$CJAZSliV0624WjhS2iSyTu8hUjBEFWBREfUd0330uJgaB7PZbeQ.2"], ["created_at", "2016-10-03 00:41:15.078918"], ["updated_at", "2016-10-03 00:41:15.078918"]]  (5.9ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:41:17 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.7ms) Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 20:41:17 -0400 Started GET "/assets/application-bf6cf518e8dc267eb1ffee83717bab5787da4a8f3972201fb4b2332e39cd089e.js" for 127.0.0.1 at 2016-10-02 20:41:17 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:41:18 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (5.9ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 00:41:18.532246"], ["current_sign_in_at", "2016-10-03 00:41:18.532246"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 00:41:18.533094"], ["id", 3]]  (11.2ms) COMMIT Redirected to http://127.0.0.1:62459/ Completed 302 Found in 28ms (ActiveRecord: 18.1ms) Started GET "/" for 127.0.0.1 at 2016-10-02 20:41:18 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 00:41:18.700396"], ["updated_at", "2016-10-03 00:41:18.700396"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 00:41:18.700396"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.5ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 20:41:18 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (19.5ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (13.5ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (22.9ms) Completed 200 OK in 74ms (Views: 18.9ms | ActiveRecord: 36.1ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 20:41:18 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (7.3ms) Completed 200 OK in 25ms (Views: 11.4ms | ActiveRecord: 2.0ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 20:41:22 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "stripe_token"=>"tok_190KWDGYKt5n7d1YNtMB8Yyq"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.4ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.3ms) Completed 200 OK in 11ms (Views: 3.0ms | ActiveRecord: 1.0ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (63.3ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$iTRRwy9ms7oZ2n0lEKsC8.m2gThwvu2PGmSReanjpK0sgfXEDa9vW"], ["created_at", "2016-10-03 00:41:28.617311"], ["updated_at", "2016-10-03 00:41:28.617311"]]  (0.2ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:41:28 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:41:29 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 00:41:29.097349"], ["current_sign_in_at", "2016-10-03 00:41:29.097349"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 00:41:29.098110"], ["id", 1]]  (6.0ms) COMMIT Redirected to http://127.0.0.1:62459/ Completed 302 Found in 14ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2016-10-02 20:41:29 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.6ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 00:41:29.308591"], ["updated_at", "2016-10-03 00:41:29.308591"]] SQL (1.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 00:41:29.308591"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 20:41:29 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.6ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (1.5ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (1.5ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (4.0ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (13.3ms) Completed 200 OK in 23ms (Views: 11.4ms | ActiveRecord: 8.0ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 20:41:29 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.3ms) Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 20:41:31 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"tok_190KWNGYKt5n7d1YQQHJr4GL"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.1ms) Completed 200 OK in 8ms (Views: 2.7ms | ActiveRecord: 0.9ms)  (0.3ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (50.2ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN User Load (24.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (23.0ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$mMfFVPmocnoTACKp3w1Vi.mShxp/zVyqiHi6XyLaIhiFodzM8/Yju"], ["created_at", "2016-10-03 00:45:38.206137"], ["updated_at", "2016-10-03 00:45:38.206137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:45:38 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.2ms) Rendered devise/sessions/new.html.erb within layouts/application (38.0ms) Completed 200 OK in 304ms (Views: 289.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:45:38 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 00:45:38.571901"], ["current_sign_in_at", "2016-10-03 00:45:38.571901"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 00:45:38.572627"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 19ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 20:45:38 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 20:45:38 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (9.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (12.7ms) Completed 200 OK in 50ms (Views: 26.8ms | ActiveRecord: 1.9ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 20:45:38 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (2.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (6.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 00:45:38.715702"], ["updated_at", "2016-10-03 00:45:38.715702"]] SQL (13.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 00:45:38.715702"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 137ms (ActiveRecord: 24.0ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 20:45:38 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (15.8ms) Completed 200 OK in 30ms (Views: 21.9ms | ActiveRecord: 0.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$uuvx1bjafQh/ZiJvpG/9Mu1K3l5E3/KSccx5En1n0w7c8JHS69jfm"], ["created_at", "2016-10-03 00:45:38.905316"], ["updated_at", "2016-10-03 00:45:38.905316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:45:38 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.8ms) Rendered devise/sessions/new.html.erb within layouts/application (3.4ms) Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:45:38 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 00:45:38.927434"], ["current_sign_in_at", "2016-10-03 00:45:38.927434"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 00:45:38.928399"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 20:45:38 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 20:45:38 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (5.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (6.4ms) Completed 200 OK in 11ms (Views: 8.4ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 20:45:38 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (5.4ms) Completed 200 OK in 12ms (Views: 7.0ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$YoLY.f.3HWp28cOAPyU/7.p5cmqyzFIDwnRV2AeJEEX7DKoKcSWly"], ["created_at", "2016-10-03 00:45:39.034829"], ["updated_at", "2016-10-03 00:45:39.034829"]]  (6.0ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:45:42 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.6ms) Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 20:45:42 -0400 Started GET "/assets/application-bf6cf518e8dc267eb1ffee83717bab5787da4a8f3972201fb4b2332e39cd089e.js" for 127.0.0.1 at 2016-10-02 20:45:42 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:45:42 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 00:45:42.852991"], ["current_sign_in_at", "2016-10-03 00:45:42.852991"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 00:45:42.853805"], ["id", 3]]  (5.6ms) COMMIT Redirected to http://127.0.0.1:63265/ Completed 302 Found in 14ms (ActiveRecord: 6.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 20:45:42 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 00:45:43.010919"], ["updated_at", "2016-10-03 00:45:43.010919"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 00:45:43.010919"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 20:45:43 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (14.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.5ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (8.0ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (18.2ms) Completed 200 OK in 68ms (Views: 23.3ms | ActiveRecord: 25.6ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 20:45:43 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (6.9ms) Completed 200 OK in 24ms (Views: 11.2ms | ActiveRecord: 1.8ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.2ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (35.7ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$u/162B4bFydWb6UWnV.5z.I/GZ9YoQi3jrO0NW/rB3YeuIetr20Rm"], ["created_at", "2016-10-03 00:45:47.574825"], ["updated_at", "2016-10-03 00:45:47.574825"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:45:47 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:45:47 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 00:45:47.996182"], ["current_sign_in_at", "2016-10-03 00:45:47.996182"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 00:45:47.996817"], ["id", 1]]  (6.0ms) COMMIT Redirected to http://127.0.0.1:63265/ Completed 302 Found in 13ms (ActiveRecord: 7.0ms) Started GET "/" for 127.0.0.1 at 2016-10-02 20:45:48 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.1ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (6.0ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 00:45:48.121427"], ["updated_at", "2016-10-03 00:45:48.121427"]] SQL (5.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 00:45:48.121427"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 20:45:48 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (1.8ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.6ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (4.7ms) Completed 200 OK in 16ms (Views: 5.6ms | ActiveRecord: 3.5ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 20:45:48 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms)  (0.3ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (86.7ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$KPQRWVPMewZxeERfcuCNOOe98Y6SUguke9IChdpPEuBE6/BaJf8qG"], ["created_at", "2016-10-03 00:46:32.535409"], ["updated_at", "2016-10-03 00:46:32.535409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:46:32 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.0ms) Rendered devise/sessions/new.html.erb within layouts/application (26.4ms) Completed 200 OK in 265ms (Views: 248.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:46:32 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 00:46:32.833419"], ["current_sign_in_at", "2016-10-03 00:46:32.833419"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 00:46:32.834218"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 20ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 20:46:32 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.4ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 32ms (Views: 30.9ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 20:46:32 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (9.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (14.2ms) Completed 200 OK in 48ms (Views: 29.2ms | ActiveRecord: 1.4ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 20:46:32 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 00:46:32.975286"], ["updated_at", "2016-10-03 00:46:32.975286"]] SQL (0.6ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 00:46:32.975286"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 103ms (ActiveRecord: 3.7ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 20:46:33 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (12.2ms) Completed 200 OK in 26ms (Views: 17.6ms | ActiveRecord: 0.5ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$tyGFbWV3n8e/EfVNLiJGRuJP/zeK5QEOKX4sFdMxzo6uh8sgOH48u"], ["created_at", "2016-10-03 00:46:33.129828"], ["updated_at", "2016-10-03 00:46:33.129828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:46:33 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.0ms) Rendered devise/sessions/new.html.erb within layouts/application (4.8ms) Completed 200 OK in 10ms (Views: 8.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:46:33 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 00:46:33.156401"], ["current_sign_in_at", "2016-10-03 00:46:33.156401"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 00:46:33.157544"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 20:46:33 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 20:46:33 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (5.0ms) Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 20:46:33 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.4ms) Completed 200 OK in 12ms (Views: 6.0ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$h8vUy2.A4ocWWKmFPdshU.k/n6U.bgCMDVuuNYknjc5S7RwhqhBFO"], ["created_at", "2016-10-03 00:46:33.264650"], ["updated_at", "2016-10-03 00:46:33.264650"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:46:35 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.3ms) Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 20:46:35 -0400 Started GET "/assets/application-bf6cf518e8dc267eb1ffee83717bab5787da4a8f3972201fb4b2332e39cd089e.js" for 127.0.0.1 at 2016-10-02 20:46:35 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:46:36 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 00:46:36.412952"], ["current_sign_in_at", "2016-10-03 00:46:36.412952"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 00:46:36.413737"], ["id", 3]]  (5.8ms) COMMIT Redirected to http://127.0.0.1:63843/ Completed 302 Found in 15ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 20:46:36 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 00:46:36.569305"], ["updated_at", "2016-10-03 00:46:36.569305"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 00:46:36.569305"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 20:46:36 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.5ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (10.5ms) Completed 200 OK in 40ms (Views: 19.7ms | ActiveRecord: 3.6ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 20:46:36 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (2.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (5.5ms) Completed 200 OK in 23ms (Views: 9.8ms | ActiveRecord: 2.0ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 20:46:39 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "stripe_token"=>"tok_190KbLGYKt5n7d1YSyqbOe3P"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.3ms) Completed 200 OK in 13ms (Views: 3.3ms | ActiveRecord: 1.1ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.0ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (40.7ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$WBBT6Hq.AHti.QYhzZXB8uU.eRtG5hmR7u3lyAwuMHZOLExJ8cME."], ["created_at", "2016-10-03 00:46:44.182340"], ["updated_at", "2016-10-03 00:46:44.182340"]]  (0.4ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:46:44 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:46:44 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 00:46:44.605991"], ["current_sign_in_at", "2016-10-03 00:46:44.605991"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 00:46:44.606636"], ["id", 1]]  (6.1ms) COMMIT Redirected to http://127.0.0.1:63843/ Completed 302 Found in 14ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2016-10-02 20:46:44 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (5.9ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 00:46:44.734244"], ["updated_at", "2016-10-03 00:46:44.734244"]] SQL (0.5ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 00:46:44.734244"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 20:46:44 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.3ms) Completed 200 OK in 7ms (Views: 3.2ms | ActiveRecord: 1.3ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 20:46:44 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (1.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (3.0ms) Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.5ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 20:46:47 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"tok_190KbTGYKt5n7d1YzB7dRybT"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.1ms) Completed 200 OK in 7ms (Views: 2.7ms | ActiveRecord: 0.7ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (39.9ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$msPF5ZFvywWaN4ADVVu4b.bI18TWgsS5ylkZp2I.WldwsG0hGagaC"], ["created_at", "2016-10-03 00:47:04.086515"], ["updated_at", "2016-10-03 00:47:04.086515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:47:04 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (26.6ms) Completed 200 OK in 254ms (Views: 241.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:47:04 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 00:47:04.371946"], ["current_sign_in_at", "2016-10-03 00:47:04.371946"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 00:47:04.372680"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 20:47:04 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 32ms (Views: 30.6ms | ActiveRecord: 0.5ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 20:47:04 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (9.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (13.2ms) Completed 200 OK in 48ms (Views: 28.3ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 20:47:04 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.9ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 00:47:04.511534"], ["updated_at", "2016-10-03 00:47:04.511534"]] SQL (0.8ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 00:47:04.511534"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 108ms (ActiveRecord: 4.0ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 20:47:04 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (12.0ms) Completed 200 OK in 27ms (Views: 17.6ms | ActiveRecord: 0.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$ASLISUSLExN/LVPLA89ppOk5boJFWBcO/mLYyAyzQIGy3bF5r32u2"], ["created_at", "2016-10-03 00:47:04.675656"], ["updated_at", "2016-10-03 00:47:04.675656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:47:04 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.8ms) Rendered devise/sessions/new.html.erb within layouts/application (4.1ms) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:47:04 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 00:47:04.700519"], ["current_sign_in_at", "2016-10-03 00:47:04.700519"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 00:47:04.701209"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 20:47:04 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 20:47:04 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (5.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (6.4ms) Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 20:47:04 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.7ms) Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$k6HXKT04hO9VxNwtCm4HweLmvJdlqSwC0wuxdbOjAdhTgET8NjDHe"], ["created_at", "2016-10-03 00:47:04.801831"], ["updated_at", "2016-10-03 00:47:04.801831"]]  (5.7ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:47:07 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.7ms) Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 20:47:07 -0400 Started GET "/assets/application-bf6cf518e8dc267eb1ffee83717bab5787da4a8f3972201fb4b2332e39cd089e.js" for 127.0.0.1 at 2016-10-02 20:47:07 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:47:07 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 00:47:07.961220"], ["current_sign_in_at", "2016-10-03 00:47:07.961220"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 00:47:07.961970"], ["id", 3]]  (5.7ms) COMMIT Redirected to http://127.0.0.1:64410/ Completed 302 Found in 15ms (ActiveRecord: 6.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 20:47:07 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 00:47:08.113218"], ["updated_at", "2016-10-03 00:47:08.113218"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 00:47:08.113218"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 20:47:08 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.6ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (10.7ms) Completed 200 OK in 43ms (Views: 21.0ms | ActiveRecord: 4.2ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 20:47:08 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (2.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (5.8ms) Completed 200 OK in 23ms (Views: 10.2ms | ActiveRecord: 2.2ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 20:47:11 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "stripe_token"=>"tok_190KbqGYKt5n7d1Y68zt4IRb"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.4ms) Completed 200 OK in 11ms (Views: 3.0ms | ActiveRecord: 0.9ms)  (0.6ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.1ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (34.9ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$Bo8DKk5//bFv53JHxVtr0.iOjA9v66bKxlHYTa4RbHHpKdUF2VNJu"], ["created_at", "2016-10-03 00:47:17.912419"], ["updated_at", "2016-10-03 00:47:17.912419"]]  (0.2ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:47:17 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:47:18 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 00:47:18.334574"], ["current_sign_in_at", "2016-10-03 00:47:18.334574"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 00:47:18.335233"], ["id", 1]]  (5.5ms) COMMIT Redirected to http://127.0.0.1:64410/ Completed 302 Found in 13ms (ActiveRecord: 6.5ms) Started GET "/" for 127.0.0.1 at 2016-10-02 20:47:18 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.5ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 00:47:18.483986"], ["updated_at", "2016-10-03 00:47:18.483986"]] SQL (0.5ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 00:47:18.483986"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 20:47:18 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.6ms) Completed 200 OK in 7ms (Views: 3.5ms | ActiveRecord: 1.5ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 20:47:18 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.5ms) Completed 200 OK in 6ms (Views: 3.1ms | ActiveRecord: 0.5ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 20:47:20 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"tok_190Kc0GYKt5n7d1YMxjNMt7Y"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.1ms) Completed 200 OK in 7ms (Views: 2.5ms | ActiveRecord: 0.8ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (38.9ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (1.5ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$uNqeE4.jZ/QdXB6YySEeHecp4ta//8Ptsb0OelsmHY5PzUKx29Atm"], ["created_at", "2016-10-03 00:48:17.878662"], ["updated_at", "2016-10-03 00:48:17.878662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:48:17 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (27.6ms) Completed 200 OK in 264ms (Views: 249.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:48:18 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 00:48:18.175612"], ["current_sign_in_at", "2016-10-03 00:48:18.175612"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 00:48:18.176434"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 19ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 20:48:18 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 33ms (Views: 32.7ms | ActiveRecord: 0.4ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 20:48:18 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (7.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (11.0ms) Completed 200 OK in 42ms (Views: 23.2ms | ActiveRecord: 1.4ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 20:48:18 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 74ms (ActiveRecord: 2.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$ugzGVW5hpCUCCM/sKoxSxOaT3SeBPjivmXc0ZtW3O4I.F/aGpOBOO"], ["created_at", "2016-10-03 00:48:18.407818"], ["updated_at", "2016-10-03 00:48:18.407818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:48:18 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (4.5ms) Completed 200 OK in 15ms (Views: 13.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:48:18 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 00:48:18.442156"], ["current_sign_in_at", "2016-10-03 00:48:18.442156"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 00:48:18.442885"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET "/" for 127.0.0.1 at 2016-10-02 20:48:18 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 20:48:18 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (7.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (8.0ms) Completed 200 OK in 13ms (Views: 10.9ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 20:48:18 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (9.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (10.5ms) Completed 200 OK in 21ms (Views: 13.9ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$n0mmUxkzOeESmItPe/L0Luy6EH.JYsJbh82Wf23mdag9xg9UEaeFS"], ["created_at", "2016-10-03 00:48:18.574669"], ["updated_at", "2016-10-03 00:48:18.574669"]]  (0.4ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:48:21 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.5ms) Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 20:48:21 -0400 Started GET "/assets/application-bf6cf518e8dc267eb1ffee83717bab5787da4a8f3972201fb4b2332e39cd089e.js" for 127.0.0.1 at 2016-10-02 20:48:21 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:48:22 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.2ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 00:48:22.262316"], ["current_sign_in_at", "2016-10-03 00:48:22.262316"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 00:48:22.263195"], ["id", 3]]  (11.4ms) COMMIT Redirected to http://127.0.0.1:65036/ Completed 302 Found in 21ms (ActiveRecord: 12.6ms) Started GET "/" for 127.0.0.1 at 2016-10-02 20:48:22 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 00:48:22.425567"], ["updated_at", "2016-10-03 00:48:22.425567"]] SQL (0.5ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 00:48:22.425567"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 20:48:22 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (13.9ms) Completed 200 OK in 41ms (Views: 22.3ms | ActiveRecord: 4.0ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 20:48:22 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (6.9ms) Completed 200 OK in 25ms (Views: 10.6ms | ActiveRecord: 2.1ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 20:48:25 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"tok_190Kd3GYKt5n7d1YculEXiTB"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.1ms) Completed 200 OK in 10ms (Views: 2.7ms | ActiveRecord: 0.8ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.1ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (33.0ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.7ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$E9F7HwUAnjnk0jNuatMRsOUAmaTikMpPSvY0M/R5PvpiztPu0j1YS"], ["created_at", "2016-10-03 00:48:31.992198"], ["updated_at", "2016-10-03 00:48:31.992198"]]  (0.2ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:48:32 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.2ms) Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:48:32 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 00:48:32.395762"], ["current_sign_in_at", "2016-10-03 00:48:32.395762"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 00:48:32.396540"], ["id", 1]]  (5.5ms) COMMIT Redirected to http://127.0.0.1:65036/ Completed 302 Found in 13ms (ActiveRecord: 6.5ms) Started GET "/" for 127.0.0.1 at 2016-10-02 20:48:32 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (6.1ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 00:48:32.518025"], ["updated_at", "2016-10-03 00:48:32.518025"]] SQL (5.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 00:48:32.518025"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 20:48:32 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (3.1ms) Completed 200 OK in 9ms (Views: 4.7ms | ActiveRecord: 1.4ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 20:48:32 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.1ms) Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.6ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 20:48:34 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"tok_190KdCGYKt5n7d1Y9B9hgLDf"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.2ms) Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.7ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (40.0ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$s59PNaCLz1Z8V0S/H/moYOIkrnKcDIfjbPl13rw4Xf9QHjgw9V1Ju"], ["created_at", "2016-10-03 00:55:29.953637"], ["updated_at", "2016-10-03 00:55:29.953637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:55:29 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.5ms) Rendered devise/sessions/new.html.erb within layouts/application (27.1ms) Completed 200 OK in 268ms (Views: 252.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:55:30 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 00:55:30.254156"], ["current_sign_in_at", "2016-10-03 00:55:30.254156"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 00:55:30.254879"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 20:55:30 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.4ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 20:55:30 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (8.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (12.4ms) Completed 200 OK in 40ms (Views: 24.2ms | ActiveRecord: 1.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 20:55:30 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 00:55:30.361307"], ["updated_at", "2016-10-03 00:55:30.361307"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 00:55:30.361307"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 545ms (ActiveRecord: 3.2ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 20:55:30 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (7.0ms) Completed 200 OK in 15ms (Views: 11.3ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$kHCXFSWQiA8njAIZoufUceBSM0aKz.UjpTJCsu/G4nck6tG3lwpsW"], ["created_at", "2016-10-03 00:55:30.935918"], ["updated_at", "2016-10-03 00:55:30.935918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:55:30 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:55:30 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 00:55:30.949958"], ["current_sign_in_at", "2016-10-03 00:55:30.949958"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 00:55:30.950643"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 20:55:30 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.1ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 20:55:30 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.7ms) Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 20:55:30 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.7ms) Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$teyu90IU7q6Kg5tqq5o/0O20H0hWV4hrWssrQYtxRtPGKS9Z8yKRC"], ["created_at", "2016-10-03 00:55:31.037025"], ["updated_at", "2016-10-03 00:55:31.037025"]]  (0.4ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:55:34 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (3.1ms) Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 20:55:34 -0400 Started GET "/assets/application-bf6cf518e8dc267eb1ffee83717bab5787da4a8f3972201fb4b2332e39cd089e.js" for 127.0.0.1 at 2016-10-02 20:55:34 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:55:34 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 00:55:34.750923"], ["current_sign_in_at", "2016-10-03 00:55:34.750923"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 00:55:34.751838"], ["id", 3]]  (6.2ms) COMMIT Redirected to http://127.0.0.1:49596/ Completed 302 Found in 18ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2016-10-02 20:55:34 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.1ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 00:55:34.910545"], ["updated_at", "2016-10-03 00:55:34.910545"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 00:55:34.910545"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 20:55:34 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (21.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.6ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (13.9ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (25.1ms) Completed 200 OK in 77ms (Views: 23.5ms | ActiveRecord: 38.6ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 20:55:35 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (7.2ms) Completed 200 OK in 30ms (Views: 11.8ms | ActiveRecord: 3.5ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 20:55:37 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "stripe_token"=>"tok_190Kk1GYKt5n7d1YcH5WwmM1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.2ms) Completed 200 OK in 13ms (Views: 2.9ms | ActiveRecord: 0.9ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.1ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (32.9ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$r0s20TNolTP7XAzCO9whCe/4xK8h.9yFIe1OqQtozFGUJ4LFFZxY6"], ["created_at", "2016-10-03 00:55:44.360584"], ["updated_at", "2016-10-03 00:55:44.360584"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:55:44 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.4ms) Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:55:44 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 00:55:44.715124"], ["current_sign_in_at", "2016-10-03 00:55:44.715124"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 00:55:44.715852"], ["id", 1]]  (6.1ms) COMMIT Redirected to http://127.0.0.1:49596/ Completed 302 Found in 15ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2016-10-02 20:55:44 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (5.1ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 00:55:44.856974"], ["updated_at", "2016-10-03 00:55:44.856974"]] SQL (0.6ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 00:55:44.856974"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 20:55:44 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (3.0ms) Completed 200 OK in 9ms (Views: 4.1ms | ActiveRecord: 1.6ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 20:55:45 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (1.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.6ms) Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.5ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 20:55:46 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"tok_190KkAGYKt5n7d1Y3cA4IWpY"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.3ms) Completed 200 OK in 8ms (Views: 2.9ms | ActiveRecord: 1.0ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (39.9ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$bTyge6BIcBrUJPlq/I62j.vPeshl99kPmOjhKx.fVh3CyAp9YPxU."], ["created_at", "2016-10-03 00:57:38.932340"], ["updated_at", "2016-10-03 00:57:38.932340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:57:38 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (28.6ms) Completed 200 OK in 273ms (Views: 258.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:57:39 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 00:57:39.238748"], ["current_sign_in_at", "2016-10-03 00:57:39.238748"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 00:57:39.239485"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 20:57:39 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 20:57:39 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (9.6ms) Completed 200 OK in 39ms (Views: 22.4ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 20:57:39 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 00:57:39.344984"], ["updated_at", "2016-10-03 00:57:39.344984"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 00:57:39.344984"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 890ms (ActiveRecord: 3.2ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 20:57:40 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (6.8ms) Completed 200 OK in 15ms (Views: 10.8ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$e5IUUaSoppOmQIs.QYErLeaaNyc72vEXbcdCpPba439zHbZJVyORW"], ["created_at", "2016-10-03 00:57:40.263270"], ["updated_at", "2016-10-03 00:57:40.263270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:57:40 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 20:57:40 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 00:57:40.279127"], ["current_sign_in_at", "2016-10-03 00:57:40.279127"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 00:57:40.279887"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 20:57:40 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 20:57:40 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.0ms) Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 20:57:40 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.8ms) Completed 200 OK in 12ms (Views: 6.5ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.0ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (0.7ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (23.6ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL  (0.3ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (17.9ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (25.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (29.0ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$PcUIihXjsImX17whcRZlYOE7J7N7KEvjkAQaSIHOLXLW64i8QsFoC"], ["created_at", "2016-10-03 01:01:30.656899"], ["updated_at", "2016-10-03 01:01:30.656899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:01:30 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (41.1ms) Completed 200 OK in 319ms (Views: 304.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:01:31 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:01:31.039724"], ["current_sign_in_at", "2016-10-03 01:01:31.039724"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:01:31.040512"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 20ms (ActiveRecord: 1.0ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:01:31 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 21:01:31 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (7.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (11.5ms) Completed 200 OK in 42ms (Views: 24.4ms | ActiveRecord: 1.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 21:01:31 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (2.0ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 01:01:31.156504"], ["updated_at", "2016-10-03 01:01:31.156504"]] SQL (19.7ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 01:01:31.156504"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 475ms (ActiveRecord: 24.3ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 21:01:31 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (9.3ms) Completed 200 OK in 20ms (Views: 14.7ms | ActiveRecord: 0.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (32.5ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$/1FC6i6yxxGXJFt2ZJjKvupSYdkFYWgBg6rfMBM20qMASXC7UIFgS"], ["created_at", "2016-10-03 01:01:31.663212"], ["updated_at", "2016-10-03 01:01:31.663212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:01:31 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.5ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:01:31 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:01:31.713108"], ["current_sign_in_at", "2016-10-03 01:01:31.713108"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:01:31.713894"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:01:31 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.1ms) User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.4ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 21:01:31 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.8ms) Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 21:01:31 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.2ms) Completed 200 OK in 11ms (Views: 5.6ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.5ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.3ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.0ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (18.1ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (22.0ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$fsvin2g0zBsorBxgloAGXut6a.gDKBxry3lc5/80tBfcojgyt3OzW"], ["created_at", "2016-10-03 01:04:16.555788"], ["updated_at", "2016-10-03 01:04:16.555788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:04:16 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (24.2ms) Completed 200 OK in 235ms (Views: 223.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:04:16 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:04:16.824718"], ["current_sign_in_at", "2016-10-03 01:04:16.824718"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:04:16.825515"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:04:16 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 21:04:16 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (9.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (15.1ms) Completed 200 OK in 48ms (Views: 30.9ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 21:04:16 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 01:04:16.943096"], ["updated_at", "2016-10-03 01:04:16.943096"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 01:04:16.943096"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 1122ms (ActiveRecord: 3.2ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 21:04:18 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (6.4ms) Completed 200 OK in 15ms (Views: 11.3ms | ActiveRecord: 0.4ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$SlaSmkWCZX3a20BL7gbAY.hfBfWJhIiPwBbakW2LuooUMxVmbp2sS"], ["created_at", "2016-10-03 01:04:18.092965"], ["updated_at", "2016-10-03 01:04:18.092965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:04:18 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.4ms) Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:04:18 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:04:18.108799"], ["current_sign_in_at", "2016-10-03 01:04:18.108799"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:04:18.109417"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:04:18 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.1ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 21:04:18 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (2.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.2ms) Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 21:04:18 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.6ms) Completed 200 OK in 12ms (Views: 6.3ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.5ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.3ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.1ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (46.5ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL  (0.3ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (47.0ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$jVaOL5.UzT5pzDi.HD7k3OWJ3Ni6S.yxzAcgf1zVnRcBF6LlmnPJy"], ["created_at", "2016-10-03 01:15:47.693225"], ["updated_at", "2016-10-03 01:15:47.693225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:15:47 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (27.0ms) Completed 200 OK in 237ms (Views: 225.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:15:47 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:15:47.962707"], ["current_sign_in_at", "2016-10-03 01:15:47.962707"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:15:47.963548"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 20ms (ActiveRecord: 1.0ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:15:47 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 21:15:47 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (9.3ms) Completed 200 OK in 41ms (Views: 22.1ms | ActiveRecord: 1.7ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 21:15:48 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 01:15:48.069576"], ["updated_at", "2016-10-03 01:15:48.069576"]] SQL (0.6ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 01:15:48.069576"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 421ms (ActiveRecord: 3.5ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 21:15:48 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (7.8ms) Completed 200 OK in 17ms (Views: 12.4ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$c.kDSN.aeEZDTtgjdG36Yu2yvg.qAqbNCiHgiVTOTiyYY/5WVyRqK"], ["created_at", "2016-10-03 01:15:48.520457"], ["updated_at", "2016-10-03 01:15:48.520457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:15:48 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.4ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:15:48 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:15:48.537200"], ["current_sign_in_at", "2016-10-03 01:15:48.537200"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:15:48.537893"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:15:48 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 21:15:48 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (2.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.3ms) Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 21:15:48 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.8ms) Completed 200 OK in 10ms (Views: 5.1ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK  (0.5ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.3ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.0ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (24.7ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (1.7ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (18.0ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (11.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$t3UEQQGND9V1jsqr4luaNu2fEnr9ywXQ3MEtwzbBUkUrzOBSffIPa"], ["created_at", "2016-10-03 01:20:01.899371"], ["updated_at", "2016-10-03 01:20:01.899371"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:20:01 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (26.9ms) Completed 200 OK in 245ms (Views: 232.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:20:02 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:20:02.191575"], ["current_sign_in_at", "2016-10-03 01:20:02.191575"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:20:02.192322"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 21ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:20:02 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 21:20:02 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (7.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (10.4ms) Completed 200 OK in 37ms (Views: 21.6ms | ActiveRecord: 1.1ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 21:20:02 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 01:20:02.298558"], ["updated_at", "2016-10-03 01:20:02.298558"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 01:20:02.298558"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 1075ms (ActiveRecord: 3.3ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 21:20:03 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (8.0ms) Completed 200 OK in 17ms (Views: 12.7ms | ActiveRecord: 0.5ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$VPHd6M9YSxLDWn0EDVzOruSugLZ/cd5SZka3OR/9wrN3Kba9B2yPa"], ["created_at", "2016-10-03 01:20:03.404740"], ["updated_at", "2016-10-03 01:20:03.404740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:20:03 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.6ms) Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:20:03 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:20:03.421294"], ["current_sign_in_at", "2016-10-03 01:20:03.421294"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:20:03.421939"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:20:03 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 21:20:03 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.5ms) Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 21:20:03 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.8ms) Completed 200 OK in 12ms (Views: 6.4ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$.JxuSHuY8B85ZyXULSPbaulayHo1Y4YWXTdUY8lIIqUjuT2bZvWEq"], ["created_at", "2016-10-03 01:20:03.499227"], ["updated_at", "2016-10-03 01:20:03.499227"]]  (0.4ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:20:07 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (3.1ms) Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 21:20:07 -0400 Started GET "/assets/application-bf6cf518e8dc267eb1ffee83717bab5787da4a8f3972201fb4b2332e39cd089e.js" for 127.0.0.1 at 2016-10-02 21:20:07 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:20:07 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:20:07.687660"], ["current_sign_in_at", "2016-10-03 01:20:07.687660"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:20:07.688693"], ["id", 3]]  (5.8ms) COMMIT Redirected to http://127.0.0.1:52155/ Completed 302 Found in 17ms (ActiveRecord: 7.0ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:20:07 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.1ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 01:20:08.237734"], ["updated_at", "2016-10-03 01:20:08.237734"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 01:20:08.237734"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.6ms) COMMIT  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.1ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (37.3ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$kwptOX69A3zRduVmJHuAx.Pk0VJmW1bu5P2DaNLyda2iAGmnGCbo."], ["created_at", "2016-10-03 01:20:12.758790"], ["updated_at", "2016-10-03 01:20:12.758790"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:20:12 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.5ms) Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:20:13 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:20:13.146197"], ["current_sign_in_at", "2016-10-03 01:20:13.146197"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:20:13.147030"], ["id", 1]]  (6.0ms) COMMIT Redirected to http://127.0.0.1:52155/ Completed 302 Found in 14ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:20:13 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (39.9ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$9PecSN9twz7N72ngRcMXuOOASvm0YaZQCiVJWXk0huLdHNiNLJ.pi"], ["created_at", "2016-10-03 01:31:44.646161"], ["updated_at", "2016-10-03 01:31:44.646161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:31:44 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.6ms) Rendered devise/sessions/new.html.erb within layouts/application (25.4ms) Completed 200 OK in 401ms (Views: 388.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:31:45 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (6.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:31:45.081086"], ["current_sign_in_at", "2016-10-03 01:31:45.081086"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:31:45.081982"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 26ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:31:45 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 21:31:45 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (9.1ms) Completed 200 OK in 38ms (Views: 20.6ms | ActiveRecord: 1.4ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 21:31:45 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 01:31:45.190360"], ["updated_at", "2016-10-03 01:31:45.190360"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 01:31:45.190360"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 438ms (ActiveRecord: 3.7ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 21:31:45 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (8.1ms) Completed 200 OK in 18ms (Views: 13.6ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$vT7M/UjbZ6yMC4y6CFmo/uTLXYnW7Upeqa63XaKBrGT6gw0QJv2ja"], ["created_at", "2016-10-03 01:31:45.658465"], ["updated_at", "2016-10-03 01:31:45.658465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:31:45 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.2ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:31:45 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:31:45.672544"], ["current_sign_in_at", "2016-10-03 01:31:45.672544"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:31:45.673181"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:31:45 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 21:31:45 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (2.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.3ms) Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 21:31:45 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.4ms) Completed 200 OK in 10ms (Views: 4.7ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$Dvel/Y0uWDwbSVqsWKwZVOWc5.Cm2L4weIQes4MSceQaDLRAj6.4m"], ["created_at", "2016-10-03 01:31:45.755300"], ["updated_at", "2016-10-03 01:31:45.755300"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:31:48 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (3.4ms) Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 21:31:48 -0400 Started GET "/assets/application-ae2f3e9153ab8790e8aa4db3ee24569c31c04e9721cf338869bc8e4f22fac81c.js" for 127.0.0.1 at 2016-10-02 21:31:48 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:31:49 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:31:49.499823"], ["current_sign_in_at", "2016-10-03 01:31:49.499823"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:31:49.500958"], ["id", 3]]  (5.7ms) COMMIT Redirected to http://127.0.0.1:53054/ Completed 302 Found in 17ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:31:49 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.1ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 01:31:49.655038"], ["updated_at", "2016-10-03 01:31:49.655038"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 01:31:49.655038"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.1ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (37.7ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$oJrEvyrF18uk1qrIjTCNNOzBiT2j0bK1nRoipQ3/1wiP0KRlj28Ti"], ["created_at", "2016-10-03 01:31:53.807784"], ["updated_at", "2016-10-03 01:31:53.807784"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:31:53 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.6ms) Rendered devise/sessions/new.html.erb within layouts/application (3.5ms) Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:31:54 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:31:54.203444"], ["current_sign_in_at", "2016-10-03 01:31:54.203444"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:31:54.204180"], ["id", 1]]  (5.7ms) COMMIT Redirected to http://127.0.0.1:53054/ Completed 302 Found in 14ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:31:54 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (1.7ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 01:31:54.349771"], ["updated_at", "2016-10-03 01:31:54.349771"]] SQL (0.5ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 01:31:54.349771"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (39.1ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (3.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$6VrkyMuXb0J0suBhNYbyVeOS5E8CgNwuvlwrEDjKE4z98sdXQw4/S"], ["created_at", "2016-10-03 01:32:33.233452"], ["updated_at", "2016-10-03 01:32:33.233452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:32:33 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (30.8ms) Completed 200 OK in 255ms (Views: 241.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:32:33 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:32:33.519493"], ["current_sign_in_at", "2016-10-03 01:32:33.519493"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:32:33.520240"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 21ms (ActiveRecord: 1.1ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:32:33 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 21:32:33 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (9.7ms) Completed 200 OK in 38ms (Views: 20.7ms | ActiveRecord: 1.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 21:32:33 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 01:32:33.618613"], ["updated_at", "2016-10-03 01:32:33.618613"]] SQL (0.8ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 01:32:33.618613"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 842ms (ActiveRecord: 3.6ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 21:32:34 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (6.4ms) Completed 200 OK in 16ms (Views: 10.6ms | ActiveRecord: 0.5ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$/QXLpi.hRddXMIflGVhOT.2C9x9MdFL5OmI6UJRJhGj6KwukDnWCG"], ["created_at", "2016-10-03 01:32:34.491837"], ["updated_at", "2016-10-03 01:32:34.491837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:32:34 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.8ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:32:34 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:32:34.505159"], ["current_sign_in_at", "2016-10-03 01:32:34.505159"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:32:34.505889"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:32:34 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 21:32:34 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.6ms) Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 21:32:34 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.3ms) Completed 200 OK in 10ms (Views: 4.6ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$8LkSP.bv3P9WN.PZFfC1tOFw9/hZeZHg0/C4rIFFiMBzUrkK0TMda"], ["created_at", "2016-10-03 01:32:34.589369"], ["updated_at", "2016-10-03 01:32:34.589369"]]  (0.4ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:32:37 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.5ms) Rendered devise/sessions/new.html.erb within layouts/application (3.2ms) Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 21:32:37 -0400 Started GET "/assets/application-ae2f3e9153ab8790e8aa4db3ee24569c31c04e9721cf338869bc8e4f22fac81c.js" for 127.0.0.1 at 2016-10-02 21:32:37 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:32:37 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:32:37.672202"], ["current_sign_in_at", "2016-10-03 01:32:37.672202"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:32:37.673139"], ["id", 3]]  (5.6ms) COMMIT Redirected to http://127.0.0.1:53240/ Completed 302 Found in 17ms (ActiveRecord: 6.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:32:37 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.1ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 01:32:37.826377"], ["updated_at", "2016-10-03 01:32:37.826377"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 01:32:37.826377"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:32:37 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (11.5ms) Completed 200 OK in 48ms (Views: 24.0ms | ActiveRecord: 3.7ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 21:32:38 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (4.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (8.5ms) Completed 200 OK in 33ms (Views: 13.6ms | ActiveRecord: 2.5ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:32:40 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "stripe_token"=>"test_tok_1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 SQL (0.3ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-03 01:32:40.458229"], ["id", 3]]  (5.8ms) COMMIT  (0.1ms) BEGIN Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (7.3ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 2], ["customer_id", 3], ["stripe_id", "test_su_4"], ["created_at", "2016-10-03 01:32:40.473160"], ["updated_at", "2016-10-03 01:32:40.473160"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-03 01:32:40.473160"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.3ms) COMMIT Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]]  (0.2ms) BEGIN SQL (0.5ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 3], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 9], ["exp_year", 2018], ["fingerprint", "eXWMGVNbMZcworZC"], ["funding", "credit"], ["last4", "4242"], ["name", "Johnny App"], ["created_at", "2016-10-03 01:32:40.514833"], ["updated_at", "2016-10-03 01:32:40.514833"]]  (0.3ms) COMMIT Redirected to http://127.0.0.1:53240/tang/account/subscription Completed 302 Found in 76ms (ActiveRecord: 18.8ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:32:40 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > 0) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.6ms) Completed 200 OK in 10ms (Views: 3.7ms | ActiveRecord: 2.0ms)  (0.6ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.1ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (0.7ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (23.0ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (2.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$giUICn4ex1YYS5JGdGIPneI2Bhd5h1pEw71T5gQVbpjmtfqJQDIki"], ["created_at", "2016-10-03 01:32:45.341030"], ["updated_at", "2016-10-03 01:32:45.341030"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:32:45 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.6ms) Rendered devise/sessions/new.html.erb within layouts/application (2.7ms) Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:32:45 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:32:45.731911"], ["current_sign_in_at", "2016-10-03 01:32:45.731911"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:32:45.732543"], ["id", 1]]  (9.0ms) COMMIT Redirected to http://127.0.0.1:53240/ Completed 302 Found in 16ms (ActiveRecord: 9.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:32:45 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (6.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 01:32:45.867973"], ["updated_at", "2016-10-03 01:32:45.867973"]] SQL (0.7ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 01:32:45.867973"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:32:45 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.8ms) Completed 200 OK in 8ms (Views: 4.2ms | ActiveRecord: 1.3ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 21:32:46 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.1ms) Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.3ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:32:48 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"test_tok_1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 1) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 1) LIMIT 1 SQL (0.2ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-03 01:32:48.177521"], ["id", 1]]  (5.6ms) COMMIT  (0.1ms) BEGIN Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (6.1ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 1], ["customer_id", 1], ["stripe_id", "test_su_4"], ["created_at", "2016-10-03 01:32:48.190128"], ["updated_at", "2016-10-03 01:32:48.190128"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 01:32:48.190128"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.2ms) COMMIT Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]]  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 1], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 9], ["exp_year", 2018], ["fingerprint", "eXWMGVNbMZcworZC"], ["funding", "credit"], ["last4", "4242"], ["name", "Johnny App"], ["created_at", "2016-10-03 01:32:48.202598"], ["updated_at", "2016-10-03 01:32:48.202598"]]  (0.2ms) COMMIT Redirected to http://127.0.0.1:53240/tang/account/subscription Completed 302 Found in 35ms (ActiveRecord: 15.3ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:32:48 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > 0) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.8ms) Completed 200 OK in 10ms (Views: 4.0ms | ActiveRecord: 1.5ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (38.3ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$1V1z.gGmAGVLR8L72hakeuUVNrebA9mIQvmz3kZSDbi56zgQUm/LK"], ["created_at", "2016-10-03 01:39:21.834411"], ["updated_at", "2016-10-03 01:39:21.834411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:39:21 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (24.2ms) Completed 200 OK in 242ms (Views: 230.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:39:22 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:39:22.105991"], ["current_sign_in_at", "2016-10-03 01:39:22.105991"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:39:22.106756"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 19ms (ActiveRecord: 1.0ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:39:22 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.4ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 21:39:22 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (9.3ms) Completed 200 OK in 38ms (Views: 20.3ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 21:39:22 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 01:39:22.210094"], ["updated_at", "2016-10-03 01:39:22.210094"]] SQL (0.6ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 01:39:22.210094"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 858ms (ActiveRecord: 3.4ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 21:39:23 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (6.7ms) Completed 200 OK in 15ms (Views: 10.9ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$dxpp3FKf3JPidmbsbZ1Ih.8RgQ5LHxJMWtczokEtVKpXCn9Z4i5H6"], ["created_at", "2016-10-03 01:39:23.095277"], ["updated_at", "2016-10-03 01:39:23.095277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:39:23 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.5ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:39:23 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:39:23.111229"], ["current_sign_in_at", "2016-10-03 01:39:23.111229"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:39:23.111799"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:39:23 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 21:39:23 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.4ms) Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 21:39:23 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.4ms) Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$HZAcUYLlxxZuWTm4LrXwguXSOJLUXhO6yay6.11M6KyKqEa8uWFna"], ["created_at", "2016-10-03 01:39:23.191525"], ["updated_at", "2016-10-03 01:39:23.191525"]]  (0.4ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:39:26 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (3.1ms) Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 21:39:26 -0400 Started GET "/assets/application-ae2f3e9153ab8790e8aa4db3ee24569c31c04e9721cf338869bc8e4f22fac81c.js" for 127.0.0.1 at 2016-10-02 21:39:26 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:39:26 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:39:26.844702"], ["current_sign_in_at", "2016-10-03 01:39:26.844702"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:39:26.845736"], ["id", 3]]  (6.0ms) COMMIT Redirected to http://127.0.0.1:54331/ Completed 302 Found in 18ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:39:26 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 01:39:27.017322"], ["updated_at", "2016-10-03 01:39:27.017322"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 01:39:27.017322"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:39:27 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (1.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.5ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (9.7ms) Completed 200 OK in 45ms (Views: 20.6ms | ActiveRecord: 5.0ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 21:39:27 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (1.6ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (7.1ms) Completed 200 OK in 28ms (Views: 11.0ms | ActiveRecord: 3.6ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:39:29 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "stripe_token"=>"test_tok_1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 SQL (0.2ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-03 01:39:29.708134"], ["id", 3]]  (0.3ms) COMMIT  (0.1ms) BEGIN Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 2], ["customer_id", 3], ["stripe_id", "test_su_4"], ["created_at", "2016-10-03 01:39:29.716497"], ["updated_at", "2016-10-03 01:39:29.716497"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-03 01:39:29.716497"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.4ms) COMMIT Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]]  (0.2ms) BEGIN SQL (0.5ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 3], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 9], ["exp_year", 2018], ["fingerprint", "hrLgWzEscxDirlpO"], ["funding", "credit"], ["last4", "4242"], ["name", "Johnny App"], ["created_at", "2016-10-03 01:39:29.750264"], ["updated_at", "2016-10-03 01:39:29.750264"]]  (0.2ms) COMMIT Redirected to http://127.0.0.1:54331/tang/account/subscription Completed 302 Found in 58ms (ActiveRecord: 6.6ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:39:29 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > 0) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.5ms) Completed 200 OK in 9ms (Views: 3.7ms | ActiveRecord: 1.7ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.1ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (0.9ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (31.0ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.2ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$cGXyDOMnIqbyLVMt/J7NQ.koVOGNkAlGHyOBviQRG2GNILkoYO2GK"], ["created_at", "2016-10-03 01:39:34.503656"], ["updated_at", "2016-10-03 01:39:34.503656"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:39:34 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.8ms) Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:39:34 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:39:34.895911"], ["current_sign_in_at", "2016-10-03 01:39:34.895911"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:39:34.896592"], ["id", 1]]  (6.1ms) COMMIT Redirected to http://127.0.0.1:54331/ Completed 302 Found in 15ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:39:34 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.4ms)  (0.2ms) BEGIN Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (6.3ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 01:39:35.028663"], ["updated_at", "2016-10-03 01:39:35.028663"]] SQL (0.8ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 01:39:35.028663"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:39:35 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.7ms) Completed 200 OK in 8ms (Views: 3.8ms | ActiveRecord: 1.2ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 21:39:35 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.3ms) Completed 200 OK in 6ms (Views: 2.8ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:39:37 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"test_tok_1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 1) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 1) LIMIT 1 SQL (0.3ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-03 01:39:37.288373"], ["id", 1]]  (5.9ms) COMMIT  (0.1ms) BEGIN Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (10.8ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 1], ["customer_id", 1], ["stripe_id", "test_su_4"], ["created_at", "2016-10-03 01:39:37.301068"], ["updated_at", "2016-10-03 01:39:37.301068"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 01:39:37.301068"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.3ms) COMMIT Tang::Card Load (0.7ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]]  (0.1ms) BEGIN SQL (1.0ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 1], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 9], ["exp_year", 2018], ["fingerprint", "kqPcjUYivSuYicoL"], ["funding", "credit"], ["last4", "0002"], ["name", "Johnny App"], ["created_at", "2016-10-03 01:39:37.323341"], ["updated_at", "2016-10-03 01:39:37.323341"]]  (0.3ms) COMMIT Redirected to http://127.0.0.1:54331/tang/account/subscription Completed 302 Found in 46ms (ActiveRecord: 21.6ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:39:37 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > 0) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.6ms) Completed 200 OK in 10ms (Views: 3.9ms | ActiveRecord: 1.6ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (39.7ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$b0aspk7bA5BgE718bvjYiOQbDtr2tbl17PJ0BYZv9v1tXz0oRFQ6u"], ["created_at", "2016-10-03 01:43:50.571895"], ["updated_at", "2016-10-03 01:43:50.571895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:43:50 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.6ms) Rendered devise/sessions/new.html.erb within layouts/application (26.0ms) Completed 200 OK in 244ms (Views: 232.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:43:50 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:43:50.845824"], ["current_sign_in_at", "2016-10-03 01:43:50.845824"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:43:50.846547"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:43:50 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.5ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 21:43:50 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (9.2ms) Completed 200 OK in 36ms (Views: 19.9ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 21:43:50 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.8ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 01:43:50.943330"], ["updated_at", "2016-10-03 01:43:50.943330"]] SQL (0.7ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 01:43:50.943330"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 831ms (ActiveRecord: 3.7ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 21:43:51 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (7.9ms) Completed 200 OK in 18ms (Views: 13.4ms | ActiveRecord: 0.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$9j7CCHPNxWVnZrx.YNbeAu3VYP2lYjGssKr3HvtZimy/iY37IPGYW"], ["created_at", "2016-10-03 01:43:51.804890"], ["updated_at", "2016-10-03 01:43:51.804890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:43:51 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.8ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:43:51 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:43:51.818251"], ["current_sign_in_at", "2016-10-03 01:43:51.818251"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:43:51.818907"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:43:51 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 21:43:51 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.5ms) Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 21:43:51 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.4ms) Completed 200 OK in 9ms (Views: 4.6ms | ActiveRecord: 0.7ms)  (0.3ms) ROLLBACK User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$Wr7GD.TDIqqRcsaZ.8hUcOLV3woY6ZcpKGxH3hGfb.MBXgBrZ7TLK"], ["created_at", "2016-10-03 01:43:51.897994"], ["updated_at", "2016-10-03 01:43:51.897994"]]  (0.5ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:43:54 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (3.0ms) Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 21:43:54 -0400 Started GET "/assets/application-ae2f3e9153ab8790e8aa4db3ee24569c31c04e9721cf338869bc8e4f22fac81c.js" for 127.0.0.1 at 2016-10-02 21:43:54 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:43:55 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:43:55.552606"], ["current_sign_in_at", "2016-10-03 01:43:55.552606"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:43:55.553584"], ["id", 3]]  (6.1ms) COMMIT Redirected to http://127.0.0.1:55188/ Completed 302 Found in 17ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:43:55 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 01:43:55.719003"], ["updated_at", "2016-10-03 01:43:55.719003"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 01:43:55.719003"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:43:55 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.5ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (11.5ms) Completed 200 OK in 41ms (Views: 23.1ms | ActiveRecord: 4.2ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 21:43:55 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (2.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (5.9ms) Completed 200 OK in 24ms (Views: 9.6ms | ActiveRecord: 2.0ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:43:58 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "stripe_token"=>"test_tok_1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 SQL (0.2ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-03 01:43:58.391891"], ["id", 3]]  (1.8ms) COMMIT  (0.1ms) BEGIN Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (1.0ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 2], ["customer_id", 3], ["stripe_id", "test_su_4"], ["created_at", "2016-10-03 01:43:58.403588"], ["updated_at", "2016-10-03 01:43:58.403588"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-03 01:43:58.403588"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.3ms) COMMIT Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]]  (0.2ms) BEGIN SQL (0.8ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 3], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 9], ["exp_year", 2018], ["fingerprint", "hrLgWzEscxDirlpO"], ["funding", "credit"], ["last4", "4242"], ["name", "Johnny App"], ["created_at", "2016-10-03 01:43:58.437156"], ["updated_at", "2016-10-03 01:43:58.437156"]]  (0.2ms) COMMIT Redirected to http://127.0.0.1:55188/tang/account/subscription Completed 302 Found in 61ms (ActiveRecord: 8.5ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:43:58 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > 0) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.5ms) Completed 200 OK in 10ms (Views: 3.8ms | ActiveRecord: 2.0ms)  (0.7ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.1ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (22.3ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (1.5ms) BEGIN User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$mlcMz5l0b6ycFzndpZHZG.iJAL7MCcTdPY8XBCa7vVCdN22eBEfra"], ["created_at", "2016-10-03 01:44:03.255762"], ["updated_at", "2016-10-03 01:44:03.255762"]]  (0.4ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:44:03 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.5ms) Rendered devise/sessions/new.html.erb within layouts/application (2.3ms) Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:44:03 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:44:03.660939"], ["current_sign_in_at", "2016-10-03 01:44:03.660939"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:44:03.662187"], ["id", 1]]  (12.0ms) COMMIT Redirected to http://127.0.0.1:55188/ Completed 302 Found in 21ms (ActiveRecord: 13.0ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:44:03 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.4ms)  (0.2ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (8.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 01:44:03.806970"], ["updated_at", "2016-10-03 01:44:03.806970"]] SQL (0.6ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 01:44:03.806970"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:44:03 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.7ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (7.0ms) Completed 200 OK in 15ms (Views: 10.2ms | ActiveRecord: 1.8ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 21:44:04 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.5ms) Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:44:05 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"test_tok_1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 1) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 1) LIMIT 1 SQL (0.3ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-03 01:44:05.991339"], ["id", 1]]  (6.1ms) COMMIT  (0.2ms) BEGIN Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (6.7ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 1], ["customer_id", 1], ["stripe_id", "test_su_4"], ["created_at", "2016-10-03 01:44:06.005540"], ["updated_at", "2016-10-03 01:44:06.005540"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 01:44:06.005540"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.4ms) COMMIT Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]]  (0.2ms) BEGIN SQL (1.0ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 1], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 9], ["exp_year", 2018], ["fingerprint", "kqPcjUYivSuYicoL"], ["funding", "credit"], ["last4", "0002"], ["name", "Johnny App"], ["created_at", "2016-10-03 01:44:06.025291"], ["updated_at", "2016-10-03 01:44:06.025291"]]  (0.5ms) COMMIT Redirected to http://127.0.0.1:55188/tang/account/subscription Completed 302 Found in 46ms (ActiveRecord: 17.9ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:44:06 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > 0) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.7ms) Completed 200 OK in 8ms (Views: 3.9ms | ActiveRecord: 1.3ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (33.9ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$VGrtqDElIRf7w9f2k4ocIeEerTneIcstWyrvONzOsNaCOJ.w/v7ry"], ["created_at", "2016-10-03 01:46:16.243073"], ["updated_at", "2016-10-03 01:46:16.243073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:46:16 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (25.1ms) Completed 200 OK in 240ms (Views: 228.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:46:16 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:46:16.517557"], ["current_sign_in_at", "2016-10-03 01:46:16.517557"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:46:16.518379"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 17ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:46:16 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 21:46:16 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (9.5ms) Completed 200 OK in 38ms (Views: 20.9ms | ActiveRecord: 1.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 21:46:16 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (1.0ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 01:46:16.616577"], ["updated_at", "2016-10-03 01:46:16.616577"]] SQL (2.0ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 01:46:16.616577"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 853ms (ActiveRecord: 5.1ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 21:46:17 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (7.7ms) Completed 200 OK in 17ms (Views: 13.0ms | ActiveRecord: 0.5ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$8.auuulox.mPBxEwb4cLYu2.djHjeHsYI3ZC6QYIW1FuUGyJHIw3m"], ["created_at", "2016-10-03 01:46:17.499364"], ["updated_at", "2016-10-03 01:46:17.499364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:46:17 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:46:17 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:46:17.513142"], ["current_sign_in_at", "2016-10-03 01:46:17.513142"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:46:17.513800"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:46:17 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 21:46:17 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.4ms) Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.4ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 21:46:17 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.8ms) Completed 200 OK in 12ms (Views: 6.4ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$G5gHFkWDS49Mvog5nF218uX4t6K0Ag0T.oofeLe08kwK9sbtU2F3."], ["created_at", "2016-10-03 01:46:17.586549"], ["updated_at", "2016-10-03 01:46:17.586549"]]  (0.4ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:46:20 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.9ms) Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 21:46:20 -0400 Started GET "/assets/application-ae2f3e9153ab8790e8aa4db3ee24569c31c04e9721cf338869bc8e4f22fac81c.js" for 127.0.0.1 at 2016-10-02 21:46:20 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:46:21 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:46:21.063819"], ["current_sign_in_at", "2016-10-03 01:46:21.063819"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:46:21.065009"], ["id", 3]]  (5.8ms) COMMIT Redirected to http://127.0.0.1:55872/ Completed 302 Found in 17ms (ActiveRecord: 6.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:46:21 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 01:46:21.220040"], ["updated_at", "2016-10-03 01:46:21.220040"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 01:46:21.220040"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:46:21 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (10.9ms) Completed 200 OK in 45ms (Views: 22.0ms | ActiveRecord: 3.6ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 21:46:21 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (6.2ms) Completed 200 OK in 26ms (Views: 10.3ms | ActiveRecord: 2.1ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:46:23 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "stripe_token"=>"test_tok_1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 SQL (0.3ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-03 01:46:23.848256"], ["id", 3]]  (0.3ms) COMMIT  (0.1ms) BEGIN Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (0.8ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 2], ["customer_id", 3], ["stripe_id", "test_su_4"], ["created_at", "2016-10-03 01:46:23.857233"], ["updated_at", "2016-10-03 01:46:23.857233"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-03 01:46:23.857233"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.3ms) COMMIT Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]]  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 3], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 9], ["exp_year", 2018], ["fingerprint", "hrLgWzEscxDirlpO"], ["funding", "credit"], ["last4", "4242"], ["name", "Johnny App"], ["created_at", "2016-10-03 01:46:23.894457"], ["updated_at", "2016-10-03 01:46:23.894457"]]  (0.2ms) COMMIT Redirected to http://127.0.0.1:55872/tang/account/subscription Completed 302 Found in 62ms (ActiveRecord: 6.5ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:46:23 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > 0) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.9ms) Completed 200 OK in 12ms (Views: 4.2ms | ActiveRecord: 2.1ms)  (1.9ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.2ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (0.7ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (36.9ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$VVBM/NJn0SNxUDyxymY36eyF.6gBUXCPRtQ2RERxO.gtgkbYsXScS"], ["created_at", "2016-10-03 01:46:28.692668"], ["updated_at", "2016-10-03 01:46:28.692668"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:46:28 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.2ms) Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:46:29 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:46:29.108356"], ["current_sign_in_at", "2016-10-03 01:46:29.108356"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:46:29.109438"], ["id", 1]]  (5.8ms) COMMIT Redirected to http://127.0.0.1:55872/ Completed 302 Found in 14ms (ActiveRecord: 6.6ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:46:29 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (6.1ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 01:46:29.242809"], ["updated_at", "2016-10-03 01:46:29.242809"]] SQL (11.7ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 01:46:29.242809"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (6.2ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:46:29 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.8ms) Completed 200 OK in 10ms (Views: 6.2ms | ActiveRecord: 1.4ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 21:46:29 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.3ms) Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:46:31 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"test_tok_1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 1) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 1) LIMIT 1 SQL (0.3ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-03 01:46:31.475529"], ["id", 1]]  (6.2ms) COMMIT  (0.2ms) BEGIN Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (6.7ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 1], ["customer_id", 1], ["stripe_id", "test_su_4"], ["created_at", "2016-10-03 01:46:31.488457"], ["updated_at", "2016-10-03 01:46:31.488457"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 01:46:31.488457"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.4ms) COMMIT Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]]  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 1], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 9], ["exp_year", 2018], ["fingerprint", "kqPcjUYivSuYicoL"], ["funding", "credit"], ["last4", "0002"], ["name", "Johnny App"], ["created_at", "2016-10-03 01:46:31.502959"], ["updated_at", "2016-10-03 01:46:31.502959"]]  (0.4ms) COMMIT Redirected to http://127.0.0.1:55872/tang/account/subscription Completed 302 Found in 45ms (ActiveRecord: 17.2ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:46:31 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > 0) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.2ms) Completed 200 OK in 7ms (Views: 3.1ms | ActiveRecord: 1.2ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (44.3ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$s4IKe/CQxgagAB7aly0v..EItVQKuO1xVu8.HOk4qnut09vO0BrHy"], ["created_at", "2016-10-03 01:46:57.864375"], ["updated_at", "2016-10-03 01:46:57.864375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:46:57 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.0ms) Rendered devise/sessions/new.html.erb within layouts/application (27.8ms) Completed 200 OK in 232ms (Views: 219.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:46:58 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:46:58.128602"], ["current_sign_in_at", "2016-10-03 01:46:58.128602"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:46:58.129373"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 17ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:46:58 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 21:46:58 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (9.6ms) Completed 200 OK in 37ms (Views: 20.6ms | ActiveRecord: 1.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 21:46:58 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 01:46:58.222869"], ["updated_at", "2016-10-03 01:46:58.222869"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 01:46:58.222869"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 837ms (ActiveRecord: 3.2ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 21:46:59 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (6.5ms) Completed 200 OK in 15ms (Views: 11.0ms | ActiveRecord: 0.4ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$.wpeM2XUFyyhBcrD0I3yvOHRWDM3z6.IyqXwwIwXhYlLFco3Jnfr2"], ["created_at", "2016-10-03 01:46:59.091298"], ["updated_at", "2016-10-03 01:46:59.091298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:46:59 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.4ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:46:59 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:46:59.107557"], ["current_sign_in_at", "2016-10-03 01:46:59.107557"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:46:59.108309"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:46:59 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 21:46:59 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (2.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.1ms) Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 21:46:59 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.5ms) Completed 200 OK in 9ms (Views: 4.7ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$EcARCB.wS9vtQFm2gLLIaufkuuilBXBs7RDPa3UicdJfaxw/h97uC"], ["created_at", "2016-10-03 01:46:59.176915"], ["updated_at", "2016-10-03 01:46:59.176915"]]  (0.4ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:47:01 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.5ms) Rendered devise/sessions/new.html.erb within layouts/application (3.0ms) Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 21:47:01 -0400 Started GET "/assets/application-ae2f3e9153ab8790e8aa4db3ee24569c31c04e9721cf338869bc8e4f22fac81c.js" for 127.0.0.1 at 2016-10-02 21:47:01 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:47:02 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:47:02.253615"], ["current_sign_in_at", "2016-10-03 01:47:02.253615"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:47:02.254537"], ["id", 3]]  (6.1ms) COMMIT Redirected to http://127.0.0.1:56454/ Completed 302 Found in 17ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:47:02 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 01:47:02.411466"], ["updated_at", "2016-10-03 01:47:02.411466"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 01:47:02.411466"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:47:02 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (11.1ms) Completed 200 OK in 45ms (Views: 22.3ms | ActiveRecord: 4.3ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 21:47:02 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (6.8ms) Completed 200 OK in 28ms (Views: 11.0ms | ActiveRecord: 2.2ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:47:05 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "stripe_token"=>"test_tok_1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 SQL (0.2ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-03 01:47:05.079714"], ["id", 3]]  (4.7ms) COMMIT  (0.4ms) BEGIN Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 2], ["customer_id", 3], ["stripe_id", "test_su_4"], ["created_at", "2016-10-03 01:47:05.092806"], ["updated_at", "2016-10-03 01:47:05.092806"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-03 01:47:05.092806"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.3ms) COMMIT Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]]  (0.2ms) BEGIN SQL (0.5ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 3], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 9], ["exp_year", 2018], ["fingerprint", "hrLgWzEscxDirlpO"], ["funding", "credit"], ["last4", "4242"], ["name", "Johnny App"], ["created_at", "2016-10-03 01:47:05.126806"], ["updated_at", "2016-10-03 01:47:05.126806"]]  (2.7ms) COMMIT Redirected to http://127.0.0.1:56454/tang/account/subscription Completed 302 Found in 65ms (ActiveRecord: 13.1ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:47:05 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > 0) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.7ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (3.3ms) Completed 200 OK in 11ms (Views: 4.1ms | ActiveRecord: 2.3ms)  (0.5ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.1ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (21.6ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$t1PZ1Byn1FzyaqsvyoQ5xOTKjNF10c.NJcbku2dqnSgEdyiUZZocS"], ["created_at", "2016-10-03 01:47:09.911749"], ["updated_at", "2016-10-03 01:47:09.911749"]]  (0.4ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:47:09 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:47:10 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:47:10.434069"], ["current_sign_in_at", "2016-10-03 01:47:10.434069"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:47:10.434936"], ["id", 1]]  (6.1ms) COMMIT Redirected to http://127.0.0.1:56454/ Completed 302 Found in 14ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:47:10 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (5.1ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 01:47:10.574805"], ["updated_at", "2016-10-03 01:47:10.574805"]] SQL (0.6ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 01:47:10.574805"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.8ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:47:10 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (3.0ms) Completed 200 OK in 8ms (Views: 4.1ms | ActiveRecord: 1.3ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 21:47:10 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.5ms) Completed 200 OK in 6ms (Views: 3.3ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:47:12 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"test_tok_1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 1) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 1) LIMIT 1 SQL (0.3ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-03 01:47:12.866601"], ["id", 1]]  (6.1ms) COMMIT  (0.1ms) BEGIN Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (11.4ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 1], ["customer_id", 1], ["stripe_id", "test_su_4"], ["created_at", "2016-10-03 01:47:12.878839"], ["updated_at", "2016-10-03 01:47:12.878839"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 01:47:12.878839"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.4ms) COMMIT Tang::Card Load (3.6ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]]  (0.2ms) BEGIN SQL (0.7ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 1], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 9], ["exp_year", 2018], ["fingerprint", "kqPcjUYivSuYicoL"], ["funding", "credit"], ["last4", "0002"], ["name", "Johnny App"], ["created_at", "2016-10-03 01:47:12.904807"], ["updated_at", "2016-10-03 01:47:12.904807"]]  (0.3ms) COMMIT Redirected to http://127.0.0.1:56454/tang/account/subscription Completed 302 Found in 47ms (ActiveRecord: 24.9ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:47:12 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > 0) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.4ms) Completed 200 OK in 7ms (Views: 3.3ms | ActiveRecord: 1.2ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (38.9ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$8sui9Rabd6OZceJRZYI6xeFJF6p6P092QlfVjbliKU52fE8O3muhG"], ["created_at", "2016-10-03 01:47:39.801057"], ["updated_at", "2016-10-03 01:47:39.801057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:47:39 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (24.0ms) Completed 200 OK in 241ms (Views: 227.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:47:40 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:47:40.074846"], ["current_sign_in_at", "2016-10-03 01:47:40.074846"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:47:40.075646"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 17ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:47:40 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 7ms (Views: 6.8ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 21:47:40 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (9.5ms) Completed 200 OK in 38ms (Views: 20.2ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 21:47:40 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 01:47:40.170394"], ["updated_at", "2016-10-03 01:47:40.170394"]] SQL (0.7ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 01:47:40.170394"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 852ms (ActiveRecord: 3.5ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 21:47:41 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (6.7ms) Completed 200 OK in 15ms (Views: 11.3ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$pVp2ry9DyoosEbaIr4mAoeJHuPF/cVY6zR52d4NBIt6VT3KJp79FS"], ["created_at", "2016-10-03 01:47:41.050521"], ["updated_at", "2016-10-03 01:47:41.050521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:47:41 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.6ms) Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:47:41 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:47:41.068225"], ["current_sign_in_at", "2016-10-03 01:47:41.068225"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:47:41.069071"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:47:41 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 21:47:41 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.5ms) Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 21:47:41 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.5ms) Completed 200 OK in 9ms (Views: 4.7ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$Pwff1230nQ1PpaEDeLYWpeEelRY496TE0p.lBK5XfkqvoKctGP4R6"], ["created_at", "2016-10-03 01:47:41.149503"], ["updated_at", "2016-10-03 01:47:41.149503"]]  (0.4ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:47:43 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.7ms) Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 21:47:43 -0400 Started GET "/assets/application-ae2f3e9153ab8790e8aa4db3ee24569c31c04e9721cf338869bc8e4f22fac81c.js" for 127.0.0.1 at 2016-10-02 21:47:43 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:47:44 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:47:44.301781"], ["current_sign_in_at", "2016-10-03 01:47:44.301781"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:47:44.302758"], ["id", 3]]  (6.2ms) COMMIT Redirected to http://127.0.0.1:57014/ Completed 302 Found in 16ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:47:44 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 01:47:44.453999"], ["updated_at", "2016-10-03 01:47:44.453999"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 01:47:44.453999"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:47:44 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (10.3ms) Completed 200 OK in 45ms (Views: 22.7ms | ActiveRecord: 3.6ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 21:47:44 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (2.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (6.0ms) Completed 200 OK in 26ms (Views: 9.8ms | ActiveRecord: 3.5ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:47:47 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "stripe_token"=>"test_tok_1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 SQL (0.2ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-03 01:47:47.090681"], ["id", 3]]  (0.3ms) COMMIT  (0.1ms) BEGIN Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (1.1ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 2], ["customer_id", 3], ["stripe_id", "test_su_4"], ["created_at", "2016-10-03 01:47:47.099118"], ["updated_at", "2016-10-03 01:47:47.099118"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-03 01:47:47.099118"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.4ms) COMMIT Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]]  (0.2ms) BEGIN SQL (0.5ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 3], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 9], ["exp_year", 2018], ["fingerprint", "hrLgWzEscxDirlpO"], ["funding", "credit"], ["last4", "4242"], ["name", "Johnny App"], ["created_at", "2016-10-03 01:47:47.131319"], ["updated_at", "2016-10-03 01:47:47.131319"]]  (0.2ms) COMMIT Redirected to http://127.0.0.1:57014/tang/account/subscription Completed 302 Found in 56ms (ActiveRecord: 6.5ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:47:47 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > 0) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.6ms) Completed 200 OK in 12ms (Views: 3.8ms | ActiveRecord: 2.0ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (2.7ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (0.9ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (32.8ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$4ZgSrLHaqZvduRNNSxxSiOjHCbTJgHa1dlPOOShg5OpKiLYEujPNy"], ["created_at", "2016-10-03 01:47:51.921369"], ["updated_at", "2016-10-03 01:47:51.921369"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:47:51 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.5ms) Rendered devise/sessions/new.html.erb within layouts/application (3.2ms) Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:47:52 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:47:52.352721"], ["current_sign_in_at", "2016-10-03 01:47:52.352721"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:47:52.353402"], ["id", 1]]  (6.1ms) COMMIT Redirected to http://127.0.0.1:57014/ Completed 302 Found in 14ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:47:52 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (6.1ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 01:47:52.475087"], ["updated_at", "2016-10-03 01:47:52.475087"]] SQL (11.4ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 01:47:52.475087"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.6ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:47:52 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (3.2ms) Completed 200 OK in 8ms (Views: 4.2ms | ActiveRecord: 1.4ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 21:47:52 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.2ms) Completed 200 OK in 8ms (Views: 3.3ms | ActiveRecord: 0.5ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:47:54 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"test_tok_1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 1) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 1) LIMIT 1 SQL (0.2ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-03 01:47:54.764432"], ["id", 1]]  (6.3ms) COMMIT  (0.2ms) BEGIN Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (5.5ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 1], ["customer_id", 1], ["stripe_id", "test_su_4"], ["created_at", "2016-10-03 01:47:54.777591"], ["updated_at", "2016-10-03 01:47:54.777591"]] SQL (0.4ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 01:47:54.777591"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.3ms) COMMIT Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]]  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 1], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 9], ["exp_year", 2018], ["fingerprint", "kqPcjUYivSuYicoL"], ["funding", "credit"], ["last4", "0002"], ["name", "Johnny App"], ["created_at", "2016-10-03 01:47:54.789844"], ["updated_at", "2016-10-03 01:47:54.789844"]]  (0.2ms) COMMIT Redirected to http://127.0.0.1:57014/tang/account/subscription Completed 302 Found in 34ms (ActiveRecord: 15.7ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:47:54 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > 0) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.5ms) Completed 200 OK in 8ms (Views: 3.3ms | ActiveRecord: 1.5ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (40.7ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (1.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$YvzffpIpu6PvwJvWcW944endojILB.cZGobTZ115/UXuP54lhIkEO"], ["created_at", "2016-10-03 01:48:35.466302"], ["updated_at", "2016-10-03 01:48:35.466302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:48:35 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (26.1ms) Completed 200 OK in 246ms (Views: 234.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:48:35 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:48:35.746415"], ["current_sign_in_at", "2016-10-03 01:48:35.746415"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:48:35.747273"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:48:35 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 21:48:35 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (7.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (11.2ms) Completed 200 OK in 39ms (Views: 23.0ms | ActiveRecord: 1.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 21:48:35 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 01:48:35.852204"], ["updated_at", "2016-10-03 01:48:35.852204"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 01:48:35.852204"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 1287ms (ActiveRecord: 3.3ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 21:48:37 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (7.7ms) Completed 200 OK in 18ms (Views: 13.0ms | ActiveRecord: 0.6ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$o9aJ88UQO5MeY95KGETlL.BnQWErbygcqWIgd/CwosF/Az5n7LAe6"], ["created_at", "2016-10-03 01:48:37.170396"], ["updated_at", "2016-10-03 01:48:37.170396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:48:37 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.6ms) Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:48:37 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:48:37.189118"], ["current_sign_in_at", "2016-10-03 01:48:37.189118"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:48:37.189863"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:48:37 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 21:48:37 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (2.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.2ms) Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 21:48:37 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.7ms) Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$j80PLK0lvz2MHTHgeYNlOOcD8f93Llq1ATX4fvJvsEjlaTPLqY4/O"], ["created_at", "2016-10-03 01:48:37.261309"], ["updated_at", "2016-10-03 01:48:37.261309"]]  (0.4ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:48:40 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.6ms) Rendered devise/sessions/new.html.erb within layouts/application (3.1ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 21:48:40 -0400 Started GET "/assets/application-ae2f3e9153ab8790e8aa4db3ee24569c31c04e9721cf338869bc8e4f22fac81c.js" for 127.0.0.1 at 2016-10-02 21:48:40 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:48:40 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:48:40.783640"], ["current_sign_in_at", "2016-10-03 01:48:40.783640"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:48:40.784620"], ["id", 3]]  (6.1ms) COMMIT Redirected to http://127.0.0.1:57648/ Completed 302 Found in 17ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:48:40 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 01:48:40.941637"], ["updated_at", "2016-10-03 01:48:40.941637"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 01:48:40.941637"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.5ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:48:40 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (1.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (10.0ms) Completed 200 OK in 43ms (Views: 21.0ms | ActiveRecord: 4.4ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 21:48:41 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (2.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (5.7ms) Completed 200 OK in 26ms (Views: 9.5ms | ActiveRecord: 3.7ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:48:43 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "stripe_token"=>"test_tok_1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 SQL (0.2ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-03 01:48:43.589578"], ["id", 3]]  (0.3ms) COMMIT  (0.1ms) BEGIN Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (1.9ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 2], ["customer_id", 3], ["stripe_id", "test_su_4"], ["created_at", "2016-10-03 01:48:43.598291"], ["updated_at", "2016-10-03 01:48:43.598291"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-03 01:48:43.598291"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.4ms) COMMIT Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]]  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 3], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 9], ["exp_year", 2018], ["fingerprint", "hrLgWzEscxDirlpO"], ["funding", "credit"], ["last4", "4242"], ["name", "Johnny App"], ["created_at", "2016-10-03 01:48:43.632487"], ["updated_at", "2016-10-03 01:48:43.632487"]]  (0.2ms) COMMIT Redirected to http://127.0.0.1:57648/tang/account/subscription Completed 302 Found in 61ms (ActiveRecord: 8.6ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:48:43 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > 0) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (3.6ms) Completed 200 OK in 11ms (Views: 4.6ms | ActiveRecord: 2.2ms)  (0.5ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.2ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (17.9ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$0WrQZVUsSkmCuI3fqYC2wuHwS.UE5N/Z5f6bavLRC9GIdzlIP8vai"], ["created_at", "2016-10-03 01:48:48.502500"], ["updated_at", "2016-10-03 01:48:48.502500"]]  (0.2ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:48:48 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.3ms) Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:48:48 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:48:48.902329"], ["current_sign_in_at", "2016-10-03 01:48:48.902329"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:48:48.903011"], ["id", 1]]  (6.1ms) COMMIT Redirected to http://127.0.0.1:57648/ Completed 302 Found in 14ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:48:48 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (6.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 01:48:49.039070"], ["updated_at", "2016-10-03 01:48:49.039070"]] SQL (0.6ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 01:48:49.039070"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:48:49 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (7.1ms) Completed 200 OK in 15ms (Views: 11.1ms | ActiveRecord: 1.4ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 21:48:49 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (2.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (3.2ms) Completed 200 OK in 8ms (Views: 5.0ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:48:51 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"test_tok_1"} User Load (6.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 1) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 1) LIMIT 1 SQL (0.3ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-03 01:48:51.370192"], ["id", 1]]  (0.4ms) COMMIT  (0.1ms) BEGIN Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 1], ["customer_id", 1], ["stripe_id", "test_su_4"], ["created_at", "2016-10-03 01:48:51.377582"], ["updated_at", "2016-10-03 01:48:51.377582"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 01:48:51.377582"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.3ms) COMMIT Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]]  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 1], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 9], ["exp_year", 2018], ["fingerprint", "kqPcjUYivSuYicoL"], ["funding", "credit"], ["last4", "0002"], ["name", "Johnny App"], ["created_at", "2016-10-03 01:48:51.383412"], ["updated_at", "2016-10-03 01:48:51.383412"]]  (0.2ms) COMMIT Redirected to http://127.0.0.1:57648/tang/account/subscription Completed 302 Found in 31ms (ActiveRecord: 11.3ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:48:51 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > 0) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.1ms) Completed 200 OK in 7ms (Views: 3.1ms | ActiveRecord: 1.2ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (44.0ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$zGU0XwHTdRUG7ZcQdLqI4OBaLG.Sb8pGed9GCPY6sCQymvG9lC6tG"], ["created_at", "2016-10-03 01:50:21.945703"], ["updated_at", "2016-10-03 01:50:21.945703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:50:21 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.0ms) Rendered devise/sessions/new.html.erb within layouts/application (23.9ms) Completed 200 OK in 245ms (Views: 233.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:50:22 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:50:22.225409"], ["current_sign_in_at", "2016-10-03 01:50:22.225409"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:50:22.226130"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 17ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:50:22 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.4ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 21:50:22 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (9.2ms) Completed 200 OK in 40ms (Views: 22.5ms | ActiveRecord: 1.4ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 21:50:22 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 01:50:22.326560"], ["updated_at", "2016-10-03 01:50:22.326560"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 01:50:22.326560"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 862ms (ActiveRecord: 3.0ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 21:50:23 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (7.5ms) Completed 200 OK in 18ms (Views: 12.8ms | ActiveRecord: 0.6ms)  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$IFQQyfQ.Rr68WzP2wNo95e26fBDe6Z7Hi59QaERCWP.rUBsVwmStS"], ["created_at", "2016-10-03 01:50:23.221539"], ["updated_at", "2016-10-03 01:50:23.221539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:50:23 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:50:23 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:50:23.235592"], ["current_sign_in_at", "2016-10-03 01:50:23.235592"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:50:23.236285"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:50:23 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.4ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 21:50:23 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.4ms) Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 21:50:23 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.7ms) Completed 200 OK in 12ms (Views: 6.3ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$XLcWdQb5FdDzRpTPsX6kE..Qm3fKLTGQp4D1yyS.kyp9OZSWiCpYu"], ["created_at", "2016-10-03 01:50:23.334844"], ["updated_at", "2016-10-03 01:50:23.334844"]]  (0.4ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:50:25 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (3.2ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 21:50:26 -0400 Started GET "/assets/application-ae2f3e9153ab8790e8aa4db3ee24569c31c04e9721cf338869bc8e4f22fac81c.js" for 127.0.0.1 at 2016-10-02 21:50:26 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:50:26 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:50:26.609736"], ["current_sign_in_at", "2016-10-03 01:50:26.609736"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:50:26.610777"], ["id", 3]]  (6.2ms) COMMIT Redirected to http://127.0.0.1:58284/ Completed 302 Found in 18ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:50:26 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 01:50:26.768426"], ["updated_at", "2016-10-03 01:50:26.768426"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 01:50:26.768426"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:50:26 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.5ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (13.0ms) Completed 200 OK in 45ms (Views: 23.8ms | ActiveRecord: 3.9ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 21:50:27 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (2.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (5.8ms) Completed 200 OK in 26ms (Views: 9.7ms | ActiveRecord: 2.1ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:50:29 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "stripe_token"=>"test_tok_1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 SQL (0.3ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-03 01:50:29.424299"], ["id", 3]]  (0.3ms) COMMIT  (0.1ms) BEGIN Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (0.7ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 2], ["customer_id", 3], ["stripe_id", "test_su_4"], ["created_at", "2016-10-03 01:50:29.434686"], ["updated_at", "2016-10-03 01:50:29.434686"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-03 01:50:29.434686"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.4ms) COMMIT Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]]  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 3], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 9], ["exp_year", 2018], ["fingerprint", "hrLgWzEscxDirlpO"], ["funding", "credit"], ["last4", "4242"], ["name", "Johnny App"], ["created_at", "2016-10-03 01:50:29.462964"], ["updated_at", "2016-10-03 01:50:29.462964"]]  (0.4ms) COMMIT Redirected to http://127.0.0.1:58284/tang/account/subscription Completed 302 Found in 56ms (ActiveRecord: 6.6ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:50:29 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > 0) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.6ms) Completed 200 OK in 10ms (Views: 3.9ms | ActiveRecord: 2.0ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.1ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (34.3ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.2ms) BEGIN User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$hYuX3fz//Yjo2JnTA.WlmOK.U8nUCStFyS1MpHW9r6yIieX8A7GKC"], ["created_at", "2016-10-03 01:50:34.254133"], ["updated_at", "2016-10-03 01:50:34.254133"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:50:34 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.2ms) Rendered devise/sessions/new.html.erb within layouts/application (3.3ms) Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:50:34 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:50:34.674726"], ["current_sign_in_at", "2016-10-03 01:50:34.674726"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:50:34.675436"], ["id", 1]]  (5.7ms) COMMIT Redirected to http://127.0.0.1:58284/ Completed 302 Found in 14ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:50:34 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 01:50:34.819444"], ["updated_at", "2016-10-03 01:50:34.819444"]] SQL (0.4ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 01:50:34.819444"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:50:34 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.9ms) Completed 200 OK in 8ms (Views: 4.0ms | ActiveRecord: 1.4ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 21:50:35 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.2ms) Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.6ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:50:37 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"test_tok_1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 1) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 1) LIMIT 1 SQL (0.3ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-03 01:50:37.089085"], ["id", 1]]  (5.7ms) COMMIT  (0.1ms) BEGIN Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (27.6ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 1], ["customer_id", 1], ["stripe_id", "test_su_4"], ["created_at", "2016-10-03 01:50:37.102644"], ["updated_at", "2016-10-03 01:50:37.102644"]] SQL (0.4ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 01:50:37.102644"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (5.5ms) COMMIT Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]]  (0.1ms) BEGIN SQL (17.2ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 1], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 9], ["exp_year", 2018], ["fingerprint", "kqPcjUYivSuYicoL"], ["funding", "credit"], ["last4", "0002"], ["name", "Johnny App"], ["created_at", "2016-10-03 01:50:37.142180"], ["updated_at", "2016-10-03 01:50:37.142180"]]  (11.8ms) COMMIT Redirected to http://127.0.0.1:58284/tang/account/subscription Completed 302 Found in 91ms (ActiveRecord: 70.6ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:50:37 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > 0) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.5ms) Completed 200 OK in 8ms (Views: 3.6ms | ActiveRecord: 1.4ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (233.6ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (17.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (23.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$4OTbWaf3WQ2lSfq2KPVcPOgCAUOSOMHrunbL/oeFclxR/6LyGG8d2"], ["created_at", "2016-10-03 01:51:33.790422"], ["updated_at", "2016-10-03 01:51:33.790422"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:51:33 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (35.7ms) Completed 200 OK in 301ms (Views: 286.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:51:34 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:51:34.152386"], ["current_sign_in_at", "2016-10-03 01:51:34.152386"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:51:34.153215"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 21ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:51:34 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 9ms (Views: 8.0ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 21:51:34 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (8.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (12.6ms) Completed 200 OK in 42ms (Views: 25.2ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 21:51:34 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (6.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 01:51:34.272681"], ["updated_at", "2016-10-03 01:51:34.272681"]] SQL (18.0ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 01:51:34.272681"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 794ms (ActiveRecord: 26.8ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 21:51:35 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (8.3ms) Completed 200 OK in 18ms (Views: 12.7ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$hPs.R/6syzltGqbPNXBdBeToLISES5CSfBV1e041Ja02PUyEj03qO"], ["created_at", "2016-10-03 01:51:35.091501"], ["updated_at", "2016-10-03 01:51:35.091501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:51:35 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:51:35 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:51:35.105089"], ["current_sign_in_at", "2016-10-03 01:51:35.105089"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:51:35.105998"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:51:35 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.5ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 21:51:35 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.8ms) Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 21:51:35 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.6ms) Completed 200 OK in 10ms (Views: 4.8ms | ActiveRecord: 0.8ms)  (0.3ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$T.L6rNFv7/NSsJi3NUeQeOhdvS5D86wv5FszS1p98msSiDD8ht6Z."], ["created_at", "2016-10-03 01:51:35.192661"], ["updated_at", "2016-10-03 01:51:35.192661"]]  (6.1ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:51:37 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (3.7ms) Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 21:51:38 -0400 Started GET "/assets/application-ae2f3e9153ab8790e8aa4db3ee24569c31c04e9721cf338869bc8e4f22fac81c.js" for 127.0.0.1 at 2016-10-02 21:51:38 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:51:38 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:51:38.596085"], ["current_sign_in_at", "2016-10-03 01:51:38.596085"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:51:38.596946"], ["id", 3]]  (6.1ms) COMMIT Redirected to http://127.0.0.1:58927/ Completed 302 Found in 18ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:51:38 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 01:51:38.754997"], ["updated_at", "2016-10-03 01:51:38.754997"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 01:51:38.754997"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:51:38 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (33.5ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.6ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (9.9ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (22.5ms) Completed 200 OK in 88ms (Views: 24.5ms | ActiveRecord: 46.9ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 21:51:39 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (6.7ms) Completed 200 OK in 26ms (Views: 11.5ms | ActiveRecord: 2.0ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:51:41 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "stripe_token"=>"test_tok_1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 SQL (0.2ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-03 01:51:41.573038"], ["id", 3]]  (6.2ms) COMMIT  (0.2ms) BEGIN Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (0.7ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 2], ["customer_id", 3], ["stripe_id", "test_su_4"], ["created_at", "2016-10-03 01:51:41.589572"], ["updated_at", "2016-10-03 01:51:41.589572"]] SQL (0.4ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-03 01:51:41.589572"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.3ms) COMMIT Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]]  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 3], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 9], ["exp_year", 2018], ["fingerprint", "hrLgWzEscxDirlpO"], ["funding", "credit"], ["last4", "4242"], ["name", "Johnny App"], ["created_at", "2016-10-03 01:51:41.622449"], ["updated_at", "2016-10-03 01:51:41.622449"]]  (0.3ms) COMMIT Redirected to http://127.0.0.1:58927/tang/account/subscription Completed 302 Found in 67ms (ActiveRecord: 14.5ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:51:41 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > 0) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (3.9ms) Completed 200 OK in 12ms (Views: 5.9ms | ActiveRecord: 2.0ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (7.1ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (0.9ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (31.6ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$j8w6JAacPGdTmS5AsJL9lOhxSQ2QdqHGDysV8v.1j/2DO78nwXZbG"], ["created_at", "2016-10-03 01:51:46.365726"], ["updated_at", "2016-10-03 01:51:46.365726"]]  (0.2ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:51:46 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.6ms) Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:51:46 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:51:46.759599"], ["current_sign_in_at", "2016-10-03 01:51:46.759599"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:51:46.760290"], ["id", 1]]  (5.7ms) COMMIT Redirected to http://127.0.0.1:58927/ Completed 302 Found in 13ms (ActiveRecord: 6.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:51:46 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.1ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (4.5ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 01:51:46.895866"], ["updated_at", "2016-10-03 01:51:46.895866"]] SQL (0.5ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 01:51:46.895866"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:51:46 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (3.6ms) Completed 200 OK in 10ms (Views: 6.0ms | ActiveRecord: 1.6ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 21:51:47 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.6ms) Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:51:49 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"test_tok_1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (2.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (2.4ms) Completed 200 OK in 10ms (Views: 5.2ms | ActiveRecord: 0.7ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (37.6ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (23.5ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$PEe.4XzZSUQg7POWEH7a6ONLiX8sS2bSnQVp5rd9P.QZLLde3QUCq"], ["created_at", "2016-10-03 01:52:18.114873"], ["updated_at", "2016-10-03 01:52:18.114873"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:52:18 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.2ms) Rendered devise/sessions/new.html.erb within layouts/application (35.1ms) Completed 200 OK in 287ms (Views: 274.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:52:18 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:52:18.463186"], ["current_sign_in_at", "2016-10-03 01:52:18.463186"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:52:18.463964"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 19ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:52:18 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 21:52:18 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (7.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (10.9ms) Completed 200 OK in 40ms (Views: 22.4ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 21:52:18 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 01:52:18.567019"], ["updated_at", "2016-10-03 01:52:18.567019"]] SQL (12.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 01:52:18.567019"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 911ms (ActiveRecord: 15.1ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 21:52:19 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (8.4ms) Completed 200 OK in 19ms (Views: 13.2ms | ActiveRecord: 0.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$xDvbOMXFc2zBbMWXGPSYF.HcFMx.0.0J9RJrcWIJACjjcIB6/Dui2"], ["created_at", "2016-10-03 01:52:19.510505"], ["updated_at", "2016-10-03 01:52:19.510505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:52:19 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:52:19 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:52:19.523725"], ["current_sign_in_at", "2016-10-03 01:52:19.523725"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:52:19.524363"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:52:19 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 21:52:19 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.4ms) Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 21:52:19 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.7ms) Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 0.8ms)  (0.3ms) ROLLBACK User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$u.OScKHOAHSYoJFxla8vMuHV.gwH8UzzsVuW7NezLlgeGZ3h6TWFS"], ["created_at", "2016-10-03 01:52:19.608043"], ["updated_at", "2016-10-03 01:52:19.608043"]]  (7.5ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:52:22 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.7ms) Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 21:52:22 -0400 Started GET "/assets/application-ae2f3e9153ab8790e8aa4db3ee24569c31c04e9721cf338869bc8e4f22fac81c.js" for 127.0.0.1 at 2016-10-02 21:52:22 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:52:23 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:52:23.463684"], ["current_sign_in_at", "2016-10-03 01:52:23.463684"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:52:23.464629"], ["id", 3]]  (6.2ms) COMMIT Redirected to http://127.0.0.1:59454/ Completed 302 Found in 17ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:52:23 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 01:52:23.633191"], ["updated_at", "2016-10-03 01:52:23.633191"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 01:52:23.633191"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:52:23 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.7ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (11.3ms) Completed 200 OK in 45ms (Views: 21.9ms | ActiveRecord: 3.9ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 21:52:23 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (6.3ms) Completed 200 OK in 27ms (Views: 10.3ms | ActiveRecord: 2.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:52:26 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "stripe_token"=>"test_tok_1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 SQL (0.3ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-03 01:52:26.473646"], ["id", 3]]  (0.3ms) COMMIT  (0.1ms) BEGIN Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (0.8ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 2], ["customer_id", 3], ["stripe_id", "test_su_4"], ["created_at", "2016-10-03 01:52:26.482743"], ["updated_at", "2016-10-03 01:52:26.482743"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-03 01:52:26.482743"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.3ms) COMMIT Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]]  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 3], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 9], ["exp_year", 2018], ["fingerprint", "hrLgWzEscxDirlpO"], ["funding", "credit"], ["last4", "4242"], ["name", "Johnny App"], ["created_at", "2016-10-03 01:52:26.516864"], ["updated_at", "2016-10-03 01:52:26.516864"]]  (0.3ms) COMMIT Redirected to http://127.0.0.1:59454/tang/account/subscription Completed 302 Found in 59ms (ActiveRecord: 6.5ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:52:26 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > 0) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.6ms) Completed 200 OK in 10ms (Views: 3.8ms | ActiveRecord: 1.8ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.0ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (38.1ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.2ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$qqUnO8CnuyHDpqfAQGllZ.iDuTyUQVdgSVRd0xI8QO2vqszFWCy5e"], ["created_at", "2016-10-03 01:52:31.375203"], ["updated_at", "2016-10-03 01:52:31.375203"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:52:31 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:52:31 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:52:31.772275"], ["current_sign_in_at", "2016-10-03 01:52:31.772275"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:52:31.773200"], ["id", 1]]  (5.6ms) COMMIT Redirected to http://127.0.0.1:59454/ Completed 302 Found in 14ms (ActiveRecord: 6.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:52:31 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (6.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 01:52:31.897491"], ["updated_at", "2016-10-03 01:52:31.897491"]] SQL (6.4ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 01:52:31.897491"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:52:31 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.6ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.6ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.5ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (3.4ms) Completed 200 OK in 17ms (Views: 5.0ms | ActiveRecord: 2.1ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 21:52:32 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (1.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.6ms) Completed 200 OK in 8ms (Views: 5.0ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:52:34 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"test_tok_1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.1ms) Completed 200 OK in 7ms (Views: 2.5ms | ActiveRecord: 0.8ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (39.3ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$u9qO8j3toQbY512CR/xLK.AjdtZ3GWVvsyplUDnfp6uTSwqtU2mF."], ["created_at", "2016-10-03 01:56:52.007276"], ["updated_at", "2016-10-03 01:56:52.007276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:56:52 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.0ms) Rendered devise/sessions/new.html.erb within layouts/application (23.6ms) Completed 200 OK in 235ms (Views: 222.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:56:52 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:56:52.276400"], ["current_sign_in_at", "2016-10-03 01:56:52.276400"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:56:52.277117"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 17ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:56:52 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 21:56:52 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (10.0ms) Completed 200 OK in 39ms (Views: 23.3ms | ActiveRecord: 1.6ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 21:56:52 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 01:56:52.373868"], ["updated_at", "2016-10-03 01:56:52.373868"]] SQL (0.6ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 01:56:52.373868"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 497ms (ActiveRecord: 3.2ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-02 21:56:52 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (6.7ms) Completed 200 OK in 16ms (Views: 11.8ms | ActiveRecord: 0.4ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$1.gWJCKFPjc.WXeehRY9neyZRRovdK6zlJ5ey0xyEtZaMhj4mgYDW"], ["created_at", "2016-10-03 01:56:52.899749"], ["updated_at", "2016-10-03 01:56:52.899749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:56:52 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:56:52 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:56:52.913707"], ["current_sign_in_at", "2016-10-03 01:56:52.913707"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:56:52.914442"], ["id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:56:52 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.1ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 21:56:52 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.3ms) Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 21:56:52 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.4ms) Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$KO90/TCA4Hyeoe1G0jEjgOxsKpDWwmApVjTuObHHyP9devuK8TDSq"], ["created_at", "2016-10-03 01:56:52.996659"], ["updated_at", "2016-10-03 01:56:52.996659"]]  (0.5ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:56:55 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (3.2ms) Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 21:56:56 -0400 Started GET "/assets/application-ae2f3e9153ab8790e8aa4db3ee24569c31c04e9721cf338869bc8e4f22fac81c.js" for 127.0.0.1 at 2016-10-02 21:56:56 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:56:56 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:56:56.651117"], ["current_sign_in_at", "2016-10-03 01:56:56.651117"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:56:56.652086"], ["id", 3]]  (6.2ms) COMMIT Redirected to http://127.0.0.1:60267/ Completed 302 Found in 17ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:56:56 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 01:56:56.813042"], ["updated_at", "2016-10-03 01:56:56.813042"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 01:56:56.813042"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.5ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:56:56 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (18.6ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.7ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (13.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (24.6ms) Completed 200 OK in 83ms (Views: 23.5ms | ActiveRecord: 35.5ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-02 21:56:57 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (4.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (9.0ms) Completed 200 OK in 34ms (Views: 14.7ms | ActiveRecord: 2.3ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:56:59 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "stripe_token"=>"test_tok_1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 SQL (0.3ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-03 01:56:59.497236"], ["id", 3]]  (6.2ms) COMMIT  (0.2ms) BEGIN Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (0.8ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 2], ["customer_id", 3], ["stripe_id", "test_su_4"], ["created_at", "2016-10-03 01:56:59.514162"], ["updated_at", "2016-10-03 01:56:59.514162"]] SQL (0.4ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-03 01:56:59.514162"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.4ms) COMMIT Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]]  (0.2ms) BEGIN SQL (0.4ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 3], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 9], ["exp_year", 2018], ["fingerprint", "hrLgWzEscxDirlpO"], ["funding", "credit"], ["last4", "4242"], ["name", "Johnny App"], ["created_at", "2016-10-03 01:56:59.552003"], ["updated_at", "2016-10-03 01:56:59.552003"]]  (0.3ms) COMMIT Redirected to http://127.0.0.1:60267/tang/account/subscription Completed 302 Found in 73ms (ActiveRecord: 13.5ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:56:59 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > 0) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (3.5ms) Completed 200 OK in 11ms (Views: 5.0ms | ActiveRecord: 2.1ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.0ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (38.8ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$p5Sh8m7bDlZdQo7W8fJWO.iX884kq6di7mpQ2YJXP7.tm1f5QJ0Ly"], ["created_at", "2016-10-03 01:57:04.529570"], ["updated_at", "2016-10-03 01:57:04.529570"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:57:04 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 21:57:04 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 01:57:04.925655"], ["current_sign_in_at", "2016-10-03 01:57:04.925655"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 01:57:04.926279"], ["id", 1]]  (5.6ms) COMMIT Redirected to http://127.0.0.1:60267/ Completed 302 Found in 13ms (ActiveRecord: 6.5ms) Started GET "/" for 127.0.0.1 at 2016-10-02 21:57:04 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (6.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 01:57:05.061333"], ["updated_at", "2016-10-03 01:57:05.061333"]] SQL (0.6ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 01:57:05.061333"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:57:05 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.9ms) Completed 200 OK in 9ms (Views: 4.0ms | ActiveRecord: 1.4ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 21:57:05 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (1.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.4ms) Completed 200 OK in 6ms (Views: 3.1ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 21:57:07 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"test_tok_1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 6ms (Views: 2.3ms | ActiveRecord: 0.7ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (38.8ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (2.5ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$43VAf1wMLCh6B0cGC8F7FO9oF.VHbr/88c0JRCaGzOTIYurL/jNkq"], ["created_at", "2016-10-03 02:00:35.096778"], ["updated_at", "2016-10-03 02:00:35.096778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$h03Xzd/uCNb8UU4/r4jE4uM1ZlfgYwAsRO.vrGE3Bb6KLTYkVzWme"], ["created_at", "2016-10-03 02:00:35.116139"], ["updated_at", "2016-10-03 02:00:35.116139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$zLFYxoCkLbhn.HgL.Ot5ZOmHw9Ni5IYkxN62iEX0HPMBw5E6N7mBu"], ["created_at", "2016-10-03 02:00:35.122139"], ["updated_at", "2016-10-03 02:00:35.122139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 44ms (Views: 25.7ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$A2fKswx1wt9001RybPgLIul6rHxf/s79tF9MEg26JZ7ssha1nXSJq"], ["created_at", "2016-10-03 02:00:35.179780"], ["updated_at", "2016-10-03 02:00:35.179780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$xesLS9awOw94qP3y3MTyx.ZsXzkLtKmgaVNacY2M4u0rbTYsakcwq"], ["created_at", "2016-10-03 02:00:35.186078"], ["updated_at", "2016-10-03 02:00:35.186078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$upCQPi.AbZzvca4FRxHaV.qOtyGGctgj2ce33uvWM8/9r9q3SMDt2"], ["created_at", "2016-10-03 02:00:35.195742"], ["updated_at", "2016-10-03 02:00:35.195742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$JzODq4T.XUMWknfsZj3i/.AgxCVb0FjRCbK7XTYovBg6mc9U0oaie"], ["created_at", "2016-10-03 02:00:35.200180"], ["updated_at", "2016-10-03 02:00:35.200180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$OCl90eDRvp8.qsyIISnwX..Z/zhKiFCbpWQ8n2/4qZAhDkcVLoVaa"], ["created_at", "2016-10-03 02:00:35.204918"], ["updated_at", "2016-10-03 02:00:35.204918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$4xAAHM/sd/aK3XdmlJM3z.S5gr47UX3OZHLnheHheUqQc1ML6AArK"], ["created_at", "2016-10-03 02:00:35.209303"], ["updated_at", "2016-10-03 02:00:35.209303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$fzbSOJzP7JaFiQX7xGS4..L6nbzm89wPlieY5Rm50zqt0F82HXRiS"], ["created_at", "2016-10-03 02:00:35.214901"], ["updated_at", "2016-10-03 02:00:35.214901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$ute/6m/CO.Qt/x5RWVeEXednzIO.Kf//PraSmvsV6NrBlms1Cwm5a"], ["created_at", "2016-10-03 02:00:35.219986"], ["updated_at", "2016-10-03 02:00:35.219986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$6u9mnNLDs6qifgmt4XP3k.9g8WkQM46HkZg.MkzKJXg/6STfd0WbW"], ["created_at", "2016-10-03 02:00:35.224640"], ["updated_at", "2016-10-03 02:00:35.224640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$OLLm.AXCzgdEPwY3cG/zo.hOW7VCrIWeVdg7iUBAfnghxBfDGn6wq"], ["created_at", "2016-10-03 02:00:35.229306"], ["updated_at", "2016-10-03 02:00:35.229306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$WsYWO1pXoRrZRFMC1BVDceP/U.2Rdmh9hDq5B9YfuTWGlyHF346pO"], ["created_at", "2016-10-03 02:00:35.234013"], ["updated_at", "2016-10-03 02:00:35.234013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$bN9WidUKmSLfylz2v6q0QO9/o2gvzse0iXhvINilfMdaI4vEZdah."], ["created_at", "2016-10-03 02:00:35.239044"], ["updated_at", "2016-10-03 02:00:35.239044"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$FJL5VXe9VzqM0l7c2giZius/TgE3hQYxzAArj/HtMnqPQ5ETJdnXW"], ["created_at", "2016-10-03 02:00:35.243825"], ["updated_at", "2016-10-03 02:00:35.243825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$IS3rfZ3N0tDroTIOpu0Kk.RVzzB3Ax5jtLBLlk7r1yVfbCT07c5F2"], ["created_at", "2016-10-03 02:00:35.249936"], ["updated_at", "2016-10-03 02:00:35.249936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$aI4ui8V42yfjAzYTgo0h9.Voef4gNT/IkEj80z1CZo8Ez5O0o0TZ6"], ["created_at", "2016-10-03 02:00:35.256170"], ["updated_at", "2016-10-03 02:00:35.256170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$j92ykCxRrhxWoWo7oSfmaOGp7dMky9E.4B6Hl4OHMcl66nrD4yZ.u"], ["created_at", "2016-10-03 02:00:35.262144"], ["updated_at", "2016-10-03 02:00:35.262144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$8wdkEmVFPl2OXJ0TwItkluAQJ.KHapBAtgqG6NmZQOopFvDpcSlWC"], ["created_at", "2016-10-03 02:00:35.267212"], ["updated_at", "2016-10-03 02:00:35.267212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$byqE4lCErvZHnJOE2zXiD.wPY33txMd5KwRTT9THaGCP/csXFVzpy"], ["created_at", "2016-10-03 02:00:35.271757"], ["updated_at", "2016-10-03 02:00:35.271757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$a/rJZg2upPdyTR/p9lpySuXrIOVgpgMu7uUmXIDfTi70UMOOTU9CK"], ["created_at", "2016-10-03 02:00:35.276755"], ["updated_at", "2016-10-03 02:00:35.276755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$kPHpnzHME841zNjaMhZn4ut54/BzMm4dulguUX8UHOIUIdokPT21W"], ["created_at", "2016-10-03 02:00:35.282393"], ["updated_at", "2016-10-03 02:00:35.282393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$W3RUs/6xbvzIwuK.ML9GOubPxxm0s85KkNJXcRvPUYp2RmgIthCE."], ["created_at", "2016-10-03 02:00:35.287067"], ["updated_at", "2016-10-03 02:00:35.287067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$K13BmLlRMD2.4cLfMzRIiuDdk5OZjXKg8aQQYppkV9Oj56ZKWP3se"], ["created_at", "2016-10-03 02:00:35.291809"], ["updated_at", "2016-10-03 02:00:35.291809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$V42./E6802cnhwMXp0ZGQ.r.3dlLbg0N6vMjfnHWfr5FB3Q2WiwWO"], ["created_at", "2016-10-03 02:00:35.296173"], ["updated_at", "2016-10-03 02:00:35.296173"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$Y5n0yG3i4EK70vMRu0AsHezPYDOmcydZZFD7Hm5JtLgJi1znZ6YgK"], ["created_at", "2016-10-03 02:00:35.302368"], ["updated_at", "2016-10-03 02:00:35.302368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'fb2882fa-3fab-4950-8256-6b0fdc444e5e' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'fb2882fa-3fab-4950-8256-6b0fdc444e5e' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "fb2882fa-3fab-4950-8256-6b0fdc444e5e"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 02:00:35.314414"], ["updated_at", "2016-10-03 02:00:35.314414"]] SQL (5.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-03 02:00:35.314414"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 14ms (Views: 11.8ms | ActiveRecord: 0.3ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans"  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$UUR56FJ/qfotHP3BaSAqIenPGcLQ1IGQ8kak3sHkQSdBZvhcuAiM."], ["created_at", "2016-10-03 02:00:36.188425"], ["updated_at", "2016-10-03 02:00:36.188425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'fb2882fa-3fab-4950-8256-6b0fdc444e5e' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'fb2882fa-3fab-4950-8256-6b0fdc444e5e' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "fb2882fa-3fab-4950-8256-6b0fdc444e5e"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 02:00:36.192258"], ["updated_at", "2016-10-03 02:00:36.192258"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-03 02:00:36.192258"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 28]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (0.3ms) Completed 200 OK in 10ms (Views: 5.6ms | ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$AD./GH42arUAjECdRGzPIeIF/7iGmzq52R6G8ekPFprNdNXC6MqaK"], ["created_at", "2016-10-03 02:00:36.589822"], ["updated_at", "2016-10-03 02:00:36.589822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$Nuf5Vck9wA2oh1xtFGxfZuZwYo5/sHRFrVZhGTXHmWdCrpi4dSi.q"], ["created_at", "2016-10-03 02:00:36.605959"], ["updated_at", "2016-10-03 02:00:36.605959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'fb2882fa-3fab-4950-8256-6b0fdc444e5e' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'fb2882fa-3fab-4950-8256-6b0fdc444e5e' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "fb2882fa-3fab-4950-8256-6b0fdc444e5e"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 02:00:36.609475"], ["updated_at", "2016-10-03 02:00:36.609475"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-03 02:00:36.609475"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#edit as HTML Parameters: {"id"=>"3"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 30]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.2ms) Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$QVJqAMIyaz1Yf7IuYap/EeXkWycvXrZK7Hq8e/fnZB5zf3YrsMzMW"], ["created_at", "2016-10-03 02:00:36.985218"], ["updated_at", "2016-10-03 02:00:36.985218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"fb2882fa-3fab-4950-8256-6b0fdc444e5e", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'fb2882fa-3fab-4950-8256-6b0fdc444e5e' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'fb2882fa-3fab-4950-8256-6b0fdc444e5e' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "fb2882fa-3fab-4950-8256-6b0fdc444e5e"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 02:00:36.995582"], ["updated_at", "2016-10-03 02:00:36.995582"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "31"], ["created_at", "2016-10-03 02:00:36.995582"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/4 Completed 302 Found in 370ms (ActiveRecord: 1.3ms)  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$CQ788GamMaSt9mtGtmhSxuTunPDakdehP.C0Pq1ngiNIe66p4NYye"], ["created_at", "2016-10-03 02:00:37.367130"], ["updated_at", "2016-10-03 02:00:37.367130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"fb2882fa-3fab-4950-8256-6b0fdc444e5e", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'fb2882fa-3fab-4950-8256-6b0fdc444e5e' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'fb2882fa-3fab-4950-8256-6b0fdc444e5e' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "fb2882fa-3fab-4950-8256-6b0fdc444e5e"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 02:00:37.375405"], ["updated_at", "2016-10-03 02:00:37.375405"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "32"], ["created_at", "2016-10-03 02:00:37.375405"], ["item_id", 5], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/5 Completed 302 Found in 378ms (ActiveRecord: 1.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$MRfmnaz0HECaA5KUvfeWZekzHJgpvG41T92iXqARvPWfQUUd8I3GC"], ["created_at", "2016-10-03 02:00:37.757266"], ["updated_at", "2016-10-03 02:00:37.757266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"fb2882fa-3fab-4950-8256-6b0fdc444e5e", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'fb2882fa-3fab-4950-8256-6b0fdc444e5e' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'fb2882fa-3fab-4950-8256-6b0fdc444e5e' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "fb2882fa-3fab-4950-8256-6b0fdc444e5e"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 02:00:37.767219"], ["updated_at", "2016-10-03 02:00:37.767219"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "33"], ["created_at", "2016-10-03 02:00:37.767219"], ["item_id", 6], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/6 Completed 302 Found in 385ms (ActiveRecord: 1.2ms) Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$6rXKTzmmr.xUj7CT4VC2EO/zIoHJpkzUzeTCmzZKJBtM9LENM.sdW"], ["created_at", "2016-10-03 02:00:38.155817"], ["updated_at", "2016-10-03 02:00:38.155817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"fb2882fa-3fab-4950-8256-6b0fdc444e5e", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'fb2882fa-3fab-4950-8256-6b0fdc444e5e' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.0ms) Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$rXfBwU0G3iTOvrsFMMLSmeNJHV6BsvVt6CnURaFgNKj8H8NkSQYZ."], ["created_at", "2016-10-03 02:00:38.177636"], ["updated_at", "2016-10-03 02:00:38.177636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"fb2882fa-3fab-4950-8256-6b0fdc444e5e", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'fb2882fa-3fab-4950-8256-6b0fdc444e5e' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.1ms) Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$EZxNV9Q.smBD.0shExnckOsvAYeanTUquqYhy5IJ2gMM2.DWehbda"], ["created_at", "2016-10-03 02:00:38.193000"], ["updated_at", "2016-10-03 02:00:38.193000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'fb2882fa-3fab-4950-8256-6b0fdc444e5e' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'fb2882fa-3fab-4950-8256-6b0fdc444e5e' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "fb2882fa-3fab-4950-8256-6b0fdc444e5e"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 02:00:38.196601"], ["updated_at", "2016-10-03 02:00:38.196601"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-03 02:00:38.196601"], ["item_id", 7], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$CvYUhx4AYCyJwiSftchsCegjwqck.1D/uq1NHU3OIrg4lf9x4Wo0K"], ["created_at", "2016-10-03 02:00:38.582734"], ["updated_at", "2016-10-03 02:00:38.582734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'fb2882fa-3fab-4950-8256-6b0fdc444e5e' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'fb2882fa-3fab-4950-8256-6b0fdc444e5e' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "fb2882fa-3fab-4950-8256-6b0fdc444e5e"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 02:00:38.586147"], ["updated_at", "2016-10-03 02:00:38.586147"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-03 02:00:38.586147"], ["item_id", 8], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"fb2882fa-3fab-4950-8256-6b0fdc444e5e", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"8"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 37]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 8]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'fb2882fa-3fab-4950-8256-6b0fdc444e5e' AND "tang_plans"."id" != 8) LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'fb2882fa-3fab-4950-8256-6b0fdc444e5e' AND "tang_plans"."id" != 8) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/8 Completed 302 Found in 760ms (ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$BHnUqnL7EfjBx7CvtAHQCe/qCsNUGx3cKVjlbbg4tx6sKaNFs37uu"], ["created_at", "2016-10-03 02:00:39.756652"], ["updated_at", "2016-10-03 02:00:39.756652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'fb2882fa-3fab-4950-8256-6b0fdc444e5e' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'fb2882fa-3fab-4950-8256-6b0fdc444e5e' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "fb2882fa-3fab-4950-8256-6b0fdc444e5e"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 02:00:39.760351"], ["updated_at", "2016-10-03 02:00:39.760351"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "37"], ["created_at", "2016-10-03 02:00:39.760351"], ["item_id", 9], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"fb2882fa-3fab-4950-8256-6b0fdc444e5e", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"9"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 38]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 9]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'fb2882fa-3fab-4950-8256-6b0fdc444e5e' AND "tang_plans"."id" != 9) LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'fb2882fa-3fab-4950-8256-6b0fdc444e5e' AND "tang_plans"."id" != 9) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/9 Completed 302 Found in 722ms (ActiveRecord: 1.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$R1kll9rxceR9BKaal3GzcOI248WppY7iGHSgfh7peDVb.5olN0iAa"], ["created_at", "2016-10-03 02:00:40.856876"], ["updated_at", "2016-10-03 02:00:40.856876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'fb2882fa-3fab-4950-8256-6b0fdc444e5e' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'fb2882fa-3fab-4950-8256-6b0fdc444e5e' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "fb2882fa-3fab-4950-8256-6b0fdc444e5e"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 02:00:40.861058"], ["updated_at", "2016-10-03 02:00:40.861058"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "38"], ["created_at", "2016-10-03 02:00:40.861058"], ["item_id", 10], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"fb2882fa-3fab-4950-8256-6b0fdc444e5e", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"10"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 39]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 10]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'fb2882fa-3fab-4950-8256-6b0fdc444e5e' AND "tang_plans"."id" != 10) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$Q3sWVJK88Efdq1WU02rqwe6fBrSgh37Rw5RKVYfNd1jbkpDgDKG0a"], ["created_at", "2016-10-03 02:00:41.306152"], ["updated_at", "2016-10-03 02:00:41.306152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'fb2882fa-3fab-4950-8256-6b0fdc444e5e' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'fb2882fa-3fab-4950-8256-6b0fdc444e5e' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "fb2882fa-3fab-4950-8256-6b0fdc444e5e"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 02:00:41.309322"], ["updated_at", "2016-10-03 02:00:41.309322"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "39"], ["created_at", "2016-10-03 02:00:41.309322"], ["item_id", 11], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"fb2882fa-3fab-4950-8256-6b0fdc444e5e", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"11"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 40]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 11]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'fb2882fa-3fab-4950-8256-6b0fdc444e5e' AND "tang_plans"."id" != 11) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$iER/B31KgX/29C8DaIGh7OJil2.RIbpsROMUQeVKa0vU5eVBu4c/6"], ["created_at", "2016-10-03 02:00:41.699778"], ["updated_at", "2016-10-03 02:00:41.699778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'fb2882fa-3fab-4950-8256-6b0fdc444e5e' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'fb2882fa-3fab-4950-8256-6b0fdc444e5e' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "fb2882fa-3fab-4950-8256-6b0fdc444e5e"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 02:00:41.703541"], ["updated_at", "2016-10-03 02:00:41.703541"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "40"], ["created_at", "2016-10-03 02:00:41.703541"], ["item_id", 12], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"12"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 41]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 12]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 12], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 12\nstripe_id: fb2882fa-3fab-4950-8256-6b0fdc444e5e\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: 0\nhighlight: false\ncreated_at: 2016-10-03 02:00:41.703541000 Z\nupdated_at: 2016-10-03 02:00:41.703541000 Z\n"], ["whodunnit", "41"], ["created_at", "2016-10-03 02:00:42.080148"]] SQL (0.2ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 759ms (ActiveRecord: 0.8ms)  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$ZU5.yxoIvZbH4FaSOKuEd.cSI87IOAz6XzS7iGrjegJ/1s2Pb2Osq"], ["created_at", "2016-10-03 02:00:42.840404"], ["updated_at", "2016-10-03 02:00:42.840404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'fb2882fa-3fab-4950-8256-6b0fdc444e5e' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'fb2882fa-3fab-4950-8256-6b0fdc444e5e' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "fb2882fa-3fab-4950-8256-6b0fdc444e5e"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 02:00:42.843952"], ["updated_at", "2016-10-03 02:00:42.843952"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "41"], ["created_at", "2016-10-03 02:00:42.843952"], ["item_id", 13], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"13"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 42]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 13]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 13], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 13\nstripe_id: fb2882fa-3fab-4950-8256-6b0fdc444e5e\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: 0\nhighlight: false\ncreated_at: 2016-10-03 02:00:42.843952000 Z\nupdated_at: 2016-10-03 02:00:42.843952000 Z\n"], ["whodunnit", "42"], ["created_at", "2016-10-03 02:00:43.292282"]] SQL (0.3ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 746ms (ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$PiqRJVjKIgiT3IAXBFm7I.QveIAaNWwi6rt6.w2nOBLcoPXVS/GTq"], ["created_at", "2016-10-03 02:00:44.042907"], ["updated_at", "2016-10-03 02:00:44.042907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$AkYWJmIdQay2UeJSb7WuvOUtUpNp8iyEu42dU6io0IQuICApW2Pa2"], ["created_at", "2016-10-03 02:00:44.048155"], ["updated_at", "2016-10-03 02:00:44.048155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$j6hN/iWvoefNKlvpn0gxReerBBa.LhWd6cqxgAYN/OkOODypAgPP."], ["created_at", "2016-10-03 02:00:44.053671"], ["updated_at", "2016-10-03 02:00:44.053671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$ZiRRxnutLIvWHPBEUEtwjuQXGYs7ocmBeIFp.6J6QZpn9AJkBFZUy"], ["created_at", "2016-10-03 02:00:44.058796"], ["updated_at", "2016-10-03 02:00:44.058796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$HXHDSKSG6ov3AVGg1lSPYuuzdT0XVKJfZ7A/N1dugxfd4XUC9xA16"], ["created_at", "2016-10-03 02:00:44.063628"], ["updated_at", "2016-10-03 02:00:44.063628"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$dRCWuWodHlM4.ELDqru3huV/7.xRkhqsRgZ5b4lBVg2nFtWOArzVS"], ["created_at", "2016-10-03 02:00:44.068598"], ["updated_at", "2016-10-03 02:00:44.068598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$RJpuCTw/m.3EP6AWUoECGuLBapEpQqPNdG9/3yFE9ToYBhKA.GMZe"], ["created_at", "2016-10-03 02:00:44.073944"], ["updated_at", "2016-10-03 02:00:44.073944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$1N/sMt3N3coNfXpRbVbguuLuW7uHKRprPdWLw133Lvnh8SRkta68m"], ["created_at", "2016-10-03 02:00:44.078943"], ["updated_at", "2016-10-03 02:00:44.078943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$1VNZuT.p1M2hQ1sxyCr2veY2qVXmNhMT.4zML1GTi7oifTbitR06K"], ["created_at", "2016-10-03 02:00:44.083674"], ["updated_at", "2016-10-03 02:00:44.083674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$3V4dvS9gMEm4YPtq.8P6pe28.kCKPg.62BzC6jStSOPXtkPjShj9."], ["created_at", "2016-10-03 02:00:44.088466"], ["updated_at", "2016-10-03 02:00:44.088466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 16ms (Views: 9.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (3.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$74VoPV2Qt14JE4eHzL.ixu3DMxTsARkg.mKmY.jcsLFwEprT4HJ.C"], ["created_at", "2016-10-03 02:00:47.159723"], ["updated_at", "2016-10-03 02:00:47.159723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 22:00:47 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (24.4ms) Completed 200 OK in 398ms (Views: 385.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 22:00:47 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 02:00:47.600330"], ["current_sign_in_at", "2016-10-03 02:00:47.600330"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 02:00:47.601056"], ["id", 53]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 20ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 22:00:47 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.6ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 22:00:47 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (9.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (12.9ms) Completed 200 OK in 45ms (Views: 25.2ms | ActiveRecord: 1.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 22:00:47 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 02:00:47.746208"], ["updated_at", "2016-10-03 02:00:47.746208"]] SQL (0.4ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "53"], ["created_at", "2016-10-03 02:00:47.746208"], ["item_id", 14], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/14 Completed 302 Found in 802ms (ActiveRecord: 2.9ms) Started GET "/tang/admin/plans/14" for 127.0.0.1 at 2016-10-02 22:00:48 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"14"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 14]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (8.4ms) Completed 200 OK in 25ms (Views: 19.2ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$iLBKu.w5zEzXAGi0oa3qG.QkewhsKdLbr1aDva4QKxF2UFwJGECyO"], ["created_at", "2016-10-03 02:00:48.586190"], ["updated_at", "2016-10-03 02:00:48.586190"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 22:00:48 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.6ms) Rendered devise/sessions/new.html.erb within layouts/application (3.2ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 22:00:48 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 02:00:48.606107"], ["current_sign_in_at", "2016-10-03 02:00:48.606107"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 02:00:48.612780"], ["id", 54]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 14ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-02 22:00:48 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]] Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 22:00:48 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (5.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (5.8ms) Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 22:00:48 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.1ms) Completed 200 OK in 11ms (Views: 5.5ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$MpxwVONNEyHFgVegI.M6T.D5gFlDmooz6CWl8o/k4Dlyf1Eo3duQ."], ["created_at", "2016-10-03 02:00:48.711312"], ["updated_at", "2016-10-03 02:00:48.711312"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 22:00:51 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (3.2ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 22:00:51 -0400 Started GET "/assets/application-ae2f3e9153ab8790e8aa4db3ee24569c31c04e9721cf338869bc8e4f22fac81c.js" for 127.0.0.1 at 2016-10-02 22:00:51 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 22:00:52 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 02:00:52.411395"], ["current_sign_in_at", "2016-10-03 02:00:52.411395"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 02:00:52.412429"], ["id", 55]]  (6.2ms) COMMIT Redirected to http://127.0.0.1:61055/ Completed 302 Found in 16ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2016-10-02 22:00:52 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.2ms)  (0.2ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 02:00:52.565145"], ["updated_at", "2016-10-03 02:00:52.565145"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 02:00:52.565145"], ["item_id", 15], ["item_type", "Tang::Plan"]]  (0.5ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 22:00:52 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Subscription Load (31.8ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.5ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (7.8ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (16.4ms) Completed 200 OK in 83ms (Views: 18.3ms | ActiveRecord: 42.7ms) Started GET "/tang/account/subscription/new?plan=15" for 127.0.0.1 at 2016-10-02 22:00:52 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"15"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (4.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (7.8ms) Completed 200 OK in 28ms (Views: 12.1ms | ActiveRecord: 2.1ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 22:00:55 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"15"}, "stripe_token"=>"test_tok_1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 55 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 55) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 55) LIMIT 1 SQL (0.2ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-03 02:00:55.117656"], ["id", 55]]  (6.2ms) COMMIT  (0.2ms) BEGIN Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 55 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (2.1ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 15], ["customer_id", 55], ["stripe_id", "test_su_4"], ["created_at", "2016-10-03 02:00:55.131674"], ["updated_at", "2016-10-03 02:00:55.131674"]] SQL (0.4ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "55"], ["created_at", "2016-10-03 02:00:55.131674"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.3ms) COMMIT Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]]  (0.2ms) BEGIN SQL (4.6ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 55], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 9], ["exp_year", 2018], ["fingerprint", "hrLgWzEscxDirlpO"], ["funding", "credit"], ["last4", "4242"], ["name", "Johnny App"], ["created_at", "2016-10-03 02:00:55.164980"], ["updated_at", "2016-10-03 02:00:55.164980"]]  (0.3ms) COMMIT Redirected to http://127.0.0.1:61055/tang/account/subscription Completed 302 Found in 66ms (ActiveRecord: 20.5ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 22:00:55 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Subscription Load (0.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > 0) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (3.0ms) Completed 200 OK in 10ms (Views: 4.0ms | ActiveRecord: 1.7ms)  (7.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (20.3ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (7.3ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (19.0ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$9stIDV8J94O.lx5kZIPaDOsXvhEXCYPPgRpAGF2fus2sTLaH7EgDG"], ["created_at", "2016-10-03 02:00:59.970628"], ["updated_at", "2016-10-03 02:00:59.970628"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 22:00:59 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 22:01:00 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 02:01:00.534333"], ["current_sign_in_at", "2016-10-03 02:01:00.534333"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 02:01:00.534961"], ["id", 1]]  (5.8ms) COMMIT Redirected to http://127.0.0.1:61055/ Completed 302 Found in 13ms (ActiveRecord: 6.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 22:01:00 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (6.3ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 02:01:00.662671"], ["updated_at", "2016-10-03 02:01:00.662671"]] SQL (0.6ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 02:01:00.662671"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 22:01:00 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.5ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.8ms) Completed 200 OK in 7ms (Views: 3.5ms | ActiveRecord: 1.4ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 22:01:00 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.3ms) Completed 200 OK in 7ms (Views: 4.2ms | ActiveRecord: 0.3ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 22:01:02 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"test_tok_1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 6ms (Views: 2.3ms | ActiveRecord: 0.7ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (64.8ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (1.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$TQlr5610VdV4OnLrc3V4YudF.jF98jaH7e9km.IfjVt.GVj0aV2Wu"], ["created_at", "2016-10-03 02:01:48.479605"], ["updated_at", "2016-10-03 02:01:48.479605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$m4.yzoh6k.ziFqnMBURWNOBkO.RQFZH1itZUl/7KMi1GMo/nBDebS"], ["created_at", "2016-10-03 02:01:48.498170"], ["updated_at", "2016-10-03 02:01:48.498170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$Bi.2FiNGWF0zk3hqTmwQ4.uvqRQfj6i75NYwMd1mRfloWgezrhkae"], ["created_at", "2016-10-03 02:01:48.503487"], ["updated_at", "2016-10-03 02:01:48.503487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 43ms (Views: 24.9ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$bblIBFnXTGJJXmA7W3iHce0tTBuF3mvBtP405z8K0NKJSznVDGtf6"], ["created_at", "2016-10-03 02:01:48.557836"], ["updated_at", "2016-10-03 02:01:48.557836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$mky0Kgcs5FGHdLcnrfFkouUIrr.jpUzCgvQVzCYKiIrV//FLOcAMi"], ["created_at", "2016-10-03 02:01:48.563713"], ["updated_at", "2016-10-03 02:01:48.563713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$Nur9LDrR2PC6xocvDPhKkOIr.NY2Ho9xI2xyl8t/cd.BhtynvIPZm"], ["created_at", "2016-10-03 02:01:48.573814"], ["updated_at", "2016-10-03 02:01:48.573814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$EyRjSNH7kc4X4yoP/j0WOeTLX3njJMBpCZbR8R6/HwA7wus/U/rcO"], ["created_at", "2016-10-03 02:01:48.578379"], ["updated_at", "2016-10-03 02:01:48.578379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$KjCwkISxGCscgc7GueH5FeqQaZzO7rJXcLQec4JL3GapeKXIBTqGC"], ["created_at", "2016-10-03 02:01:48.583609"], ["updated_at", "2016-10-03 02:01:48.583609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$NzYvrv5x4HzxnGD9K0Uk2ulhis2N4sR1q2XF2aeWs9Dpir3durNPa"], ["created_at", "2016-10-03 02:01:48.588818"], ["updated_at", "2016-10-03 02:01:48.588818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$4N5JXINP4ezx63XDwvZm6.qN8Uo32ZFAI7.CnTiyIPZHhZkvKwqRW"], ["created_at", "2016-10-03 02:01:48.593791"], ["updated_at", "2016-10-03 02:01:48.593791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$1lWZjg5UjIZ3GChNUEQAvuM.uU6OjykVas/eSFcq7Eqmk0FzcuGxm"], ["created_at", "2016-10-03 02:01:48.598603"], ["updated_at", "2016-10-03 02:01:48.598603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$wSb9ajYrfU38bYmuBbBg1uulP4yI7nMuu7HqOTyI18Y5jsr.O.Y3m"], ["created_at", "2016-10-03 02:01:48.603112"], ["updated_at", "2016-10-03 02:01:48.603112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$4g4jmgA.9JzfiQZkA7La8eXKyEusp5cndisLNMEJLMon6KNWvYt.."], ["created_at", "2016-10-03 02:01:48.607884"], ["updated_at", "2016-10-03 02:01:48.607884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$cItdU8pUcroKz7qFSF7uzuQTbVA3h/ucIQ233OLszxUtFS8/Ojrn6"], ["created_at", "2016-10-03 02:01:48.612460"], ["updated_at", "2016-10-03 02:01:48.612460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$CnYI9WvI9tGxSMu4bfED0OJcRhtiGfdn1b.uizEJCyhcSpYkTUK9q"], ["created_at", "2016-10-03 02:01:48.617111"], ["updated_at", "2016-10-03 02:01:48.617111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$QesqstRRpxQF6ycfwQA8j.CDE.n3AodEe5sJRT1P7pP/vBoD9v3oK"], ["created_at", "2016-10-03 02:01:48.621530"], ["updated_at", "2016-10-03 02:01:48.621530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$pswxuNgedUvQssw9IO9EweQP3KxwOMtOzBHOOotZ.VkfqiMfne/u6"], ["created_at", "2016-10-03 02:01:48.626398"], ["updated_at", "2016-10-03 02:01:48.626398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$yt5P4jXgQ.exB5xMqfqn7.lcw4GYub4FSnQ2jllAzE07OhxjK9gcq"], ["created_at", "2016-10-03 02:01:48.631329"], ["updated_at", "2016-10-03 02:01:48.631329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$zI0CyfzSzZG6Cue/lFbjdeqY76SGk8ik0y/2mB0Z8UrN0WC3xruaq"], ["created_at", "2016-10-03 02:01:48.636255"], ["updated_at", "2016-10-03 02:01:48.636255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$1.4s5rmhfUC7u/4.a/qPKuLwnaetpK4wb3201fDDblY89VeXv1uHK"], ["created_at", "2016-10-03 02:01:48.642062"], ["updated_at", "2016-10-03 02:01:48.642062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 SQL (1.9ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$Yd7md0cUYXoN8n7mFdlWLe12Z9zbL9XRSo8DrrTTotl/g6jtJeDW2"], ["created_at", "2016-10-03 02:01:48.647230"], ["updated_at", "2016-10-03 02:01:48.647230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$tL9uZCFff.lJmQR1X9mkjO2L907wsm4kh6GB71sPJeJcLkUUoWzla"], ["created_at", "2016-10-03 02:01:48.654694"], ["updated_at", "2016-10-03 02:01:48.654694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$paz.wQIfjJA1DQmNW2FLD.6MpyPZCkQb5tUC.S5ggpjkhf4DkJL9W"], ["created_at", "2016-10-03 02:01:48.659520"], ["updated_at", "2016-10-03 02:01:48.659520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$q40Dn4Jt58K1LOxbv5lZA.brDDLhcVsv/MutUmwLqTUH5s.ai9uB6"], ["created_at", "2016-10-03 02:01:48.664632"], ["updated_at", "2016-10-03 02:01:48.664632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$hIF7mM8/fix0z2VN0BWib.qUCT/2/dX/23eK2WKAygHQUXbd3q9p2"], ["created_at", "2016-10-03 02:01:48.669846"], ["updated_at", "2016-10-03 02:01:48.669846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$eb/EFq6Aw2PChVwQOC2tseQN.DAt.SqbS36vkLNx3mSR7yKl2kCp2"], ["created_at", "2016-10-03 02:01:48.674341"], ["updated_at", "2016-10-03 02:01:48.674341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$qT7EueYvrxioMUFn5BWykOAb0xwg/V8R3mZrbtJ.DMlGbJ.se8EBq"], ["created_at", "2016-10-03 02:01:48.679372"], ["updated_at", "2016-10-03 02:01:48.679372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '83cebd3f-893e-45e7-9cff-42abe910130b' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '83cebd3f-893e-45e7-9cff-42abe910130b' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "83cebd3f-893e-45e7-9cff-42abe910130b"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 02:01:48.693079"], ["updated_at", "2016-10-03 02:01:48.693079"]] SQL (0.6ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-03 02:01:48.693079"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 14ms (Views: 11.7ms | ActiveRecord: 0.3ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$rt1ZAmMe0Tm7gZ9FbYRpkeuYiSAR3KkX/K.DDorlIz1u.9k8rdwS2"], ["created_at", "2016-10-03 02:01:49.592874"], ["updated_at", "2016-10-03 02:01:49.592874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '83cebd3f-893e-45e7-9cff-42abe910130b' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '83cebd3f-893e-45e7-9cff-42abe910130b' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "83cebd3f-893e-45e7-9cff-42abe910130b"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 02:01:49.597066"], ["updated_at", "2016-10-03 02:01:49.597066"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-03 02:01:49.597066"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 28]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (0.2ms) Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$5UQb74oUsobeltG2EG5H9.JDvogLjDiqv4mzEI24pBPhumjZOAOw6"], ["created_at", "2016-10-03 02:01:49.992808"], ["updated_at", "2016-10-03 02:01:49.992808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$al334PvNp2yhdqIEktHAcOkdNCfKszPyr4Fq81CmUoedaGOB5gJpG"], ["created_at", "2016-10-03 02:01:50.009887"], ["updated_at", "2016-10-03 02:01:50.009887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '83cebd3f-893e-45e7-9cff-42abe910130b' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '83cebd3f-893e-45e7-9cff-42abe910130b' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "83cebd3f-893e-45e7-9cff-42abe910130b"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 02:01:50.013656"], ["updated_at", "2016-10-03 02:01:50.013656"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-03 02:01:50.013656"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#edit as HTML Parameters: {"id"=>"3"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 30]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$rPG74epjr/AZSch5aUnmFuRy1QJk7NRsMrmhleV1t0ey4wVR9KkDe"], ["created_at", "2016-10-03 02:01:50.390005"], ["updated_at", "2016-10-03 02:01:50.390005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"83cebd3f-893e-45e7-9cff-42abe910130b", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '83cebd3f-893e-45e7-9cff-42abe910130b' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '83cebd3f-893e-45e7-9cff-42abe910130b' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "83cebd3f-893e-45e7-9cff-42abe910130b"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 02:01:50.402357"], ["updated_at", "2016-10-03 02:01:50.402357"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "31"], ["created_at", "2016-10-03 02:01:50.402357"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/4 Completed 302 Found in 381ms (ActiveRecord: 1.2ms)  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$e54taa8TRc/3BGeEerHZ3./1GNLnnGYOtOGZsFJyUQYDp63yyDcAS"], ["created_at", "2016-10-03 02:01:50.784736"], ["updated_at", "2016-10-03 02:01:50.784736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"83cebd3f-893e-45e7-9cff-42abe910130b", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '83cebd3f-893e-45e7-9cff-42abe910130b' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '83cebd3f-893e-45e7-9cff-42abe910130b' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "83cebd3f-893e-45e7-9cff-42abe910130b"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 02:01:50.794000"], ["updated_at", "2016-10-03 02:01:50.794000"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "32"], ["created_at", "2016-10-03 02:01:50.794000"], ["item_id", 5], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/5 Completed 302 Found in 519ms (ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$SdM6s1FPKzV4xsup9mHN8.Zb26RQ6Ym9x7jRyLm/RUaR2qGN1I.zC"], ["created_at", "2016-10-03 02:01:51.317925"], ["updated_at", "2016-10-03 02:01:51.317925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"83cebd3f-893e-45e7-9cff-42abe910130b", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '83cebd3f-893e-45e7-9cff-42abe910130b' LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '83cebd3f-893e-45e7-9cff-42abe910130b' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "83cebd3f-893e-45e7-9cff-42abe910130b"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 02:01:51.326141"], ["updated_at", "2016-10-03 02:01:51.326141"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "33"], ["created_at", "2016-10-03 02:01:51.326141"], ["item_id", 6], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/6 Completed 302 Found in 404ms (ActiveRecord: 1.3ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$TS2wZo3PrhqtcivSHIMPQeSxknSFlL4ujXi.Wmq0GXk7WldjZoryC"], ["created_at", "2016-10-03 02:01:51.737062"], ["updated_at", "2016-10-03 02:01:51.737062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"83cebd3f-893e-45e7-9cff-42abe910130b", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '83cebd3f-893e-45e7-9cff-42abe910130b' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.0ms) Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$Wx4kJdF2qqJqyP41Obmi3.80w6FNZZmfGpB9cDOsPYiLfKZ9Zmbvq"], ["created_at", "2016-10-03 02:01:51.757525"], ["updated_at", "2016-10-03 02:01:51.757525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"83cebd3f-893e-45e7-9cff-42abe910130b", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '83cebd3f-893e-45e7-9cff-42abe910130b' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.0ms) Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$.1cxF0APFjmjX6yeyGATFeUi6cMbUVEIhex/MA7tzijbefE5S/RQa"], ["created_at", "2016-10-03 02:01:51.771378"], ["updated_at", "2016-10-03 02:01:51.771378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '83cebd3f-893e-45e7-9cff-42abe910130b' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '83cebd3f-893e-45e7-9cff-42abe910130b' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "83cebd3f-893e-45e7-9cff-42abe910130b"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 02:01:51.774569"], ["updated_at", "2016-10-03 02:01:51.774569"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-03 02:01:51.774569"], ["item_id", 7], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$WFsW7QLgLU.smPOI8aQH7OQfr7dSQC/Bhc6Dggg17hpaI.Mwy0/9y"], ["created_at", "2016-10-03 02:01:52.155557"], ["updated_at", "2016-10-03 02:01:52.155557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '83cebd3f-893e-45e7-9cff-42abe910130b' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '83cebd3f-893e-45e7-9cff-42abe910130b' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "83cebd3f-893e-45e7-9cff-42abe910130b"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 02:01:52.159525"], ["updated_at", "2016-10-03 02:01:52.159525"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-03 02:01:52.159525"], ["item_id", 8], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"83cebd3f-893e-45e7-9cff-42abe910130b", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"8"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 37]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 8]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '83cebd3f-893e-45e7-9cff-42abe910130b' AND "tang_plans"."id" != 8) LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '83cebd3f-893e-45e7-9cff-42abe910130b' AND "tang_plans"."id" != 8) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/8 Completed 302 Found in 728ms (ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$TxFXj88P8at378oXfQzokugc/Y48uHeVMEWGuMvra/SbTrQl1elzm"], ["created_at", "2016-10-03 02:01:53.259887"], ["updated_at", "2016-10-03 02:01:53.259887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '83cebd3f-893e-45e7-9cff-42abe910130b' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '83cebd3f-893e-45e7-9cff-42abe910130b' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "83cebd3f-893e-45e7-9cff-42abe910130b"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 02:01:53.264033"], ["updated_at", "2016-10-03 02:01:53.264033"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "37"], ["created_at", "2016-10-03 02:01:53.264033"], ["item_id", 9], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"83cebd3f-893e-45e7-9cff-42abe910130b", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"9"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 38]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 9]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '83cebd3f-893e-45e7-9cff-42abe910130b' AND "tang_plans"."id" != 9) LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '83cebd3f-893e-45e7-9cff-42abe910130b' AND "tang_plans"."id" != 9) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/9 Completed 302 Found in 743ms (ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 SQL (2.9ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$Ih9fxNeUDBfhTB3k7kxu8OJCoqGH0BWWziXiuQcE5VbVPti.w3Jpm"], ["created_at", "2016-10-03 02:01:54.401347"], ["updated_at", "2016-10-03 02:01:54.401347"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '83cebd3f-893e-45e7-9cff-42abe910130b' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '83cebd3f-893e-45e7-9cff-42abe910130b' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "83cebd3f-893e-45e7-9cff-42abe910130b"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 02:01:54.409055"], ["updated_at", "2016-10-03 02:01:54.409055"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "38"], ["created_at", "2016-10-03 02:01:54.409055"], ["item_id", 10], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"83cebd3f-893e-45e7-9cff-42abe910130b", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"10"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 39]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 10]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '83cebd3f-893e-45e7-9cff-42abe910130b' AND "tang_plans"."id" != 10) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.0ms) Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$kMckGVVD25wsO31KmNJZ8uLgGnY5MimMrMUOKpbO0XIso/rMdGfkW"], ["created_at", "2016-10-03 02:01:54.863605"], ["updated_at", "2016-10-03 02:01:54.863605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '83cebd3f-893e-45e7-9cff-42abe910130b' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '83cebd3f-893e-45e7-9cff-42abe910130b' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "83cebd3f-893e-45e7-9cff-42abe910130b"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 02:01:54.866814"], ["updated_at", "2016-10-03 02:01:54.866814"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "39"], ["created_at", "2016-10-03 02:01:54.866814"], ["item_id", 11], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"83cebd3f-893e-45e7-9cff-42abe910130b", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"11"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 40]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 11]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '83cebd3f-893e-45e7-9cff-42abe910130b' AND "tang_plans"."id" != 11) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 6ms (Views: 0.5ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$2vcPnTGbd2DG0KliEs3eyeaqdo5z6Wbcp8YwJDzTCrKxtFJVS0dbG"], ["created_at", "2016-10-03 02:01:55.358491"], ["updated_at", "2016-10-03 02:01:55.358491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '83cebd3f-893e-45e7-9cff-42abe910130b' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '83cebd3f-893e-45e7-9cff-42abe910130b' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "83cebd3f-893e-45e7-9cff-42abe910130b"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 02:01:55.361739"], ["updated_at", "2016-10-03 02:01:55.361739"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "40"], ["created_at", "2016-10-03 02:01:55.361739"], ["item_id", 12], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"12"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 41]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 12]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 12], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 12\nstripe_id: 83cebd3f-893e-45e7-9cff-42abe910130b\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: 0\nhighlight: false\ncreated_at: 2016-10-03 02:01:55.361739000 Z\nupdated_at: 2016-10-03 02:01:55.361739000 Z\n"], ["whodunnit", "41"], ["created_at", "2016-10-03 02:01:55.739342"]] SQL (0.2ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 827ms (ActiveRecord: 1.0ms)  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$KsHzCkCvU1qVs2j5WMTXXu3Hhach06eycYMHBKgJU1XCTadGBXZqW"], ["created_at", "2016-10-03 02:01:56.569547"], ["updated_at", "2016-10-03 02:01:56.569547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '83cebd3f-893e-45e7-9cff-42abe910130b' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '83cebd3f-893e-45e7-9cff-42abe910130b' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "83cebd3f-893e-45e7-9cff-42abe910130b"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 02:01:56.573634"], ["updated_at", "2016-10-03 02:01:56.573634"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "41"], ["created_at", "2016-10-03 02:01:56.573634"], ["item_id", 13], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"13"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 42]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 13]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 13], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 13\nstripe_id: 83cebd3f-893e-45e7-9cff-42abe910130b\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: 0\nhighlight: false\ncreated_at: 2016-10-03 02:01:56.573634000 Z\nupdated_at: 2016-10-03 02:01:56.573634000 Z\n"], ["whodunnit", "42"], ["created_at", "2016-10-03 02:01:56.975306"]] SQL (0.3ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 774ms (ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$SgDuXiEEgjbJwwuBX7uivOc5o3rcIS4dhi3hEjCBc9DS/nsxnzpAi"], ["created_at", "2016-10-03 02:01:57.753050"], ["updated_at", "2016-10-03 02:01:57.753050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$QB1EnbGXz3hmIBYeXyDDOu4i5aw1JR0v7c/kR0/RxL6emmycb58oW"], ["created_at", "2016-10-03 02:01:57.759521"], ["updated_at", "2016-10-03 02:01:57.759521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$zSEizdAPzcxUNjaRPBCVq..mLDNzSjmccQEyVdnSpH.pXM0V8y7T."], ["created_at", "2016-10-03 02:01:57.764721"], ["updated_at", "2016-10-03 02:01:57.764721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$ttrPL6bKzJnWu1d1LeikuOvXz9aP.JidO6a/mGgS1i3.c3IjkA0hG"], ["created_at", "2016-10-03 02:01:57.769524"], ["updated_at", "2016-10-03 02:01:57.769524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 SQL (4.5ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$iMde1muyeqC9r9gkqT2jV.Xw.eXA7vPSgNqzTFOEbJFC4jK1GfFVi"], ["created_at", "2016-10-03 02:01:57.774026"], ["updated_at", "2016-10-03 02:01:57.774026"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$v7T2Z.UjMfu4D1cwFkTKQOeKtTGCNS1Wrj1uvCoukCDTYn91EQ65G"], ["created_at", "2016-10-03 02:01:57.784035"], ["updated_at", "2016-10-03 02:01:57.784035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$0X5dMa1qy0MhI90AL0TvI.7u3lMzNnw2arG8w/fCl9qeZL1wr2gGq"], ["created_at", "2016-10-03 02:01:57.789399"], ["updated_at", "2016-10-03 02:01:57.789399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$H8Ko9nbAcsKJEe8VrLoZUu6f81Ovx3atxOqzYnQ7kaU/b.ZqwCeUS"], ["created_at", "2016-10-03 02:01:57.793853"], ["updated_at", "2016-10-03 02:01:57.793853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$oBpuffY1/nR2o8PL3EU9n.hQIEZr7i/8qonyME1N1Zu.75t/yS4Dy"], ["created_at", "2016-10-03 02:01:57.798615"], ["updated_at", "2016-10-03 02:01:57.798615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$rl5Qim46/JpEE6/yME/DT.rtiuBrr2Je34Uo8RBYnEKI6ajEt5aiu"], ["created_at", "2016-10-03 02:01:57.803330"], ["updated_at", "2016-10-03 02:01:57.803330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 12ms (Views: 7.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$yZlDAR78AEGJPAu.tLcIweonmkId412MF945kMZ4QDqv5ahy1seCq"], ["created_at", "2016-10-03 02:02:00.854799"], ["updated_at", "2016-10-03 02:02:00.854799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 22:02:00 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.0ms) Rendered devise/sessions/new.html.erb within layouts/application (24.1ms) Completed 200 OK in 267ms (Views: 252.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 22:02:01 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 02:02:01.158107"], ["current_sign_in_at", "2016-10-03 02:02:01.158107"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 02:02:01.159098"], ["id", 53]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 20ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 22:02:01 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 22:02:01 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (8.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (11.7ms) Completed 200 OK in 52ms (Views: 29.8ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 22:02:01 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 02:02:01.290123"], ["updated_at", "2016-10-03 02:02:01.290123"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "53"], ["created_at", "2016-10-03 02:02:01.290123"], ["item_id", 14], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/14 Completed 302 Found in 467ms (ActiveRecord: 3.0ms) Started GET "/tang/admin/plans/14" for 127.0.0.1 at 2016-10-02 22:02:01 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"14"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 14]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (7.2ms) Completed 200 OK in 16ms (Views: 11.5ms | ActiveRecord: 0.4ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$hx0WC6Yq/4dfT/bhhtcbZOrvEkZa2TZMVWPCWWIzUxi6.RRby5Lje"], ["created_at", "2016-10-03 02:02:01.794598"], ["updated_at", "2016-10-03 02:02:01.794598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 22:02:01 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 22:02:01 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 02:02:01.815375"], ["current_sign_in_at", "2016-10-03 02:02:01.815375"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 02:02:01.816419"], ["id", 54]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 14ms (ActiveRecord: 1.2ms) Started GET "/" for 127.0.0.1 at 2016-10-02 22:02:01 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]] Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 22:02:01 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.2ms) Completed 200 OK in 9ms (Views: 6.0ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 22:02:01 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.8ms) Completed 200 OK in 10ms (Views: 5.1ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.2ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$mdwyAJzGnirN1mNDs3XBQ.p75iBfJuCYreciIuZSlCd8fG3yudsJe"], ["created_at", "2016-10-03 02:02:01.904884"], ["updated_at", "2016-10-03 02:02:01.904884"]]  (1.6ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 22:02:04 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.9ms) Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 22:02:04 -0400 Started GET "/assets/application-ae2f3e9153ab8790e8aa4db3ee24569c31c04e9721cf338869bc8e4f22fac81c.js" for 127.0.0.1 at 2016-10-02 22:02:04 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 22:02:05 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 02:02:05.180904"], ["current_sign_in_at", "2016-10-03 02:02:05.180904"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 02:02:05.181900"], ["id", 55]]  (6.1ms) COMMIT Redirected to http://127.0.0.1:61577/ Completed 302 Found in 17ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2016-10-02 22:02:05 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.1ms) User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 02:02:05.348817"], ["updated_at", "2016-10-03 02:02:05.348817"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 02:02:05.348817"], ["item_id", 15], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 22:02:05 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (9.0ms) Completed 200 OK in 42ms (Views: 19.1ms | ActiveRecord: 3.8ms) Started GET "/tang/account/subscription/new?plan=15" for 127.0.0.1 at 2016-10-02 22:02:05 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"15"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (2.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (5.9ms) Completed 200 OK in 25ms (Views: 9.5ms | ActiveRecord: 2.2ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 22:02:08 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"15"}, "stripe_token"=>"test_tok_1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 55 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 55) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 55) LIMIT 1 SQL (0.2ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-03 02:02:08.770292"], ["id", 55]]  (0.3ms) COMMIT  (0.1ms) BEGIN Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 55 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 15], ["customer_id", 55], ["stripe_id", "test_su_4"], ["created_at", "2016-10-03 02:02:08.776958"], ["updated_at", "2016-10-03 02:02:08.776958"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "55"], ["created_at", "2016-10-03 02:02:08.776958"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.4ms) COMMIT Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]]  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 55], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 9], ["exp_year", 2018], ["fingerprint", "hrLgWzEscxDirlpO"], ["funding", "credit"], ["last4", "4242"], ["name", "Johnny App"], ["created_at", "2016-10-03 02:02:08.810308"], ["updated_at", "2016-10-03 02:02:08.810308"]]  (0.2ms) COMMIT Redirected to http://127.0.0.1:61577/tang/account/subscription Completed 302 Found in 54ms (ActiveRecord: 5.9ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 22:02:08 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Subscription Load (0.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > 0) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (3.1ms) Completed 200 OK in 12ms (Views: 5.7ms | ActiveRecord: 2.1ms)  (4.3ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (22.5ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (4.3ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (17.1ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$AMRKPVHODegN/S5KZIW6/eOCmlqhoYx2JMISz2vSkZp/45PKwQJhS"], ["created_at", "2016-10-03 02:02:12.715380"], ["updated_at", "2016-10-03 02:02:12.715380"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 22:02:12 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (1.8ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 22:02:13 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 02:02:13.366844"], ["current_sign_in_at", "2016-10-03 02:02:13.366844"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 02:02:13.367645"], ["id", 1]]  (5.7ms) COMMIT Redirected to http://127.0.0.1:61577/ Completed 302 Found in 14ms (ActiveRecord: 6.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 22:02:13 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (6.0ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 02:02:13.508255"], ["updated_at", "2016-10-03 02:02:13.508255"]] SQL (0.8ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 02:02:13.508255"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 22:02:13 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.5ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.6ms) Completed 200 OK in 13ms (Views: 7.7ms | ActiveRecord: 1.5ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 22:02:13 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.1ms) Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 22:02:15 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"test_tok_1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.1ms) Completed 200 OK in 7ms (Views: 2.5ms | ActiveRecord: 0.7ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (38.6ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (18.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$qycUIW3J1fiWyBkjnqkGqOy8yFZOyR.EtXUs1gzWmwAiyK.sAz/cW"], ["created_at", "2016-10-03 02:09:45.732785"], ["updated_at", "2016-10-03 02:09:45.732785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$wCMxY44JdhEuxVUeV.6h1eA/J/3JQkohN4bHnkYZ5zsjWRDcGzUri"], ["created_at", "2016-10-03 02:09:45.769817"], ["updated_at", "2016-10-03 02:09:45.769817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$tJI330Ho83uimwlRLkQFKOQyYLFQjpUKJ9wUUg0N11/bxdsQwR6aO"], ["created_at", "2016-10-03 02:09:45.774988"], ["updated_at", "2016-10-03 02:09:45.774988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 44ms (Views: 26.7ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$HTkSNLBYSdqJIqh9rMoxPuMAeLBHlLHSph9aCAl2vhZV/otg7upKW"], ["created_at", "2016-10-03 02:09:45.830902"], ["updated_at", "2016-10-03 02:09:45.830902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$NWdpePPHXog6EGqpA64kJObskH5Y/dF/iQ8sPaHFKfWcEZ2Z5MsI."], ["created_at", "2016-10-03 02:09:45.836471"], ["updated_at", "2016-10-03 02:09:45.836471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$OeygeaxllTCoZ7zsVSKi4eYEikTpeqK7uxzLKdQo3qvGtX01Lz9L6"], ["created_at", "2016-10-03 02:09:45.845244"], ["updated_at", "2016-10-03 02:09:45.845244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$EB2pRnN8smcpusyDgmGdJ.q5ey4DaVRohrLM1NY5wcUUMJg4nEWcC"], ["created_at", "2016-10-03 02:09:45.850849"], ["updated_at", "2016-10-03 02:09:45.850849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$S3C199k1NWPE79DihRK7CON9fpjWbfhAb68LubGpc88HRWzP3Xaey"], ["created_at", "2016-10-03 02:09:45.855905"], ["updated_at", "2016-10-03 02:09:45.855905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$uiTHrrmrke7mgJ9w0su2nO6Vot/ey4rgcLAQeq8MB8nFSepHfj8Zi"], ["created_at", "2016-10-03 02:09:45.860826"], ["updated_at", "2016-10-03 02:09:45.860826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$3EJ8TJnVkoZanG4aF.jfBOAscniCWS5rO7uVPuiBcbhmg9Xd8xHHS"], ["created_at", "2016-10-03 02:09:45.866363"], ["updated_at", "2016-10-03 02:09:45.866363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$iAVALcnzUbuajBEqgbzmReVh8g/IYzcqpEFDIZYPBaQprIrp89ms6"], ["created_at", "2016-10-03 02:09:45.871454"], ["updated_at", "2016-10-03 02:09:45.871454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$fxo1E5P1vEXW4Ra9QT1pn.F8Vn/v9BokbOxLuAk0zR.1uOpHNu1dC"], ["created_at", "2016-10-03 02:09:45.876311"], ["updated_at", "2016-10-03 02:09:45.876311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$kzi.TTJDLsx/FPkDcR1WCOxT7pGGtBo4meZyebSyh4ghj3G6TAgeO"], ["created_at", "2016-10-03 02:09:45.881340"], ["updated_at", "2016-10-03 02:09:45.881340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$TZqcwyuw06gvBbfbMSShm.kKzzaIp5RuhpsZy4T9dMoZ/CmyUoPhG"], ["created_at", "2016-10-03 02:09:45.886171"], ["updated_at", "2016-10-03 02:09:45.886171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$wYej5cvSQ4f9sjY0UceJm.jDA..L6q/OxMLx2GlBahVQr5VRuXhvW"], ["created_at", "2016-10-03 02:09:45.891005"], ["updated_at", "2016-10-03 02:09:45.891005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$hrAy9dRSlDza0920sVOslemFXb7BngN1XP5pWPGytQX8WNfl.93/O"], ["created_at", "2016-10-03 02:09:45.895751"], ["updated_at", "2016-10-03 02:09:45.895751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$wXgXNZiCD663SNFCd9QSsOhVCmxjrctaJJSJAMn/KFZnsl7EvNkm."], ["created_at", "2016-10-03 02:09:45.900899"], ["updated_at", "2016-10-03 02:09:45.900899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$MUBVr5jLQq9fIpCPHP9D6eQdAHx3iu4fDbrjM1foU2gDkOaesYBkO"], ["created_at", "2016-10-03 02:09:45.905802"], ["updated_at", "2016-10-03 02:09:45.905802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$DsTLoga9Mr0AQc6BXi0omuuvBqCmFaEEuncNsYjdS91k/NLgA57OS"], ["created_at", "2016-10-03 02:09:45.910721"], ["updated_at", "2016-10-03 02:09:45.910721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$51PflfOnapuM6D1MvonjhO1xfWReQPQKppsvurcPbfTxVh5mpBkVa"], ["created_at", "2016-10-03 02:09:45.915593"], ["updated_at", "2016-10-03 02:09:45.915593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$e4KLyFGaky9Oogbtl4o59uDOMplA7Co9cKkvnOb8Mt4hsyYLgrghS"], ["created_at", "2016-10-03 02:09:45.920468"], ["updated_at", "2016-10-03 02:09:45.920468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$7wdZdxi22DPnoeVtVVW7fO09BihMX5D/O9Nc36lyANeIxEdT4e6nW"], ["created_at", "2016-10-03 02:09:45.925295"], ["updated_at", "2016-10-03 02:09:45.925295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$mBqqPKcXSIATIsL6/hXuiugwKUw6Gjr5xkKu5elVIV357YHbR8yhq"], ["created_at", "2016-10-03 02:09:45.930428"], ["updated_at", "2016-10-03 02:09:45.930428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$7GEZYXTsBQm0b0LzCCJTwueQhrUuXuTdjoVoSbyKpb/Ry4qKJdWpG"], ["created_at", "2016-10-03 02:09:45.935387"], ["updated_at", "2016-10-03 02:09:45.935387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$OKnpTurjRqjGGhu5s8DhL.eC1fXaLr6US9JbHZBGT4oMYkr1TOiNy"], ["created_at", "2016-10-03 02:09:45.940423"], ["updated_at", "2016-10-03 02:09:45.940423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$SgVGmM5tkOKYnEw7x5r6A.5Ui5NxwK4jiFDGowsVn1yrWjFgYVQFm"], ["created_at", "2016-10-03 02:09:45.945601"], ["updated_at", "2016-10-03 02:09:45.945601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$SNrwdM8Yu8lsmFNGjqG4sO.KFRCOXZV7tLq0XHIfnCR8o0vnWBOba"], ["created_at", "2016-10-03 02:09:45.950824"], ["updated_at", "2016-10-03 02:09:45.950824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e549746f-22a4-4c30-8232-3019f86c32c8' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e549746f-22a4-4c30-8232-3019f86c32c8' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "e549746f-22a4-4c30-8232-3019f86c32c8"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 02:09:45.962782"], ["updated_at", "2016-10-03 02:09:45.962782"]] SQL (0.7ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-03 02:09:45.962782"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 13ms (Views: 11.3ms | ActiveRecord: 0.3ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$1qEWHFmc83y8gq/bE3Ym3udZKKJFlIgklxHvRcQFvMbrezO6pCHem"], ["created_at", "2016-10-03 02:09:46.433897"], ["updated_at", "2016-10-03 02:09:46.433897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e549746f-22a4-4c30-8232-3019f86c32c8' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e549746f-22a4-4c30-8232-3019f86c32c8' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "e549746f-22a4-4c30-8232-3019f86c32c8"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 02:09:46.437586"], ["updated_at", "2016-10-03 02:09:46.437586"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-03 02:09:46.437586"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 28]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (0.4ms) Completed 200 OK in 12ms (Views: 5.9ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$fds3A6ztQG2TFDUl7.mWaO20ceY7Uc4nn2.xDDZh45uOu/2BJ2Phu"], ["created_at", "2016-10-03 02:09:46.860473"], ["updated_at", "2016-10-03 02:09:46.860473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$IiIKKCB8w2ZgNcE2hYTPeOnyJl8Tc8M6NWBXUSygh.WFgKAcqrtAW"], ["created_at", "2016-10-03 02:09:46.875491"], ["updated_at", "2016-10-03 02:09:46.875491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e549746f-22a4-4c30-8232-3019f86c32c8' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e549746f-22a4-4c30-8232-3019f86c32c8' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "e549746f-22a4-4c30-8232-3019f86c32c8"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 02:09:46.878828"], ["updated_at", "2016-10-03 02:09:46.878828"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-03 02:09:46.878828"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#edit as HTML Parameters: {"id"=>"3"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 30]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$EuUH4wJE/3gSBLE0fA9d/uvLadO.lFN9dY7GZ3P7Ur8YUCG51wTVO"], ["created_at", "2016-10-03 02:09:47.259936"], ["updated_at", "2016-10-03 02:09:47.259936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"e549746f-22a4-4c30-8232-3019f86c32c8", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e549746f-22a4-4c30-8232-3019f86c32c8' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e549746f-22a4-4c30-8232-3019f86c32c8' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "e549746f-22a4-4c30-8232-3019f86c32c8"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 02:09:47.271635"], ["updated_at", "2016-10-03 02:09:47.271635"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "31"], ["created_at", "2016-10-03 02:09:47.271635"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/4 Completed 302 Found in 379ms (ActiveRecord: 1.2ms)  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$J0zjM1GzA8qBe.nJF3eEWeJgzNWY22F9Db6DO08P.HcmxAECnvmEe"], ["created_at", "2016-10-03 02:09:47.652398"], ["updated_at", "2016-10-03 02:09:47.652398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"e549746f-22a4-4c30-8232-3019f86c32c8", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e549746f-22a4-4c30-8232-3019f86c32c8' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e549746f-22a4-4c30-8232-3019f86c32c8' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "e549746f-22a4-4c30-8232-3019f86c32c8"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 02:09:47.662135"], ["updated_at", "2016-10-03 02:09:47.662135"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "32"], ["created_at", "2016-10-03 02:09:47.662135"], ["item_id", 5], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/5 Completed 302 Found in 375ms (ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$DZ.WtlmLVxqlkJaR.syyLOUqUAI2w3Dq7YX3yDVOhrycQv4SGjPhi"], ["created_at", "2016-10-03 02:09:48.039871"], ["updated_at", "2016-10-03 02:09:48.039871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"e549746f-22a4-4c30-8232-3019f86c32c8", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e549746f-22a4-4c30-8232-3019f86c32c8' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e549746f-22a4-4c30-8232-3019f86c32c8' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "e549746f-22a4-4c30-8232-3019f86c32c8"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 02:09:48.048298"], ["updated_at", "2016-10-03 02:09:48.048298"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "33"], ["created_at", "2016-10-03 02:09:48.048298"], ["item_id", 6], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/6 Completed 302 Found in 417ms (ActiveRecord: 1.3ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$qkCRBPRStFefeQbmUXd4cux93klvRtxyOCR7HaBu4TmIB.mr0JVgi"], ["created_at", "2016-10-03 02:09:48.470324"], ["updated_at", "2016-10-03 02:09:48.470324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"e549746f-22a4-4c30-8232-3019f86c32c8", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e549746f-22a4-4c30-8232-3019f86c32c8' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.1ms) Completed 200 OK in 14ms (Views: 0.5ms | ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$u2NfKVRNZdQ/SZQMMvTzUOZq7IkeDapzYPqLMo0yqULVgLuTv7dLG"], ["created_at", "2016-10-03 02:09:48.494114"], ["updated_at", "2016-10-03 02:09:48.494114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"e549746f-22a4-4c30-8232-3019f86c32c8", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]]  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e549746f-22a4-4c30-8232-3019f86c32c8' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.1ms) Completed 200 OK in 6ms (Views: 0.9ms | ActiveRecord: 0.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$/1Be0dziJgCuV6.OlVdKx.gJpBlhJin7cLS3oGrVEjsRwzhQZBwOi"], ["created_at", "2016-10-03 02:09:48.509866"], ["updated_at", "2016-10-03 02:09:48.509866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e549746f-22a4-4c30-8232-3019f86c32c8' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e549746f-22a4-4c30-8232-3019f86c32c8' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "e549746f-22a4-4c30-8232-3019f86c32c8"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 02:09:48.513269"], ["updated_at", "2016-10-03 02:09:48.513269"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-03 02:09:48.513269"], ["item_id", 7], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$NN1v8V0ShiDm7OS1CaM.fuVxljXVAb6wc33TQITnhDRebraaI.w/i"], ["created_at", "2016-10-03 02:09:48.897468"], ["updated_at", "2016-10-03 02:09:48.897468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e549746f-22a4-4c30-8232-3019f86c32c8' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e549746f-22a4-4c30-8232-3019f86c32c8' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "e549746f-22a4-4c30-8232-3019f86c32c8"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 02:09:48.901480"], ["updated_at", "2016-10-03 02:09:48.901480"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-03 02:09:48.901480"], ["item_id", 8], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"e549746f-22a4-4c30-8232-3019f86c32c8", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"8"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 37]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 8]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'e549746f-22a4-4c30-8232-3019f86c32c8' AND "tang_plans"."id" != 8) LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'e549746f-22a4-4c30-8232-3019f86c32c8' AND "tang_plans"."id" != 8) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/8 Completed 302 Found in 752ms (ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$ZbH402.qH4jCc7xpmX0R3uiWBR2VGu7R0aVYsybnNVnCrGgOgMlIu"], ["created_at", "2016-10-03 02:09:50.018093"], ["updated_at", "2016-10-03 02:09:50.018093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e549746f-22a4-4c30-8232-3019f86c32c8' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e549746f-22a4-4c30-8232-3019f86c32c8' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "e549746f-22a4-4c30-8232-3019f86c32c8"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 02:09:50.022034"], ["updated_at", "2016-10-03 02:09:50.022034"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "37"], ["created_at", "2016-10-03 02:09:50.022034"], ["item_id", 9], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"e549746f-22a4-4c30-8232-3019f86c32c8", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"9"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 38]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 9]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'e549746f-22a4-4c30-8232-3019f86c32c8' AND "tang_plans"."id" != 9) LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'e549746f-22a4-4c30-8232-3019f86c32c8' AND "tang_plans"."id" != 9) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/9 Completed 302 Found in 748ms (ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$lPg2Ak7V/1AX2UFzP00RAOpAoRnuI4LYaXQoSvwASC9uJNH0k5Bpq"], ["created_at", "2016-10-03 02:09:51.138249"], ["updated_at", "2016-10-03 02:09:51.138249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e549746f-22a4-4c30-8232-3019f86c32c8' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e549746f-22a4-4c30-8232-3019f86c32c8' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "e549746f-22a4-4c30-8232-3019f86c32c8"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 02:09:51.142248"], ["updated_at", "2016-10-03 02:09:51.142248"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "38"], ["created_at", "2016-10-03 02:09:51.142248"], ["item_id", 10], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"e549746f-22a4-4c30-8232-3019f86c32c8", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"10"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 39]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 10]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'e549746f-22a4-4c30-8232-3019f86c32c8' AND "tang_plans"."id" != 10) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 6ms (Views: 0.6ms | ActiveRecord: 0.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$bKvqkH2z5WvEkZbivHNB4./Hwqx4uqvdNhgLZA6LIsq0ShufTpz9a"], ["created_at", "2016-10-03 02:09:51.514517"], ["updated_at", "2016-10-03 02:09:51.514517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e549746f-22a4-4c30-8232-3019f86c32c8' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e549746f-22a4-4c30-8232-3019f86c32c8' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "e549746f-22a4-4c30-8232-3019f86c32c8"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 02:09:51.518598"], ["updated_at", "2016-10-03 02:09:51.518598"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "39"], ["created_at", "2016-10-03 02:09:51.518598"], ["item_id", 11], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"e549746f-22a4-4c30-8232-3019f86c32c8", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"11"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 40]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 11]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'e549746f-22a4-4c30-8232-3019f86c32c8' AND "tang_plans"."id" != 11) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.0ms) Completed 200 OK in 6ms (Views: 0.8ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$6ntYvbaUfLnG1vuyMfRGte3.AX73LP..HZJdpJHQnTl7aPkQcD7em"], ["created_at", "2016-10-03 02:09:52.114949"], ["updated_at", "2016-10-03 02:09:52.114949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e549746f-22a4-4c30-8232-3019f86c32c8' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e549746f-22a4-4c30-8232-3019f86c32c8' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "e549746f-22a4-4c30-8232-3019f86c32c8"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 02:09:52.118422"], ["updated_at", "2016-10-03 02:09:52.118422"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "40"], ["created_at", "2016-10-03 02:09:52.118422"], ["item_id", 12], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"12"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 41]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 12]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 12], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 12\nstripe_id: e549746f-22a4-4c30-8232-3019f86c32c8\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: 0\nhighlight: false\ncreated_at: 2016-10-03 02:09:52.118422000 Z\nupdated_at: 2016-10-03 02:09:52.118422000 Z\n"], ["whodunnit", "41"], ["created_at", "2016-10-03 02:09:52.560806"]] SQL (0.3ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 760ms (ActiveRecord: 1.0ms)  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$bc.1I0mi7QYKIXVZGS35I.n.ElgfPH3oc888wCEFoTYMKmWKRSWSK"], ["created_at", "2016-10-03 02:09:53.322079"], ["updated_at", "2016-10-03 02:09:53.322079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e549746f-22a4-4c30-8232-3019f86c32c8' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'e549746f-22a4-4c30-8232-3019f86c32c8' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "e549746f-22a4-4c30-8232-3019f86c32c8"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 02:09:53.326184"], ["updated_at", "2016-10-03 02:09:53.326184"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "41"], ["created_at", "2016-10-03 02:09:53.326184"], ["item_id", 13], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"13"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 42]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 13]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 13], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 13\nstripe_id: e549746f-22a4-4c30-8232-3019f86c32c8\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: 0\nhighlight: false\ncreated_at: 2016-10-03 02:09:53.326184000 Z\nupdated_at: 2016-10-03 02:09:53.326184000 Z\n"], ["whodunnit", "42"], ["created_at", "2016-10-03 02:09:53.754846"]] SQL (0.3ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 769ms (ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$aqJdf5KeFSqE4aFMJQoQvufCqEKBuiIpwCw4Bmuw3Bf2m4lEvf4VS"], ["created_at", "2016-10-03 02:09:54.529798"], ["updated_at", "2016-10-03 02:09:54.529798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$EnXJ90a0oV83oUd3.x8bc.5hn01KMmwlMkJL0idwY4Yo7MUGxtUce"], ["created_at", "2016-10-03 02:09:54.536149"], ["updated_at", "2016-10-03 02:09:54.536149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$TjG4RmfE6dwq.yga2EuX0O5OgqIJVXb8ZUrW4W27j/49zun3Yhmu."], ["created_at", "2016-10-03 02:09:54.541110"], ["updated_at", "2016-10-03 02:09:54.541110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$ygTOkfb4gQCZd2/TkOsZYekivzMxKFXBPNFYIbfK4Z8NkBqPl/SV6"], ["created_at", "2016-10-03 02:09:54.546265"], ["updated_at", "2016-10-03 02:09:54.546265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$jHZVSQRjkVGOwBZFX1QwBO3QzQpoLMg4M6vdB7IrUkALFgarorhSG"], ["created_at", "2016-10-03 02:09:54.551100"], ["updated_at", "2016-10-03 02:09:54.551100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$4MeO/JwGdNvx5YRQNZhFauD/q5m4dsRINJUinoEJqMSRfezJY0ptK"], ["created_at", "2016-10-03 02:09:54.555517"], ["updated_at", "2016-10-03 02:09:54.555517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$GlqiZHPfBqQ4ip8ENYWDh.ezz8hnOTWJDxBgDN11sKhm10u7PTnPS"], ["created_at", "2016-10-03 02:09:54.560688"], ["updated_at", "2016-10-03 02:09:54.560688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$N1hbT5KO/I5157ilRGWj8Ov.2QijCg5fylo9kR/yOCbmChxdn8U9y"], ["created_at", "2016-10-03 02:09:54.565773"], ["updated_at", "2016-10-03 02:09:54.565773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$EJrOKHKviVQBl4X8D0DkAuLNkuuoAQ.AdRCwNW5vSFQeN6IeWg7YS"], ["created_at", "2016-10-03 02:09:54.570644"], ["updated_at", "2016-10-03 02:09:54.570644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$5rsyGvBb44JXcFR1H9/Urud6kITufS0bb35vngj66ZGa31fJf0.W2"], ["created_at", "2016-10-03 02:09:54.575920"], ["updated_at", "2016-10-03 02:09:54.575920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 13ms (Views: 7.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$R1n1.2K4EPcJPaQ6165bGe32QmWtz9lNY0N1.TVi8u4a7ErDVBWbG"], ["created_at", "2016-10-03 02:09:57.673175"], ["updated_at", "2016-10-03 02:09:57.673175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 22:09:57 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (31.1ms) Completed 200 OK in 315ms (Views: 301.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 22:09:58 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 02:09:58.023989"], ["current_sign_in_at", "2016-10-03 02:09:58.023989"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 02:09:58.024990"], ["id", 53]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 21ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-02 22:09:58 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.5ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Completed 200 OK in 10ms (Views: 9.2ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 22:09:58 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (16.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (19.1ms) Completed 200 OK in 53ms (Views: 30.9ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 22:09:58 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]]  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 02:09:58.163006"], ["updated_at", "2016-10-03 02:09:58.163006"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "53"], ["created_at", "2016-10-03 02:09:58.163006"], ["item_id", 14], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/14 Completed 302 Found in 844ms (ActiveRecord: 3.0ms) Started GET "/tang/admin/plans/14" for 127.0.0.1 at 2016-10-02 22:09:59 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"14"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 14]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (11.0ms) Completed 200 OK in 21ms (Views: 15.1ms | ActiveRecord: 0.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$w7iYad3KjVU.Y3ceog2Y8OO/IK4b5cZjGcqzq8fJKefvY9oPbcC3i"], ["created_at", "2016-10-03 02:09:59.043664"], ["updated_at", "2016-10-03 02:09:59.043664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 22:09:59 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.4ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 22:09:59 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 02:09:59.062619"], ["current_sign_in_at", "2016-10-03 02:09:59.062619"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 02:09:59.067427"], ["id", 54]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 14ms (ActiveRecord: 1.0ms) Started GET "/" for 127.0.0.1 at 2016-10-02 22:09:59 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]] Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-02 22:09:59 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (5.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (6.0ms) Completed 200 OK in 12ms (Views: 8.1ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-02 22:09:59 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]]  (0.4ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (16.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (16.6ms) Completed 200 OK in 25ms (Views: 18.5ms | ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$LjsoWXzoTeUssvuHyV0AYO6fRLddr3KWAa081EYQ42v2wVXv8ZGJy"], ["created_at", "2016-10-03 02:09:59.196511"], ["updated_at", "2016-10-03 02:09:59.196511"]]  (6.0ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 22:10:02 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.5ms) Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-02 22:10:02 -0400 Started GET "/assets/application-ae2f3e9153ab8790e8aa4db3ee24569c31c04e9721cf338869bc8e4f22fac81c.js" for 127.0.0.1 at 2016-10-02 22:10:02 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 22:10:03 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 02:10:03.259590"], ["current_sign_in_at", "2016-10-03 02:10:03.259590"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 02:10:03.260481"], ["id", 55]]  (6.2ms) COMMIT Redirected to http://127.0.0.1:62693/ Completed 302 Found in 17ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2016-10-02 22:10:03 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 02:10:03.417507"], ["updated_at", "2016-10-03 02:10:03.417507"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 02:10:03.417507"], ["item_id", 15], ["item_type", "Tang::Plan"]]  (27.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 22:10:03 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Subscription Load (13.6ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (13.8ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (24.5ms) Completed 200 OK in 74ms (Views: 21.9ms | ActiveRecord: 30.8ms) Started GET "/tang/account/subscription/new?plan=15" for 127.0.0.1 at 2016-10-02 22:10:03 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"15"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (6.6ms) Completed 200 OK in 26ms (Views: 10.9ms | ActiveRecord: 2.1ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 22:10:06 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"15"}, "stripe_token"=>"test_tok_1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 55 LIMIT 1 Tang::Subscription Exists (0.4ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 55) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 55) LIMIT 1 SQL (0.3ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-03 02:10:06.079230"], ["id", 55]]  (6.2ms) COMMIT  (0.1ms) BEGIN Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 55 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (1.9ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 15], ["customer_id", 55], ["stripe_id", "test_su_4"], ["created_at", "2016-10-03 02:10:06.093708"], ["updated_at", "2016-10-03 02:10:06.093708"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "55"], ["created_at", "2016-10-03 02:10:06.093708"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.7ms) COMMIT Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]]  (0.2ms) BEGIN SQL (11.2ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 55], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 9], ["exp_year", 2018], ["fingerprint", "hrLgWzEscxDirlpO"], ["funding", "credit"], ["last4", "4242"], ["name", "Johnny App"], ["created_at", "2016-10-03 02:10:06.127363"], ["updated_at", "2016-10-03 02:10:06.127363"]]  (0.4ms) COMMIT Redirected to http://127.0.0.1:62693/tang/account/subscription Completed 302 Found in 74ms (ActiveRecord: 26.9ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 22:10:06 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Subscription Load (0.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > 0) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.2ms) Completed 200 OK in 9ms (Views: 3.5ms | ActiveRecord: 1.7ms)  (0.9ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (2.5ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (4.2ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (50.6ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$i.KA7fSWkySmR/fNb4aB4.Rr1xYutA9Kt388wMWGt8SBgPTr6rFsK"], ["created_at", "2016-10-03 02:10:11.059968"], ["updated_at", "2016-10-03 02:10:11.059968"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-02 22:10:11 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-02 22:10:11 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 02:10:11.450502"], ["current_sign_in_at", "2016-10-03 02:10:11.450502"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 02:10:11.451200"], ["id", 1]]  (13.2ms) COMMIT Redirected to http://127.0.0.1:62693/ Completed 302 Found in 21ms (ActiveRecord: 14.4ms) Started GET "/" for 127.0.0.1 at 2016-10-02 22:10:11 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (6.3ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 02:10:11.599918"], ["updated_at", "2016-10-03 02:10:11.599918"]] SQL (0.6ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 02:10:11.599918"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 22:10:11 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.4ms) Completed 200 OK in 7ms (Views: 3.4ms | ActiveRecord: 1.3ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-02 22:10:11 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.2ms) Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-02 22:10:14 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"test_tok_1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 6ms (Views: 2.3ms | ActiveRecord: 0.8ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (38.8ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (17.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (6.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (6.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (24.6ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (3.9ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (29.2ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (69.4ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (55.1ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.5ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (2.2ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (153.4ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (84.6ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.5ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.0ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (55.2ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (15.8ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.5ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.2ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.1ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (37.9ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.8ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (45.7ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (2.9ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.6ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (61.2ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (49.5ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.5ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.0ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (63.9ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (39.1ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 22ms (Views: 16.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 25ms (Views: 19.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 20ms (Views: 13.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 23ms (Views: 16.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 22ms (Views: 16.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 23ms (Views: 17.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 22ms (Views: 16.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 24ms (Views: 18.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 18ms (Views: 13.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 18ms (Views: 13.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 21ms (Views: 15.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 19ms (Views: 13.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 20ms (Views: 14.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (33.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (45.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$Nibx9gPVJJBAOHimKG6pJOzqPrA9aq4LB4A5tArJC5RhdGhfJeBvC"], ["created_at", "2016-10-03 12:11:35.039460"], ["updated_at", "2016-10-03 12:11:35.039460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$WGOsoop01AuCyxbeZ/5v/e1C7rTJsXjiRCe5yn/LHP57OUgJ0alKy"], ["created_at", "2016-10-03 12:11:35.096486"], ["updated_at", "2016-10-03 12:11:35.096486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$R3nbAVtNZGdpoR87.hLpEeSKjYylsuBM1zg/n7Shv4lFBczKC6zP2"], ["created_at", "2016-10-03 12:11:35.102894"], ["updated_at", "2016-10-03 12:11:35.102894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 51ms (Views: 27.9ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$BTdownpdOeB9SMuTwkNcfu69kzfKJx78Gqcq/n3T/56Qb9qjV7hX."], ["created_at", "2016-10-03 12:11:35.165806"], ["updated_at", "2016-10-03 12:11:35.165806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$hPdMSolDV/ZbM9fDAMaSTemNRd6/mDztoWh5A31UP6KoRSs3QRRku"], ["created_at", "2016-10-03 12:11:35.172577"], ["updated_at", "2016-10-03 12:11:35.172577"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (2.2ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 SQL (5.5ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$aPMvLyG2pRSqlcCKMNEFZOYbZJyIw.Ip3Hxl0AGckq3qXfyyGdXHu"], ["created_at", "2016-10-03 12:11:35.186042"], ["updated_at", "2016-10-03 12:11:35.186042"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$cNeZnmjr2BdG6PVZSvD7CeXF08PSQuqaeK4jRjK4MkfOg/ManAtJ2"], ["created_at", "2016-10-03 12:11:35.197331"], ["updated_at", "2016-10-03 12:11:35.197331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$hAH9Dc5MEZ7qaiMVY4Tag.CiphHqhabSNvVR4dQGL0qAaEsy3du12"], ["created_at", "2016-10-03 12:11:35.202984"], ["updated_at", "2016-10-03 12:11:35.202984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$vDrmLWocnCahcnkv7u8sZ.bF8SFCW6biFcrO048tL2BHWuzqjRL4a"], ["created_at", "2016-10-03 12:11:35.207933"], ["updated_at", "2016-10-03 12:11:35.207933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$sMGPr/oohaHVgzLiLKgAzub8ZXlZPdExBAR9YAJ31xI3qQ.lNpwzW"], ["created_at", "2016-10-03 12:11:35.212625"], ["updated_at", "2016-10-03 12:11:35.212625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$KGZ5R5FUq/pdxyVJj4UQP.YIAhhC1mQhW6Yk2/71jazHN0sNTGUAq"], ["created_at", "2016-10-03 12:11:35.217228"], ["updated_at", "2016-10-03 12:11:35.217228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$opPx4t3iL4d9EGeRicDDrOx17x2v0qIjbOkWXWzXT1BMQA907XRti"], ["created_at", "2016-10-03 12:11:35.222010"], ["updated_at", "2016-10-03 12:11:35.222010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$gRYgCkSUH4DvDes8UfWzveaTaMNrlXfceTbintLFxH.Yl0fYWnEj."], ["created_at", "2016-10-03 12:11:35.226536"], ["updated_at", "2016-10-03 12:11:35.226536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$9xCqBvQ.JhpRCcW6/X3/AeKjh6cOXzg3SePM0TGZp6GMEK0gwI.DG"], ["created_at", "2016-10-03 12:11:35.231042"], ["updated_at", "2016-10-03 12:11:35.231042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$h3XYG9CYjw3WepS/aO2qAulCIZx/L8o7MwMiKxTOkPKGO6Jfh5b/G"], ["created_at", "2016-10-03 12:11:35.236499"], ["updated_at", "2016-10-03 12:11:35.236499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$sac2cajJm1y8TyWrI/tO1uke4AtI8Ss8HJMIfkG.on5PwWrwKihly"], ["created_at", "2016-10-03 12:11:35.241442"], ["updated_at", "2016-10-03 12:11:35.241442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$7rja1DPnxNWwwb90e2jQ2O3wYRdYeqzaXtSj/o3DYX.WjCISJ39uu"], ["created_at", "2016-10-03 12:11:35.247425"], ["updated_at", "2016-10-03 12:11:35.247425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$ufekdu3VMMRsK6XSF0eyZuKHdFyPDoG9MFDvL2YTTNUBQt2L3iiMy"], ["created_at", "2016-10-03 12:11:35.252537"], ["updated_at", "2016-10-03 12:11:35.252537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$NelBPXyoALVe4WbY5b837OkuSVvC4fZY3SZG8nTCgftCDd4RBbgjC"], ["created_at", "2016-10-03 12:11:35.257617"], ["updated_at", "2016-10-03 12:11:35.257617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$Xh2GBG/l.BfmVcEkDDohqeT505k4CpsyOTzeGI5YflGycSh5O4OEC"], ["created_at", "2016-10-03 12:11:35.262485"], ["updated_at", "2016-10-03 12:11:35.262485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$TIm0rtCd18f8V5gC1q6zp.gXTy/ffWoOnbULUSxEewSUmFhNSFqEy"], ["created_at", "2016-10-03 12:11:35.267045"], ["updated_at", "2016-10-03 12:11:35.267045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$oqc0box4Oxx9TwTxOR2cvuCKB29vlmzNIxgu1.ddOtiO.p1ea04Vi"], ["created_at", "2016-10-03 12:11:35.271335"], ["updated_at", "2016-10-03 12:11:35.271335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$yQjYCIc5ZWCnQ1svskmAkOSqmNHjAdlFopRfmIJo.jAH7Cb92/ryW"], ["created_at", "2016-10-03 12:11:35.277645"], ["updated_at", "2016-10-03 12:11:35.277645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$3v8ct4DPjwysuuipExbubuqHb9YrjeN3tDEq1RfsK62WZFWZ19K8O"], ["created_at", "2016-10-03 12:11:35.282841"], ["updated_at", "2016-10-03 12:11:35.282841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$FA9MYhVZvUK2hf2H46fBveODFGcqWOurXg4gti/YQ.b0d8rlmD/dy"], ["created_at", "2016-10-03 12:11:35.287972"], ["updated_at", "2016-10-03 12:11:35.287972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$8ITXDi.P/1e09.tlRIfUW.MVeWJSkuCx1l7WdcWNLMSl5KhCOkkG."], ["created_at", "2016-10-03 12:11:35.293170"], ["updated_at", "2016-10-03 12:11:35.293170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$Eh9acRyKZO9hCDQhn3/jLuGgw4RcGif4D4GOuCXNzTlsg8o5AKyL."], ["created_at", "2016-10-03 12:11:35.298394"], ["updated_at", "2016-10-03 12:11:35.298394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (2.6ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8c1f7ce-6eb6-46ad-b04b-e01822513cd0' LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8c1f7ce-6eb6-46ad-b04b-e01822513cd0' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b8c1f7ce-6eb6-46ad-b04b-e01822513cd0"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 12:11:35.314263"], ["updated_at", "2016-10-03 12:11:35.314263"]] SQL (18.8ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-03 12:11:35.314263"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 14ms (Views: 12.0ms | ActiveRecord: 0.3ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$TVkO4dWA9BhC2LtuBD3yYOUS/9h2kqeWhrQ3jP78HAzhh3cvc0y6G"], ["created_at", "2016-10-03 12:11:35.870275"], ["updated_at", "2016-10-03 12:11:35.870275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8c1f7ce-6eb6-46ad-b04b-e01822513cd0' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8c1f7ce-6eb6-46ad-b04b-e01822513cd0' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b8c1f7ce-6eb6-46ad-b04b-e01822513cd0"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 12:11:35.873759"], ["updated_at", "2016-10-03 12:11:35.873759"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-03 12:11:35.873759"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"2"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 28]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (0.3ms) Completed 200 OK in 10ms (Views: 5.6ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$KoP184jthOy1fyo7kxNLmOzejpCIvWWF.N0AKIhkxJz9ii2c8sow2"], ["created_at", "2016-10-03 12:11:36.274882"], ["updated_at", "2016-10-03 12:11:36.274882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$2Yd7PmMHsbUayGsmr0ytZ.WWrDDX3.zX/OJOarPNn2lTFnWd.Cy2u"], ["created_at", "2016-10-03 12:11:36.290906"], ["updated_at", "2016-10-03 12:11:36.290906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8c1f7ce-6eb6-46ad-b04b-e01822513cd0' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8c1f7ce-6eb6-46ad-b04b-e01822513cd0' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b8c1f7ce-6eb6-46ad-b04b-e01822513cd0"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 12:11:36.294141"], ["updated_at", "2016-10-03 12:11:36.294141"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-03 12:11:36.294141"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#edit as HTML Parameters: {"id"=>"3"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 30]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$w8XxL1JzjDxpAeg2.t7Zs.L6PePJFXFhcCpXdK4iY51u8zzxNBuz6"], ["created_at", "2016-10-03 12:11:37.041946"], ["updated_at", "2016-10-03 12:11:37.041946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"b8c1f7ce-6eb6-46ad-b04b-e01822513cd0", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8c1f7ce-6eb6-46ad-b04b-e01822513cd0' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8c1f7ce-6eb6-46ad-b04b-e01822513cd0' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b8c1f7ce-6eb6-46ad-b04b-e01822513cd0"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 12:11:37.052167"], ["updated_at", "2016-10-03 12:11:37.052167"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "31"], ["created_at", "2016-10-03 12:11:37.052167"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/4 Completed 302 Found in 395ms (ActiveRecord: 1.1ms)  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$TG47wSKa7oYeJ.Swhp/zvuRIe.mAhI2VHrw2PjcGl118ZfriG3iEm"], ["created_at", "2016-10-03 12:11:37.450731"], ["updated_at", "2016-10-03 12:11:37.450731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"b8c1f7ce-6eb6-46ad-b04b-e01822513cd0", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8c1f7ce-6eb6-46ad-b04b-e01822513cd0' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8c1f7ce-6eb6-46ad-b04b-e01822513cd0' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b8c1f7ce-6eb6-46ad-b04b-e01822513cd0"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 12:11:37.458438"], ["updated_at", "2016-10-03 12:11:37.458438"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "32"], ["created_at", "2016-10-03 12:11:37.458438"], ["item_id", 5], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/5 Completed 302 Found in 385ms (ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$TbaI9ZGH7JXqtfr3xU7zZeERgmAP9l39tRm7y51TO4SRIKa.cnZqq"], ["created_at", "2016-10-03 12:11:37.848964"], ["updated_at", "2016-10-03 12:11:37.848964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"b8c1f7ce-6eb6-46ad-b04b-e01822513cd0", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8c1f7ce-6eb6-46ad-b04b-e01822513cd0' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8c1f7ce-6eb6-46ad-b04b-e01822513cd0' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b8c1f7ce-6eb6-46ad-b04b-e01822513cd0"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 12:11:37.857109"], ["updated_at", "2016-10-03 12:11:37.857109"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "33"], ["created_at", "2016-10-03 12:11:37.857109"], ["item_id", 6], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/6 Completed 302 Found in 371ms (ActiveRecord: 1.2ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$hsXnqsCITCitqqCmYWkNUu.ZiftfXjQFf0mFUJXyw51C5uMwDCpSq"], ["created_at", "2016-10-03 12:11:38.233159"], ["updated_at", "2016-10-03 12:11:38.233159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"b8c1f7ce-6eb6-46ad-b04b-e01822513cd0", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8c1f7ce-6eb6-46ad-b04b-e01822513cd0' LIMIT 1  (11.5ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.1ms) Completed 200 OK in 26ms (Views: 0.6ms | ActiveRecord: 12.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$3nLaUDpOvpttU2ufZmpVduuOBedmKGyUdn3T59DTP05oC94ea8v8m"], ["created_at", "2016-10-03 12:11:38.269639"], ["updated_at", "2016-10-03 12:11:38.269639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"b8c1f7ce-6eb6-46ad-b04b-e01822513cd0", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8c1f7ce-6eb6-46ad-b04b-e01822513cd0' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.1ms) Completed 200 OK in 6ms (Views: 0.7ms | ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$86D9.BWt8wsWxSN7MG3db.741iGJS1k/DcijugC0/y6bK6a3kYZ2a"], ["created_at", "2016-10-03 12:11:38.294552"], ["updated_at", "2016-10-03 12:11:38.294552"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8c1f7ce-6eb6-46ad-b04b-e01822513cd0' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8c1f7ce-6eb6-46ad-b04b-e01822513cd0' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b8c1f7ce-6eb6-46ad-b04b-e01822513cd0"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 12:11:38.297726"], ["updated_at", "2016-10-03 12:11:38.297726"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-03 12:11:38.297726"], ["item_id", 7], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$UFklpEeQwsDrOm9TvHXYD.1Gw2OGhlp9HYXthcLI0NZlh9ONBltIW"], ["created_at", "2016-10-03 12:11:38.686085"], ["updated_at", "2016-10-03 12:11:38.686085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8c1f7ce-6eb6-46ad-b04b-e01822513cd0' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8c1f7ce-6eb6-46ad-b04b-e01822513cd0' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b8c1f7ce-6eb6-46ad-b04b-e01822513cd0"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 12:11:38.690249"], ["updated_at", "2016-10-03 12:11:38.690249"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-03 12:11:38.690249"], ["item_id", 8], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"b8c1f7ce-6eb6-46ad-b04b-e01822513cd0", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"8"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 37]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 8]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'b8c1f7ce-6eb6-46ad-b04b-e01822513cd0' AND "tang_plans"."id" != 8) LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'b8c1f7ce-6eb6-46ad-b04b-e01822513cd0' AND "tang_plans"."id" != 8) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/8 Completed 302 Found in 763ms (ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$X.copgOo2Y.u6BjdMt0FSOJpT/JdgRDJ2nE8yijtoFs9ik1b9MZ02"], ["created_at", "2016-10-03 12:11:39.825402"], ["updated_at", "2016-10-03 12:11:39.825402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8c1f7ce-6eb6-46ad-b04b-e01822513cd0' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8c1f7ce-6eb6-46ad-b04b-e01822513cd0' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b8c1f7ce-6eb6-46ad-b04b-e01822513cd0"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 12:11:39.829710"], ["updated_at", "2016-10-03 12:11:39.829710"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "37"], ["created_at", "2016-10-03 12:11:39.829710"], ["item_id", 9], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"b8c1f7ce-6eb6-46ad-b04b-e01822513cd0", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"9"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 38]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 9]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'b8c1f7ce-6eb6-46ad-b04b-e01822513cd0' AND "tang_plans"."id" != 9) LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'b8c1f7ce-6eb6-46ad-b04b-e01822513cd0' AND "tang_plans"."id" != 9) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/9 Completed 302 Found in 751ms (ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$7e63V.EiZE4DLZOSOApdN.3aiJ5oLgy/oALY1Lv3Ej6T0WD/DF1ii"], ["created_at", "2016-10-03 12:11:41.004938"], ["updated_at", "2016-10-03 12:11:41.004938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8c1f7ce-6eb6-46ad-b04b-e01822513cd0' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8c1f7ce-6eb6-46ad-b04b-e01822513cd0' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b8c1f7ce-6eb6-46ad-b04b-e01822513cd0"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 12:11:41.008734"], ["updated_at", "2016-10-03 12:11:41.008734"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "38"], ["created_at", "2016-10-03 12:11:41.008734"], ["item_id", 10], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"b8c1f7ce-6eb6-46ad-b04b-e01822513cd0", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"10"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 39]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 10]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'b8c1f7ce-6eb6-46ad-b04b-e01822513cd0' AND "tang_plans"."id" != 10) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 6ms (Views: 0.6ms | ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$Is1cpbQE.vOxDcBXr7RtWeDssD9zX5AD2vS90MLlsM/fI0y/67XhG"], ["created_at", "2016-10-03 12:11:41.401709"], ["updated_at", "2016-10-03 12:11:41.401709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8c1f7ce-6eb6-46ad-b04b-e01822513cd0' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8c1f7ce-6eb6-46ad-b04b-e01822513cd0' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b8c1f7ce-6eb6-46ad-b04b-e01822513cd0"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 12:11:41.405462"], ["updated_at", "2016-10-03 12:11:41.405462"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "39"], ["created_at", "2016-10-03 12:11:41.405462"], ["item_id", 11], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"b8c1f7ce-6eb6-46ad-b04b-e01822513cd0", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"11"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 40]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 11]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'b8c1f7ce-6eb6-46ad-b04b-e01822513cd0' AND "tang_plans"."id" != 11) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.0ms) Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$fRRJ60wLKgy4tQYJQFC9z.egTwk6fPFrEYNbcneQK9shHlePC/GOG"], ["created_at", "2016-10-03 12:11:41.791489"], ["updated_at", "2016-10-03 12:11:41.791489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8c1f7ce-6eb6-46ad-b04b-e01822513cd0' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8c1f7ce-6eb6-46ad-b04b-e01822513cd0' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b8c1f7ce-6eb6-46ad-b04b-e01822513cd0"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 12:11:41.794712"], ["updated_at", "2016-10-03 12:11:41.794712"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "40"], ["created_at", "2016-10-03 12:11:41.794712"], ["item_id", 12], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"12"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 41]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 12]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 12], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 12\nstripe_id: b8c1f7ce-6eb6-46ad-b04b-e01822513cd0\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: 0\nhighlight: false\ncreated_at: 2016-10-03 12:11:41.794712000 Z\nupdated_at: 2016-10-03 12:11:41.794712000 Z\n"], ["whodunnit", "41"], ["created_at", "2016-10-03 12:11:42.179763"]] SQL (0.2ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 792ms (ActiveRecord: 1.0ms)  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$0iSTKkytDo9dwNvJnBqMSum202IRvw8vwF2s3gHoeTSbuDwaFB1EW"], ["created_at", "2016-10-03 12:11:42.970862"], ["updated_at", "2016-10-03 12:11:42.970862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8c1f7ce-6eb6-46ad-b04b-e01822513cd0' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8c1f7ce-6eb6-46ad-b04b-e01822513cd0' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b8c1f7ce-6eb6-46ad-b04b-e01822513cd0"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 12:11:42.975437"], ["updated_at", "2016-10-03 12:11:42.975437"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "41"], ["created_at", "2016-10-03 12:11:42.975437"], ["item_id", 13], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"13"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 42]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 13]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 13], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 13\nstripe_id: b8c1f7ce-6eb6-46ad-b04b-e01822513cd0\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: 0\nhighlight: false\ncreated_at: 2016-10-03 12:11:42.975437000 Z\nupdated_at: 2016-10-03 12:11:42.975437000 Z\n"], ["whodunnit", "42"], ["created_at", "2016-10-03 12:11:43.382561"]] SQL (0.3ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 746ms (ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$s8V/R9SKEazYE0eNQqopUuekQilJbT65WlUC5dYUuXHgfSXxrcp56"], ["created_at", "2016-10-03 12:11:44.131968"], ["updated_at", "2016-10-03 12:11:44.131968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$z05OqcAYMX1W2VhNue1GaeBpsUeu5IYmr21nxXFyiM609yJ4EvXm."], ["created_at", "2016-10-03 12:11:44.137926"], ["updated_at", "2016-10-03 12:11:44.137926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$LTm4nkpI8vXHE41iqmHQpuIpqpzD3rwBl0uktq.vZRUsYGMZluP0W"], ["created_at", "2016-10-03 12:11:44.143066"], ["updated_at", "2016-10-03 12:11:44.143066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$M2dpTIOQ94ryJ8XrVzG/PepHmEnnxRmGlLyZFtmeX0EkBijvBw2yi"], ["created_at", "2016-10-03 12:11:44.147998"], ["updated_at", "2016-10-03 12:11:44.147998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$yEqo/BOewtieVt/MklTimOpO.hlgcTT2jA3IJKKOXKsmNBhSdB.k."], ["created_at", "2016-10-03 12:11:44.153060"], ["updated_at", "2016-10-03 12:11:44.153060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$hj1./V.ATtHHwdQFjoSRZuHttd6.14By7tSZaU0BbXU1BWdgtvPWO"], ["created_at", "2016-10-03 12:11:44.157651"], ["updated_at", "2016-10-03 12:11:44.157651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$BFL9biUyynmFf1CaX05A6uR5cYmOgJjqxhPh.sQtG2E9yjOhN1LrW"], ["created_at", "2016-10-03 12:11:44.162720"], ["updated_at", "2016-10-03 12:11:44.162720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$VzRFLeCSPSxpUCCS9/Zuyebq6zUdtbIfcyQY27fE6pwT3XjF6jQnC"], ["created_at", "2016-10-03 12:11:44.167527"], ["updated_at", "2016-10-03 12:11:44.167527"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$PiPEqUtOJCNisQmc9hxa.u70Tlh/K5o2KvavOltSwt.XUEDFPkbk2"], ["created_at", "2016-10-03 12:11:44.174581"], ["updated_at", "2016-10-03 12:11:44.174581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$Kqeu0Iq04ubFBgCwhx98ees500HZ0.S5JJXuQ7MtCizYawTbOn8pm"], ["created_at", "2016-10-03 12:11:44.180312"], ["updated_at", "2016-10-03 12:11:44.180312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 15ms (Views: 7.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (1.7ms) COMMIT  (0.2ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (3.0ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$Jn3S2qgWRq0WB8fHXb/tGO3oRJTBi60LgSTWCUoJQKpAkZCGGDJHy"], ["created_at", "2016-10-03 12:11:57.920289"], ["updated_at", "2016-10-03 12:11:57.920289"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:11:57 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.2ms) Rendered devise/sessions/new.html.erb within layouts/application (39.2ms) Completed 200 OK in 319ms (Views: 303.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:11:58 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (6.1ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 12:11:58.292807"], ["current_sign_in_at", "2016-10-03 12:11:58.292807"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 12:11:58.293520"], ["id", 53]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 26ms (ActiveRecord: 6.7ms) Started GET "/" for 127.0.0.1 at 2016-10-03 08:11:58 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 08:11:58 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (10.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (14.6ms) Completed 200 OK in 48ms (Views: 29.2ms | ActiveRecord: 1.4ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 08:11:58 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 12:11:58.439821"], ["updated_at", "2016-10-03 12:11:58.439821"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "53"], ["created_at", "2016-10-03 12:11:58.439821"], ["item_id", 14], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/14 Completed 302 Found in 851ms (ActiveRecord: 3.1ms) Started GET "/tang/admin/plans/14" for 127.0.0.1 at 2016-10-03 08:11:59 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"14"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 14]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (14.5ms) Completed 200 OK in 24ms (Views: 19.1ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$ul2rTc.s6j3aLe0Ffsld2.LyyDPKx.vlmNQdkLav3Xz5HWlJ8ipmm"], ["created_at", "2016-10-03 12:11:59.332874"], ["updated_at", "2016-10-03 12:11:59.332874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:11:59 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.5ms) Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:11:59 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 12:11:59.356219"], ["current_sign_in_at", "2016-10-03 12:11:59.356219"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 12:11:59.357745"], ["id", 54]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 15ms (ActiveRecord: 1.1ms) Started GET "/" for 127.0.0.1 at 2016-10-03 08:11:59 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]] Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 08:11:59 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (5.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (5.8ms) Completed 200 OK in 11ms (Views: 8.1ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 08:11:59 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (7.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (8.6ms) Completed 200 OK in 22ms (Views: 10.8ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$BcaYixXdbUgY1JSWnpW8BetTnivd6xBbY30hm3phnyuJA0sehx656"], ["created_at", "2016-10-03 12:11:59.507489"], ["updated_at", "2016-10-03 12:11:59.507489"]]  (6.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:12:03 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.7ms) Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-03 08:12:03 -0400 Started GET "/assets/application-ae2f3e9153ab8790e8aa4db3ee24569c31c04e9721cf338869bc8e4f22fac81c.js" for 127.0.0.1 at 2016-10-03 08:12:03 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:12:04 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 12:12:04.151162"], ["current_sign_in_at", "2016-10-03 12:12:04.151162"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 12:12:04.152132"], ["id", 55]]  (0.5ms) COMMIT Redirected to http://127.0.0.1:51581/ Completed 302 Found in 11ms (ActiveRecord: 1.8ms) Started GET "/" for 127.0.0.1 at 2016-10-03 08:12:04 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.2ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 12:12:04.308258"], ["updated_at", "2016-10-03 12:12:04.308258"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 12:12:04.308258"], ["item_id", 15], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 08:12:04 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Subscription Load (14.1ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.5ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (13.8ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (23.2ms) Completed 200 OK in 77ms (Views: 19.1ms | ActiveRecord: 37.2ms) Started GET "/tang/account/subscription/new?plan=15" for 127.0.0.1 at 2016-10-03 08:12:04 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"15"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (4.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (7.8ms) Completed 200 OK in 27ms (Views: 12.1ms | ActiveRecord: 3.8ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 08:12:06 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"15"}, "stripe_token"=>"test_tok_1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 55 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 55) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 55) LIMIT 1 SQL (0.2ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-03 12:12:06.940090"], ["id", 55]]  (12.1ms) COMMIT  (0.1ms) BEGIN Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 55 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 15], ["customer_id", 55], ["stripe_id", "test_su_4"], ["created_at", "2016-10-03 12:12:06.959298"], ["updated_at", "2016-10-03 12:12:06.959298"]] SQL (0.6ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "55"], ["created_at", "2016-10-03 12:12:06.959298"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.3ms) COMMIT Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]]  (0.1ms) BEGIN SQL (2.4ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 55], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 9], ["exp_year", 2018], ["fingerprint", "hrLgWzEscxDirlpO"], ["funding", "credit"], ["last4", "4242"], ["name", "Johnny App"], ["created_at", "2016-10-03 12:12:06.991767"], ["updated_at", "2016-10-03 12:12:06.991767"]]  (0.4ms) COMMIT Redirected to http://127.0.0.1:51581/tang/account/subscription Completed 302 Found in 72ms (ActiveRecord: 20.9ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 08:12:06 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Subscription Load (0.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > 0) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.2ms) Completed 200 OK in 8ms (Views: 3.3ms | ActiveRecord: 1.8ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.2ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (108.0ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (4.0ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$KoPbyVW2kfl95hFUrEX4keGLRtzFvcxxglD0voEmJEbpGL.AINEp."], ["created_at", "2016-10-03 12:12:11.957618"], ["updated_at", "2016-10-03 12:12:11.957618"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:12:11 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (10.2ms) Completed 200 OK in 20ms (Views: 18.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:12:12 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 12:12:12.358923"], ["current_sign_in_at", "2016-10-03 12:12:12.358923"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 12:12:12.359905"], ["id", 1]]  (11.7ms) COMMIT Redirected to http://127.0.0.1:51581/ Completed 302 Found in 20ms (ActiveRecord: 12.8ms) Started GET "/" for 127.0.0.1 at 2016-10-03 08:12:12 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (5.5ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 12:12:12.506327"], ["updated_at", "2016-10-03 12:12:12.506327"]] SQL (0.7ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 12:12:12.506327"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 08:12:12 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.5ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.9ms) Completed 200 OK in 9ms (Views: 4.0ms | ActiveRecord: 1.5ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-03 08:12:12 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.2ms) Completed 200 OK in 6ms (Views: 2.8ms | ActiveRecord: 0.5ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 08:12:14 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"test_tok_1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.3ms) Completed 200 OK in 8ms (Views: 3.5ms | ActiveRecord: 0.7ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (78.1ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 20ms (Views: 15.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$.Y7ud4OMaYndOT6un538AOJRbta73vyhyyBXkKjx2ej7oCh7MPyi6"], ["created_at", "2016-10-03 12:13:33.509656"], ["updated_at", "2016-10-03 12:13:33.509656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$VGwfZN4J952KMhZG2RYhHOsdFM41OaQYEFDE2Er5P.wDhsYO3G4BK"], ["created_at", "2016-10-03 12:13:33.516298"], ["updated_at", "2016-10-03 12:13:33.516298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$Fj2UQD42gMJ17acjX7enLOi43/5uVAVe00gKBH.tDrZ8psD7uRYTi"], ["created_at", "2016-10-03 12:13:33.521126"], ["updated_at", "2016-10-03 12:13:33.521126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 46ms (Views: 27.8ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$oh3EV3l6g.8tqjR3PTFAq.mfUJfP6aQZTVtIva2TspqKYEhcPRpk."], ["created_at", "2016-10-03 12:13:33.578177"], ["updated_at", "2016-10-03 12:13:33.578177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$y7ADDSoO12EEcxkgTjFUGOPEj6PMtXyE8L1qxVwbvshtlsSVCaJRK"], ["created_at", "2016-10-03 12:13:33.583390"], ["updated_at", "2016-10-03 12:13:33.583390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$61.aUBhdUgR2y14aG/AOmeGNIrd3rt/leMlOUU7cVNEYzPRIlPUOO"], ["created_at", "2016-10-03 12:13:33.593939"], ["updated_at", "2016-10-03 12:13:33.593939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$pX0fiqyyjDP2VNxSupquLe3aGNK0PT3CHqGSo6SbUXovAEvODssC6"], ["created_at", "2016-10-03 12:13:33.598759"], ["updated_at", "2016-10-03 12:13:33.598759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$IdZuXHejsfZ3l7YddydDWORHkPyV0o0uTl4eV3Mmb1RnAvZzYBR8G"], ["created_at", "2016-10-03 12:13:33.603250"], ["updated_at", "2016-10-03 12:13:33.603250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$L8tkkT7tR44FtOmqBOI.lu.Rmm0rWBMQhkU/CbBMnGg4krJNttg7W"], ["created_at", "2016-10-03 12:13:33.609220"], ["updated_at", "2016-10-03 12:13:33.609220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$uFXU5dqAHz1aTMd2IXu.WOzbII/7GgN00vqs1Gp2WUsMkfEoD8sPK"], ["created_at", "2016-10-03 12:13:33.615170"], ["updated_at", "2016-10-03 12:13:33.615170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$2J5WqrtpicgYG/gAd5O7De.Hhi1QTkVnjm/wqfM6jPzdxVrCsZPn2"], ["created_at", "2016-10-03 12:13:33.620711"], ["updated_at", "2016-10-03 12:13:33.620711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$ouWmtGxGg3uxmCsmE3/WMuBKExpUMt0uepc.rMSNbM7xIoqlJ25AC"], ["created_at", "2016-10-03 12:13:33.625230"], ["updated_at", "2016-10-03 12:13:33.625230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$KKpn2M6nSrAd7CXkDJOE4eubxNiNam8LQz4s8Fj.w08hCT2wutghm"], ["created_at", "2016-10-03 12:13:33.630848"], ["updated_at", "2016-10-03 12:13:33.630848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$h98rtor5qUSEkhKHpTzVc.8bG4zAQsAZ6VqTjg2gQNktTHl/VEiZ6"], ["created_at", "2016-10-03 12:13:33.636492"], ["updated_at", "2016-10-03 12:13:33.636492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$ONH0bJgEJgJvIoSbGNLXa.RVqbMtM1gd49PLJ7UkPIZmw4IsC9x4e"], ["created_at", "2016-10-03 12:13:33.641462"], ["updated_at", "2016-10-03 12:13:33.641462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$xMiYdT7f.9L08VO7NW9Au.IBQ28rwHJsmRCcSUQBYiAOfEGRDVggm"], ["created_at", "2016-10-03 12:13:33.646636"], ["updated_at", "2016-10-03 12:13:33.646636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$QzvTpTkmopkWCa93pKCvC.Mbe1u4hwgLNJDa/WTCIdGZniAVomFpO"], ["created_at", "2016-10-03 12:13:33.651900"], ["updated_at", "2016-10-03 12:13:33.651900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$OBjfFx42/M.EE4V9v26JQOM3dFIQx1QL4FG1/XpAGpG/UYDoAiGAa"], ["created_at", "2016-10-03 12:13:33.657079"], ["updated_at", "2016-10-03 12:13:33.657079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$nhJeSRPeiG3dR0X1guTcHeziTLXFISIhxIE/iU5hSh1isMUTsHhye"], ["created_at", "2016-10-03 12:13:33.662358"], ["updated_at", "2016-10-03 12:13:33.662358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$YWZXGv55ewBt6Bxt./D2k.yPSRySkJNqlXDYig90rwV5TKH.MAE2u"], ["created_at", "2016-10-03 12:13:33.667114"], ["updated_at", "2016-10-03 12:13:33.667114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$1knhw15/lMcIdWT50Exfx.SLPTvJgRXV0HRpF2.fehvjacFMqYjVq"], ["created_at", "2016-10-03 12:13:33.672755"], ["updated_at", "2016-10-03 12:13:33.672755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$VLCz/oqsubgg1utRcea/iuUnzXmgv1NPXpA4KFb8eJKCkYw6sIcg."], ["created_at", "2016-10-03 12:13:33.677942"], ["updated_at", "2016-10-03 12:13:33.677942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$GbOgQVrHNyWY7.pJWvOE9uD1H0q0gG2TYzdghb6DisFqccozwL/lu"], ["created_at", "2016-10-03 12:13:33.684420"], ["updated_at", "2016-10-03 12:13:33.684420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$ke.e2xpL94qqPgHPTNc4J.tWlL10e8V46vS8/3gRgsQpwYKwHw8S6"], ["created_at", "2016-10-03 12:13:33.689236"], ["updated_at", "2016-10-03 12:13:33.689236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$lXCQQUGPkY9V4MCU4PT8iexHHbDLf7StPhVrqhfQpdO1lQNWVZkge"], ["created_at", "2016-10-03 12:13:33.694973"], ["updated_at", "2016-10-03 12:13:33.694973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$nFMZ2oR1Ochf20xCOeMCjOh6.qbO0s7Z.N1WODxKbX1wi0pRrjj/W"], ["created_at", "2016-10-03 12:13:33.700636"], ["updated_at", "2016-10-03 12:13:33.700636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$emUp9Q.STV7rR2ILXr3Pi.o8mcFIJrQb9dcdDLPNfq73U3qfBO0Am"], ["created_at", "2016-10-03 12:13:33.707749"], ["updated_at", "2016-10-03 12:13:33.707749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1607714a-0531-494e-9d1c-92b545e5d2ed' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1607714a-0531-494e-9d1c-92b545e5d2ed' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "1607714a-0531-494e-9d1c-92b545e5d2ed"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 12:13:33.723665"], ["updated_at", "2016-10-03 12:13:33.723665"]] SQL (0.8ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-03 12:13:33.723665"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 17ms (Views: 14.3ms | ActiveRecord: 0.2ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$XmtCL9AArm2SWLj9AToIQ.NZfHwqp.HtwWpt/iooyGdZyGP/GYEQO"], ["created_at", "2016-10-03 12:13:34.215080"], ["updated_at", "2016-10-03 12:13:34.215080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1607714a-0531-494e-9d1c-92b545e5d2ed' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1607714a-0531-494e-9d1c-92b545e5d2ed' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "1607714a-0531-494e-9d1c-92b545e5d2ed"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 12:13:34.218737"], ["updated_at", "2016-10-03 12:13:34.218737"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-03 12:13:34.218737"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"2"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 28]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (0.4ms) Completed 200 OK in 9ms (Views: 5.3ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$mfMluFXJckCjvmSskJu70.mwcqDBNfe6F8VftJxK82ex.tDgUeLUa"], ["created_at", "2016-10-03 12:13:34.599215"], ["updated_at", "2016-10-03 12:13:34.599215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$idvx/PveWlM0MtmfR.x48.RsjTbb4SQQQMSN22L7ymwJE7cOnq2ai"], ["created_at", "2016-10-03 12:13:34.615160"], ["updated_at", "2016-10-03 12:13:34.615160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1607714a-0531-494e-9d1c-92b545e5d2ed' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1607714a-0531-494e-9d1c-92b545e5d2ed' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "1607714a-0531-494e-9d1c-92b545e5d2ed"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 12:13:34.619888"], ["updated_at", "2016-10-03 12:13:34.619888"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-03 12:13:34.619888"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#edit as HTML Parameters: {"id"=>"3"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 30]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.4ms) Completed 200 OK in 10ms (Views: 7.7ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$7gCWB9IFXl5lK6oduf2Pn.zXavCGSc4Q4Ymn0Q3otPCQk4S9Lkshm"], ["created_at", "2016-10-03 12:13:35.048755"], ["updated_at", "2016-10-03 12:13:35.048755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"1607714a-0531-494e-9d1c-92b545e5d2ed", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1607714a-0531-494e-9d1c-92b545e5d2ed' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1607714a-0531-494e-9d1c-92b545e5d2ed' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "1607714a-0531-494e-9d1c-92b545e5d2ed"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 12:13:35.058597"], ["updated_at", "2016-10-03 12:13:35.058597"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "31"], ["created_at", "2016-10-03 12:13:35.058597"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/4 Completed 302 Found in 431ms (ActiveRecord: 1.3ms)  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$LN8O8uIURcyDbb.Jm.f15.X2gtM5N9ho7xZIfE7uV/qSdh/3dZgt2"], ["created_at", "2016-10-03 12:13:35.492022"], ["updated_at", "2016-10-03 12:13:35.492022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"1607714a-0531-494e-9d1c-92b545e5d2ed", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1607714a-0531-494e-9d1c-92b545e5d2ed' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1607714a-0531-494e-9d1c-92b545e5d2ed' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "1607714a-0531-494e-9d1c-92b545e5d2ed"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 12:13:35.499589"], ["updated_at", "2016-10-03 12:13:35.499589"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "32"], ["created_at", "2016-10-03 12:13:35.499589"], ["item_id", 5], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/5 Completed 302 Found in 370ms (ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$SuVl2dnc6hAq2P60d5Wjkucw..3ueQFi1S0jZPhe9fYHuEwptJQoq"], ["created_at", "2016-10-03 12:13:35.875187"], ["updated_at", "2016-10-03 12:13:35.875187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"1607714a-0531-494e-9d1c-92b545e5d2ed", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1607714a-0531-494e-9d1c-92b545e5d2ed' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1607714a-0531-494e-9d1c-92b545e5d2ed' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "1607714a-0531-494e-9d1c-92b545e5d2ed"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 12:13:35.883435"], ["updated_at", "2016-10-03 12:13:35.883435"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "33"], ["created_at", "2016-10-03 12:13:35.883435"], ["item_id", 6], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/6 Completed 302 Found in 376ms (ActiveRecord: 1.2ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$Y5utgL5qmc2K6lPt3z6N7eDko3xU/nb6LdL32PxxbGi6r4BVqRO0O"], ["created_at", "2016-10-03 12:13:36.264096"], ["updated_at", "2016-10-03 12:13:36.264096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"1607714a-0531-494e-9d1c-92b545e5d2ed", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1607714a-0531-494e-9d1c-92b545e5d2ed' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.0ms) Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$VqWehcwRTTqdD6NC/0L7h.jMdoFinqet36IacohvOBYCY08lbYo9G"], ["created_at", "2016-10-03 12:13:36.286319"], ["updated_at", "2016-10-03 12:13:36.286319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"1607714a-0531-494e-9d1c-92b545e5d2ed", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1607714a-0531-494e-9d1c-92b545e5d2ed' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.1ms) Completed 200 OK in 6ms (Views: 0.6ms | ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$zUkLNC4/ZMOSPXIxA5U/veHeaFrDwmRwNkjhdVqLriZ7vu0yNQRem"], ["created_at", "2016-10-03 12:13:36.304208"], ["updated_at", "2016-10-03 12:13:36.304208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1607714a-0531-494e-9d1c-92b545e5d2ed' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1607714a-0531-494e-9d1c-92b545e5d2ed' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "1607714a-0531-494e-9d1c-92b545e5d2ed"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 12:13:36.307745"], ["updated_at", "2016-10-03 12:13:36.307745"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-03 12:13:36.307745"], ["item_id", 7], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$qAJWud.wXsYzwX9XwNXjGO2XqZ5vSe5HKaHzUEbd39GEJj3QQ4oXm"], ["created_at", "2016-10-03 12:13:36.735130"], ["updated_at", "2016-10-03 12:13:36.735130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1607714a-0531-494e-9d1c-92b545e5d2ed' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1607714a-0531-494e-9d1c-92b545e5d2ed' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "1607714a-0531-494e-9d1c-92b545e5d2ed"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 12:13:36.738591"], ["updated_at", "2016-10-03 12:13:36.738591"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-03 12:13:36.738591"], ["item_id", 8], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"1607714a-0531-494e-9d1c-92b545e5d2ed", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"8"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 37]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 8]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '1607714a-0531-494e-9d1c-92b545e5d2ed' AND "tang_plans"."id" != 8) LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '1607714a-0531-494e-9d1c-92b545e5d2ed' AND "tang_plans"."id" != 8) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/8 Completed 302 Found in 719ms (ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$lEuguUikpoTEdVuett0OeePKIaGn7CSUYKNaKQ17OxtBUXNxKEob."], ["created_at", "2016-10-03 12:13:37.835229"], ["updated_at", "2016-10-03 12:13:37.835229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1607714a-0531-494e-9d1c-92b545e5d2ed' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1607714a-0531-494e-9d1c-92b545e5d2ed' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "1607714a-0531-494e-9d1c-92b545e5d2ed"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 12:13:37.839768"], ["updated_at", "2016-10-03 12:13:37.839768"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "37"], ["created_at", "2016-10-03 12:13:37.839768"], ["item_id", 9], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"1607714a-0531-494e-9d1c-92b545e5d2ed", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"9"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 38]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 9]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '1607714a-0531-494e-9d1c-92b545e5d2ed' AND "tang_plans"."id" != 9) LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '1607714a-0531-494e-9d1c-92b545e5d2ed' AND "tang_plans"."id" != 9) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/9 Completed 302 Found in 703ms (ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$GvPcdf4xivFeufBWp0914.z.SF5T59gAfhJoTdwvhrpOJAj9TcLKi"], ["created_at", "2016-10-03 12:13:38.927636"], ["updated_at", "2016-10-03 12:13:38.927636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1607714a-0531-494e-9d1c-92b545e5d2ed' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1607714a-0531-494e-9d1c-92b545e5d2ed' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "1607714a-0531-494e-9d1c-92b545e5d2ed"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 12:13:38.931598"], ["updated_at", "2016-10-03 12:13:38.931598"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "38"], ["created_at", "2016-10-03 12:13:38.931598"], ["item_id", 10], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"1607714a-0531-494e-9d1c-92b545e5d2ed", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"10"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 39]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 10]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '1607714a-0531-494e-9d1c-92b545e5d2ed' AND "tang_plans"."id" != 10) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.2ms) Completed 200 OK in 6ms (Views: 0.9ms | ActiveRecord: 0.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$DxnOFrAE9jK8Fkpm91EGn.VVoKfw3cyZKDRCuhp5yIgqPkJz799DO"], ["created_at", "2016-10-03 12:13:39.302586"], ["updated_at", "2016-10-03 12:13:39.302586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1607714a-0531-494e-9d1c-92b545e5d2ed' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1607714a-0531-494e-9d1c-92b545e5d2ed' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "1607714a-0531-494e-9d1c-92b545e5d2ed"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 12:13:39.306249"], ["updated_at", "2016-10-03 12:13:39.306249"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "39"], ["created_at", "2016-10-03 12:13:39.306249"], ["item_id", 11], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"1607714a-0531-494e-9d1c-92b545e5d2ed", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"11"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 40]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 11]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '1607714a-0531-494e-9d1c-92b545e5d2ed' AND "tang_plans"."id" != 11) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.0ms) Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$KUE7Nzk.4wCglm0bNEewq.fC0RgB2AN1xLmMtZTF7SBd0NMJY7F4a"], ["created_at", "2016-10-03 12:13:39.718429"], ["updated_at", "2016-10-03 12:13:39.718429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1607714a-0531-494e-9d1c-92b545e5d2ed' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1607714a-0531-494e-9d1c-92b545e5d2ed' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "1607714a-0531-494e-9d1c-92b545e5d2ed"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 12:13:39.721804"], ["updated_at", "2016-10-03 12:13:39.721804"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "40"], ["created_at", "2016-10-03 12:13:39.721804"], ["item_id", 12], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"12"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 41]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 12]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 12], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 12\nstripe_id: 1607714a-0531-494e-9d1c-92b545e5d2ed\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: 0\nhighlight: false\ncreated_at: 2016-10-03 12:13:39.721804000 Z\nupdated_at: 2016-10-03 12:13:39.721804000 Z\n"], ["whodunnit", "41"], ["created_at", "2016-10-03 12:13:40.088566"]] SQL (0.2ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 746ms (ActiveRecord: 1.1ms)  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$TMZKg2yvBCOD1e2nqUQWZeqXqBNnhEKUJKHw0AAJ5ZIsm4yegx3SC"], ["created_at", "2016-10-03 12:13:40.835356"], ["updated_at", "2016-10-03 12:13:40.835356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1607714a-0531-494e-9d1c-92b545e5d2ed' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '1607714a-0531-494e-9d1c-92b545e5d2ed' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "1607714a-0531-494e-9d1c-92b545e5d2ed"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 12:13:40.839034"], ["updated_at", "2016-10-03 12:13:40.839034"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "41"], ["created_at", "2016-10-03 12:13:40.839034"], ["item_id", 13], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"13"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 42]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 13]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 13], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 13\nstripe_id: 1607714a-0531-494e-9d1c-92b545e5d2ed\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: 0\nhighlight: false\ncreated_at: 2016-10-03 12:13:40.839034000 Z\nupdated_at: 2016-10-03 12:13:40.839034000 Z\n"], ["whodunnit", "42"], ["created_at", "2016-10-03 12:13:41.622545"]] SQL (0.3ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 741ms (ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$QY52/50y086z.Tu36zFBG.Z0stUcDo93Kh8YvSiYkeo7CxfNDeF1W"], ["created_at", "2016-10-03 12:13:42.366803"], ["updated_at", "2016-10-03 12:13:42.366803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$KMtDoHM6h6UA7wReCVLL9uWzSb0PQSyL1yr.0jtEeCo2vOqDLnMVS"], ["created_at", "2016-10-03 12:13:42.373115"], ["updated_at", "2016-10-03 12:13:42.373115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$P0DgDhHUBLGCW4yIHsLjdeGZHcj9EhuuLsE1QPq3ue0sVi2DfQHTy"], ["created_at", "2016-10-03 12:13:42.378315"], ["updated_at", "2016-10-03 12:13:42.378315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$qX2I4Vzp13y4Ik220zYBxeQ6FQ37YMEeSnqMfWhtKbp1I0AZsdetS"], ["created_at", "2016-10-03 12:13:42.383066"], ["updated_at", "2016-10-03 12:13:42.383066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$z99JFxOPOt.jSqOE76H5ROfW/Hklsta1n6PqLYmh6xulnBkHdLJQ2"], ["created_at", "2016-10-03 12:13:42.388136"], ["updated_at", "2016-10-03 12:13:42.388136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 SQL (3.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$ViRJllMeyAgEvd8HQ7P5x.dUKYtbqsDQTcZZCdrirnOXaDBFWlpfy"], ["created_at", "2016-10-03 12:13:42.393852"], ["updated_at", "2016-10-03 12:13:42.393852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$j0EhC0/g93ROUylzHnjmBuXALwmeCJEcp1zCaNIba1b5HLxFq3XWS"], ["created_at", "2016-10-03 12:13:42.402983"], ["updated_at", "2016-10-03 12:13:42.402983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$XfyM8dDwNzYbk6UTg6EJzeWR2K7A4JSRxG5G6IqLR0.Fu0E11Vjsm"], ["created_at", "2016-10-03 12:13:42.408579"], ["updated_at", "2016-10-03 12:13:42.408579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$sQCF/pBonyZ5OaKJmc5KXOecnqKAk8WotMatpeER5wWfr8v331a7i"], ["created_at", "2016-10-03 12:13:42.413338"], ["updated_at", "2016-10-03 12:13:42.413338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$Z1Hcy07/P2wqhcOkXqMpA.LE2u38SrMyovXzySa.6uTapuSvBaQC."], ["created_at", "2016-10-03 12:13:42.418485"], ["updated_at", "2016-10-03 12:13:42.418485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 15ms (Views: 8.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.5ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.0ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.9ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (45.4ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (15.3ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (1.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$T/xtYbzMsN05Opy5X2LqkuHrIHxxFMXPt5945qXUPNVEJ7GlXh7yq"], ["created_at", "2016-10-03 12:15:36.467555"], ["updated_at", "2016-10-03 12:15:36.467555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:15:36 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.6ms) Rendered devise/sessions/new.html.erb within layouts/application (35.7ms) Completed 200 OK in 286ms (Views: 273.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:15:36 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 12:15:36.786158"], ["current_sign_in_at", "2016-10-03 12:15:36.786158"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 12:15:36.786885"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 19ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-03 08:15:36 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 08:15:36 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (9.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (13.1ms) Completed 200 OK in 45ms (Views: 26.6ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 08:15:36 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 12:15:36.914204"], ["updated_at", "2016-10-03 12:15:36.914204"]] SQL (0.6ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 12:15:36.914204"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 520ms (ActiveRecord: 3.5ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-03 08:15:37 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (10.1ms) Completed 200 OK in 21ms (Views: 15.0ms | ActiveRecord: 0.5ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$sw2h.q5RhG1KJYWsMTFKs.OLVdIDWxrkaU0tq0iVIV2G4fWNjX9jS"], ["created_at", "2016-10-03 12:15:37.471675"], ["updated_at", "2016-10-03 12:15:37.471675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:15:37 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.5ms) Rendered devise/sessions/new.html.erb within layouts/application (3.5ms) Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:15:37 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 12:15:37.491887"], ["current_sign_in_at", "2016-10-03 12:15:37.491887"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 12:15:37.492821"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-03 08:15:37 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.1ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 08:15:37 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (5.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (6.4ms) Completed 200 OK in 12ms (Views: 9.6ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 08:15:37 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (7.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (8.3ms) Completed 200 OK in 17ms (Views: 10.7ms | ActiveRecord: 0.8ms)  (0.3ms) ROLLBACK User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$YTateTwNhPXXMzcDAmTFpePEwjXy4CwdAueE/qAoSmHDItwpQH8fq"], ["created_at", "2016-10-03 12:15:37.631259"], ["updated_at", "2016-10-03 12:15:37.631259"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:15:40 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.6ms) Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-03 08:15:40 -0400 Started GET "/assets/application-ae2f3e9153ab8790e8aa4db3ee24569c31c04e9721cf338869bc8e4f22fac81c.js" for 127.0.0.1 at 2016-10-03 08:15:40 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:15:41 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 12:15:41.319409"], ["current_sign_in_at", "2016-10-03 12:15:41.319409"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 12:15:41.320324"], ["id", 3]]  (5.8ms) COMMIT Redirected to http://127.0.0.1:52282/ Completed 302 Found in 16ms (ActiveRecord: 7.0ms) Started GET "/" for 127.0.0.1 at 2016-10-03 08:15:41 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.1ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 12:15:41.483964"], ["updated_at", "2016-10-03 12:15:41.483964"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 12:15:41.483964"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 08:15:41 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (8.7ms) Completed 200 OK in 42ms (Views: 19.5ms | ActiveRecord: 3.8ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-03 08:15:41 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (7.3ms) Completed 200 OK in 27ms (Views: 11.2ms | ActiveRecord: 3.8ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 08:15:44 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "stripe_token"=>"test_tok_1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.4ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 SQL (0.2ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-03 12:15:44.360909"], ["id", 3]]  (6.2ms) COMMIT  (0.1ms) BEGIN Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (3.2ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 2], ["customer_id", 3], ["stripe_id", "test_su_4"], ["created_at", "2016-10-03 12:15:44.374063"], ["updated_at", "2016-10-03 12:15:44.374063"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-03 12:15:44.374063"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (5.2ms) COMMIT Tang::Card Load (0.5ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]]  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 3], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 9], ["exp_year", 2018], ["fingerprint", "hrLgWzEscxDirlpO"], ["funding", "credit"], ["last4", "4242"], ["name", "Johnny App"], ["created_at", "2016-10-03 12:15:44.407741"], ["updated_at", "2016-10-03 12:15:44.407741"]]  (0.2ms) COMMIT Redirected to http://127.0.0.1:52282/tang/account/subscription Completed 302 Found in 64ms (ActiveRecord: 20.4ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 08:15:44 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > 0) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.2ms) Completed 200 OK in 8ms (Views: 3.3ms | ActiveRecord: 1.7ms)  (2.0ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.3ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (63.4ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$TZF08wbV7tkdFh7y9vxMQea9zEyOnUeUwUC.lhVmacPInDcXI5mbi"], ["created_at", "2016-10-03 12:15:48.941545"], ["updated_at", "2016-10-03 12:15:48.941545"]]  (0.2ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:15:48 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.7ms) Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:15:49 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 12:15:49.516633"], ["current_sign_in_at", "2016-10-03 12:15:49.516633"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 12:15:49.517403"], ["id", 1]]  (6.1ms) COMMIT Redirected to http://127.0.0.1:52282/ Completed 302 Found in 14ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2016-10-03 08:15:49 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (5.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 12:15:49.654607"], ["updated_at", "2016-10-03 12:15:49.654607"]] SQL (0.6ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 12:15:49.654607"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 08:15:49 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (3.2ms) Completed 200 OK in 12ms (Views: 6.7ms | ActiveRecord: 1.5ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-03 08:15:49 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.4ms) Completed 200 OK in 8ms (Views: 5.0ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 08:15:51 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"test_tok_1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.2ms) Completed 200 OK in 8ms (Views: 3.0ms | ActiveRecord: 0.8ms)  (0.5ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (42.6ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.5ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.0ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (22.5ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (23.7ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (3.9ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$X9aydtUDmvYVWy.TpIh/F.YbeZH83dDY7KQO3O8/rIYtC6qOXXpa6"], ["created_at", "2016-10-03 12:26:52.910446"], ["updated_at", "2016-10-03 12:26:52.910446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:26:52 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.0ms) Rendered devise/sessions/new.html.erb within layouts/application (30.5ms) Completed 200 OK in 279ms (Views: 266.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:26:53 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 12:26:53.228551"], ["current_sign_in_at", "2016-10-03 12:26:53.228551"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 12:26:53.229284"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-03 08:26:53 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 08:26:53 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (8.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (11.9ms) Completed 200 OK in 43ms (Views: 23.7ms | ActiveRecord: 1.6ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 08:26:53 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 12:26:53.354258"], ["updated_at", "2016-10-03 12:26:53.354258"]] SQL (0.6ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 12:26:53.354258"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 450ms (ActiveRecord: 3.6ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-03 08:26:53 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (9.4ms) Completed 200 OK in 18ms (Views: 13.8ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$07KVCzHmZrg98yuUWPy0ceyt1AVUdidsztX/LCkDuid3Xd3tLPJ86"], ["created_at", "2016-10-03 12:26:53.836905"], ["updated_at", "2016-10-03 12:26:53.836905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:26:53 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.8ms) Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:26:53 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 12:26:53.856254"], ["current_sign_in_at", "2016-10-03 12:26:53.856254"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 12:26:53.857318"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-03 08:26:53 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 08:26:53 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (5.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (6.3ms) Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.4ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 08:26:53 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (6.8ms) Completed 200 OK in 17ms (Views: 10.0ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$2UAWgRmi0NcwFgJP.IGfjef1bpkeT2IM1QUhrDyHEKgpPi9wGErIu"], ["created_at", "2016-10-03 12:26:53.991210"], ["updated_at", "2016-10-03 12:26:53.991210"]]  (0.5ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:26:56 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.6ms) Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-03 08:26:56 -0400 Started GET "/assets/application-ae2f3e9153ab8790e8aa4db3ee24569c31c04e9721cf338869bc8e4f22fac81c.js" for 127.0.0.1 at 2016-10-03 08:26:56 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:26:57 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 12:26:57.438543"], ["current_sign_in_at", "2016-10-03 12:26:57.438543"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 12:26:57.439559"], ["id", 3]]  (5.8ms) COMMIT Redirected to http://127.0.0.1:53862/ Completed 302 Found in 16ms (ActiveRecord: 7.0ms) Started GET "/" for 127.0.0.1 at 2016-10-03 08:26:57 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.2ms)  (0.1ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 12:26:57.605373"], ["updated_at", "2016-10-03 12:26:57.605373"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 12:26:57.605373"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.5ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 08:26:57 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (10.0ms) Completed 200 OK in 41ms (Views: 19.0ms | ActiveRecord: 3.5ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-03 08:26:57 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (2.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (5.5ms) Completed 200 OK in 25ms (Views: 9.3ms | ActiveRecord: 1.9ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 08:27:00 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "stripe_token"=>"test_tok_1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 SQL (0.2ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-03 12:27:00.148325"], ["id", 3]]  (0.3ms) COMMIT  (0.1ms) BEGIN Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 2], ["customer_id", 3], ["stripe_id", "test_su_4"], ["created_at", "2016-10-03 12:27:00.155217"], ["updated_at", "2016-10-03 12:27:00.155217"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-03 12:27:00.155217"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.3ms) COMMIT Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]]  (0.2ms) BEGIN SQL (0.6ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 3], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 9], ["exp_year", 2018], ["fingerprint", "hrLgWzEscxDirlpO"], ["funding", "credit"], ["last4", "4242"], ["name", "Johnny App"], ["created_at", "2016-10-03 12:27:00.184233"], ["updated_at", "2016-10-03 12:27:00.184233"]]  (0.3ms) COMMIT Redirected to http://127.0.0.1:53862/tang/account/subscription Completed 302 Found in 50ms (ActiveRecord: 6.2ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 08:27:00 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > 0) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (3.0ms) Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 1.9ms)  (2.0ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.2ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (41.9ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (2.0ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$.OiChjIqfsVGNrIG5zK8jeLGRLW.hYJZO6RcY.9iL2QWhfeRwjF7S"], ["created_at", "2016-10-03 12:27:04.934910"], ["updated_at", "2016-10-03 12:27:04.934910"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:27:04 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.8ms) Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:27:05 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 12:27:05.512912"], ["current_sign_in_at", "2016-10-03 12:27:05.512912"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 12:27:05.514058"], ["id", 1]]  (5.6ms) COMMIT Redirected to http://127.0.0.1:53862/ Completed 302 Found in 15ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2016-10-03 08:27:05 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.1ms) User Load (1.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 1.8ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (6.3ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 12:27:05.720770"], ["updated_at", "2016-10-03 12:27:05.720770"]] SQL (5.4ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 12:27:05.720770"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 08:27:05 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.8ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.7ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.6ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (3.6ms) Completed 200 OK in 16ms (Views: 4.6ms | ActiveRecord: 2.4ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-03 08:27:05 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.4ms) Completed 200 OK in 6ms (Views: 2.9ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 08:27:07 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"test_tok_1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.4ms) Completed 200 OK in 9ms (Views: 3.5ms | ActiveRecord: 0.9ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (38.3ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.5ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.0ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (16.7ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL  (0.7ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (18.4ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.7ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (26.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (23.9ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$DV3wf5EukrdRfvxRwVq/yuZFV4bGBzH0eZE6Z8h2NT95KzQFTnFgq"], ["created_at", "2016-10-03 12:33:16.039419"], ["updated_at", "2016-10-03 12:33:16.039419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:33:16 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (35.3ms) Completed 200 OK in 301ms (Views: 288.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:33:16 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 12:33:16.400684"], ["current_sign_in_at", "2016-10-03 12:33:16.400684"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 12:33:16.401459"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 20ms (ActiveRecord: 1.0ms) Started GET "/" for 127.0.0.1 at 2016-10-03 08:33:16 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 9ms (Views: 7.9ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 08:33:16 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (8.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (11.8ms) Completed 200 OK in 47ms (Views: 26.1ms | ActiveRecord: 3.0ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 08:33:16 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.9ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 12:33:16.554221"], ["updated_at", "2016-10-03 12:33:16.554221"]] SQL (18.4ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 12:33:16.554221"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 457ms (ActiveRecord: 21.9ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-03 08:33:17 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (10.7ms) Completed 200 OK in 22ms (Views: 15.9ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$swMs7.JLs08V5mej46fTa.dTrNlTXORRMtoVgRCqLQduOhDFDyzLm"], ["created_at", "2016-10-03 12:33:17.041745"], ["updated_at", "2016-10-03 12:33:17.041745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:33:17 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.5ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:33:17 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 12:33:17.058103"], ["current_sign_in_at", "2016-10-03 12:33:17.058103"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 12:33:17.059087"], ["id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 15ms (ActiveRecord: 1.1ms) Started GET "/" for 127.0.0.1 at 2016-10-03 08:33:17 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 08:33:17 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (6.0ms) Completed 200 OK in 11ms (Views: 8.2ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 08:33:17 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (7.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (7.9ms) Completed 200 OK in 22ms (Views: 10.4ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (1.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$mSh3zJnbMHDX7ZL1T9B3iON1m2qenbGNVt9dEHIZD9Gwvb9TBJnC."], ["created_at", "2016-10-03 12:33:17.209858"], ["updated_at", "2016-10-03 12:33:17.209858"]]  (0.4ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:33:20 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.6ms) Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-03 08:33:20 -0400 Started GET "/assets/application-ae2f3e9153ab8790e8aa4db3ee24569c31c04e9721cf338869bc8e4f22fac81c.js" for 127.0.0.1 at 2016-10-03 08:33:20 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:33:21 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 12:33:21.374368"], ["current_sign_in_at", "2016-10-03 12:33:21.374368"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 12:33:21.375316"], ["id", 3]]  (5.9ms) COMMIT Redirected to http://127.0.0.1:54943/ Completed 302 Found in 16ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2016-10-03 08:33:21 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.1ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 12:33:21.533898"], ["updated_at", "2016-10-03 12:33:21.533898"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 12:33:21.533898"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 08:33:21 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (18.1ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.6ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (7.7ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (17.8ms) Completed 200 OK in 70ms (Views: 21.6ms | ActiveRecord: 29.2ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-03 08:33:21 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (7.0ms) Completed 200 OK in 26ms (Views: 11.0ms | ActiveRecord: 3.6ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 08:33:24 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "stripe_token"=>"test_tok_1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 SQL (0.2ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-03 12:33:24.478542"], ["id", 3]]  (5.8ms) COMMIT  (0.1ms) BEGIN Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (4.6ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 2], ["customer_id", 3], ["stripe_id", "test_su_4"], ["created_at", "2016-10-03 12:33:24.491349"], ["updated_at", "2016-10-03 12:33:24.491349"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-03 12:33:24.491349"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.3ms) COMMIT Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]]  (0.2ms) BEGIN SQL (0.7ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 3], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 9], ["exp_year", 2018], ["fingerprint", "hrLgWzEscxDirlpO"], ["funding", "credit"], ["last4", "4242"], ["name", "Johnny App"], ["created_at", "2016-10-03 12:33:24.526072"], ["updated_at", "2016-10-03 12:33:24.526072"]]  (0.2ms) COMMIT Redirected to http://127.0.0.1:54943/tang/account/subscription Completed 302 Found in 61ms (ActiveRecord: 15.7ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 08:33:24 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > 0) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.5ms) Completed 200 OK in 9ms (Views: 3.6ms | ActiveRecord: 1.9ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.3ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (0.9ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (18.8ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$VpbsM1EuG0nJEzoiSMFCX.F.Fw283UFf4PrDGRdvJEVpuCB84y/JW"], ["created_at", "2016-10-03 12:33:29.064445"], ["updated_at", "2016-10-03 12:33:29.064445"]]  (0.2ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:33:29 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.4ms) Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:33:29 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 12:33:29.484973"], ["current_sign_in_at", "2016-10-03 12:33:29.484973"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 12:33:29.485840"], ["id", 1]]  (6.2ms) COMMIT Redirected to http://127.0.0.1:54943/ Completed 302 Found in 14ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2016-10-03 08:33:29 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (6.1ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 12:33:29.620737"], ["updated_at", "2016-10-03 12:33:29.620737"]] SQL (0.7ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 12:33:29.620737"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 08:33:29 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.4ms) Completed 200 OK in 7ms (Views: 3.6ms | ActiveRecord: 1.2ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-03 08:33:29 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.1ms) Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 08:33:31 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"test_tok_1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.3ms) Completed 200 OK in 8ms (Views: 3.0ms | ActiveRecord: 0.7ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (38.9ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 22ms (Views: 16.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 21ms (Views: 15.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 19ms (Views: 13.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 18ms (Views: 13.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 18ms (Views: 13.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 19ms (Views: 14.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 21ms (Views: 15.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 18ms (Views: 13.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (1.6ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (8.1ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (4.4ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (23.3ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (17.4ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.5ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.1ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.9ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (18.7ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (18.9ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (23.0ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$xaCyptXwkpY/v.ulTzPf1eyF.NY1fFa2Q1ZXh1XfAwKcYftcWieZK"], ["created_at", "2016-10-03 12:55:00.369632"], ["updated_at", "2016-10-03 12:55:00.369632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$RuSUHodYgm.gne6sm8qAtu0sepR4f938rJLQ9.OLJhXrG6hTAFrtG"], ["created_at", "2016-10-03 12:55:00.400516"], ["updated_at", "2016-10-03 12:55:00.400516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$PdxAc9BT4jpG.Pf8JMFa.uJshyvvBF.mQt6ci4Vqr.LBrrN39H6Qe"], ["created_at", "2016-10-03 12:55:00.406808"], ["updated_at", "2016-10-03 12:55:00.406808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 46ms (Views: 26.0ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$/9HqsyZ7TMRI8gv0Blx4X.0SI5szap.vXMDmZbzEEbo9yhO2Ap6X6"], ["created_at", "2016-10-03 12:55:00.465021"], ["updated_at", "2016-10-03 12:55:00.465021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$2ZOVscyeRWY142iWr28vLe04Sx/j4b4.4vALpZhWWppYzZ4Ogh5um"], ["created_at", "2016-10-03 12:55:00.470541"], ["updated_at", "2016-10-03 12:55:00.470541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$.vyz4jiizRewRnlsdoR/eu1bptSN7QVrcAqGuNHp82j24PwDDDriy"], ["created_at", "2016-10-03 12:55:00.480491"], ["updated_at", "2016-10-03 12:55:00.480491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$hb.qnTPsekn7CcZtUl64jeGm22loE4Ob5k9cpdTtBFecFZP18nFbG"], ["created_at", "2016-10-03 12:55:00.486087"], ["updated_at", "2016-10-03 12:55:00.486087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$aow8Y.j7pLwTcBYasnVIROY3QxeI9AKlgE7DBXhvAM6NgAJDSesum"], ["created_at", "2016-10-03 12:55:00.491809"], ["updated_at", "2016-10-03 12:55:00.491809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$UKSSw8QzN.UVrZFPC9nHNexKaenUQoIEy0DauTUNfetAFZcRLIo2q"], ["created_at", "2016-10-03 12:55:00.497397"], ["updated_at", "2016-10-03 12:55:00.497397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$kgFNhrbWbsv8KxLHDw.dLOA9hIFuCo4wCw0d0U8bKYc6gg4UlCy1i"], ["created_at", "2016-10-03 12:55:00.502884"], ["updated_at", "2016-10-03 12:55:00.502884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$pihiNzx3n76a0nC/Ly1gY.yj21luQ5o3SJYj1h73tGq0E3c04zbim"], ["created_at", "2016-10-03 12:55:00.508007"], ["updated_at", "2016-10-03 12:55:00.508007"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$p0e1FhRjkVmSA1aDiprpQeTqxG5JkEiQpp7Rau9ErKndXrJCzpY4."], ["created_at", "2016-10-03 12:55:00.512852"], ["updated_at", "2016-10-03 12:55:00.512852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$4NvYOV/mBX4FdezNfGZHT.JwQTy1JQeHvn/l0uacUtESEuhEuAzXm"], ["created_at", "2016-10-03 12:55:00.517677"], ["updated_at", "2016-10-03 12:55:00.517677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$Ny8XKbNm6xx.TiBgqCKiG.bhGy1HoAk1S.siUO1lHW5xEMtEQvOva"], ["created_at", "2016-10-03 12:55:00.522319"], ["updated_at", "2016-10-03 12:55:00.522319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$mB3XYh/2p4Uog8zoGm.BBe1DY85WcV8bi82XSSlgn/JpeQMx2bFL."], ["created_at", "2016-10-03 12:55:00.527161"], ["updated_at", "2016-10-03 12:55:00.527161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$UUx22D9FPFhejrjf/KyrQuRo3oyqKPNN.oRFRPPZ1vQbip9NC.oC6"], ["created_at", "2016-10-03 12:55:00.531528"], ["updated_at", "2016-10-03 12:55:00.531528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 SQL (1.9ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$hnNrPCx2x5zG32P7tbuXsO.lwjTkXnT.AZpVuOToAoj4lTNhid9vm"], ["created_at", "2016-10-03 12:55:00.536478"], ["updated_at", "2016-10-03 12:55:00.536478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$kpAYfvYRHjYlM9K2xNDxoeF2j83j38lFM2IkvzUOh7ey4UmHLbZ66"], ["created_at", "2016-10-03 12:55:00.543858"], ["updated_at", "2016-10-03 12:55:00.543858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$zvzPeJHHLBfjPh0Qay//X.7h2tdzNCniT38XdDjpKIIlAT1P34WCy"], ["created_at", "2016-10-03 12:55:00.549582"], ["updated_at", "2016-10-03 12:55:00.549582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$Qi38ndy2kmx5QWckV8mhAOmclX0tqeCIcyeS8sv6BnuGhuQjm27a6"], ["created_at", "2016-10-03 12:55:00.554512"], ["updated_at", "2016-10-03 12:55:00.554512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$dGklQ4aVKdJt9iwQKcApF.XxPJ/6.vxm0JdUWOFXB9ArDWAp7mObq"], ["created_at", "2016-10-03 12:55:00.559289"], ["updated_at", "2016-10-03 12:55:00.559289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$Hcj.JI6wHzsqJ8ZyQ7pT9eAWYSSh1kWBPsMu1IzQat02lSAjMLCbK"], ["created_at", "2016-10-03 12:55:00.564246"], ["updated_at", "2016-10-03 12:55:00.564246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$SIlo/e7u7l2wQd9dT69uOO5R4UZuosn2uoeV5uZ46UHwJxg2iyzZ2"], ["created_at", "2016-10-03 12:55:00.569144"], ["updated_at", "2016-10-03 12:55:00.569144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$LVdIbq4Mgy1PeRZ0IxkNFeGe6DgXaBcBJ1ifdiA78Qehxw5DIDUES"], ["created_at", "2016-10-03 12:55:00.573774"], ["updated_at", "2016-10-03 12:55:00.573774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$elEyU9ySknsRcvj2OycR1ueDPhnWygAji3/4GLUtdykO87emR/3ka"], ["created_at", "2016-10-03 12:55:00.580274"], ["updated_at", "2016-10-03 12:55:00.580274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$YENzsrGZM645F41sThJ9gOSqAb.lUHY5NZEkYoQDFDzOt8SuY3Mb6"], ["created_at", "2016-10-03 12:55:00.585857"], ["updated_at", "2016-10-03 12:55:00.585857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$ePVB.PA/qVnwblJYeHtWtOFjdlKeQ88dZW3ZX9O6aQUDtDMCtu3Qq"], ["created_at", "2016-10-03 12:55:00.591491"], ["updated_at", "2016-10-03 12:55:00.591491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b0e389d2-f2f7-4aea-b27b-f303ef04d338' LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b0e389d2-f2f7-4aea-b27b-f303ef04d338' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b0e389d2-f2f7-4aea-b27b-f303ef04d338"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 12:55:00.604129"], ["updated_at", "2016-10-03 12:55:00.604129"]] SQL (17.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-03 12:55:00.604129"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 13ms (Views: 10.9ms | ActiveRecord: 0.3ms) Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans"  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$Ay9SHJR35mdj9WLvgddfBe7F/QZ.nOpHLHxC5rPV5Je6JO.pXE4se"], ["created_at", "2016-10-03 12:55:01.117274"], ["updated_at", "2016-10-03 12:55:01.117274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b0e389d2-f2f7-4aea-b27b-f303ef04d338' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b0e389d2-f2f7-4aea-b27b-f303ef04d338' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b0e389d2-f2f7-4aea-b27b-f303ef04d338"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 12:55:01.121421"], ["updated_at", "2016-10-03 12:55:01.121421"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-03 12:55:01.121421"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"2"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 28]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (0.2ms) Completed 200 OK in 10ms (Views: 5.4ms | ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$jp3mMJco4qtbj671Yi5UiOAf6Ue.55fE8DL7c7HxIuu6b7ZNLVmo2"], ["created_at", "2016-10-03 12:55:01.547448"], ["updated_at", "2016-10-03 12:55:01.547448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$bJUVW/CvgUt7dZdwlLFoneTFl70C28pWCHo4QjEfLLCGhechsb1gu"], ["created_at", "2016-10-03 12:55:01.564675"], ["updated_at", "2016-10-03 12:55:01.564675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b0e389d2-f2f7-4aea-b27b-f303ef04d338' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b0e389d2-f2f7-4aea-b27b-f303ef04d338' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b0e389d2-f2f7-4aea-b27b-f303ef04d338"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 12:55:01.568185"], ["updated_at", "2016-10-03 12:55:01.568185"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-03 12:55:01.568185"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#edit as HTML Parameters: {"id"=>"3"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 30]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.4ms) Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$quS5vYvfrFdIXEZy2OLZc.9TNfBwuiJYwvQRXWuW4b.L6AVwLp6Je"], ["created_at", "2016-10-03 12:55:01.958039"], ["updated_at", "2016-10-03 12:55:01.958039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"b0e389d2-f2f7-4aea-b27b-f303ef04d338", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b0e389d2-f2f7-4aea-b27b-f303ef04d338' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b0e389d2-f2f7-4aea-b27b-f303ef04d338' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b0e389d2-f2f7-4aea-b27b-f303ef04d338"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 12:55:01.967989"], ["updated_at", "2016-10-03 12:55:01.967989"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "31"], ["created_at", "2016-10-03 12:55:01.967989"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/4 Completed 302 Found in 373ms (ActiveRecord: 1.3ms)  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$tpr6HimUyO1mT4y6ZB0dLeZFqRceknA7otKZeVR7Tp1MphzO43/sC"], ["created_at", "2016-10-03 12:55:02.343875"], ["updated_at", "2016-10-03 12:55:02.343875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"b0e389d2-f2f7-4aea-b27b-f303ef04d338", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b0e389d2-f2f7-4aea-b27b-f303ef04d338' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b0e389d2-f2f7-4aea-b27b-f303ef04d338' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b0e389d2-f2f7-4aea-b27b-f303ef04d338"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 12:55:02.352236"], ["updated_at", "2016-10-03 12:55:02.352236"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "32"], ["created_at", "2016-10-03 12:55:02.352236"], ["item_id", 5], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/5 Completed 302 Found in 397ms (ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$rrX6KHOVSoMw6seUP5ASCuiunQzmGqDtEZQeTSRn0y1G45JvPdboC"], ["created_at", "2016-10-03 12:55:02.753472"], ["updated_at", "2016-10-03 12:55:02.753472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"b0e389d2-f2f7-4aea-b27b-f303ef04d338", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b0e389d2-f2f7-4aea-b27b-f303ef04d338' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b0e389d2-f2f7-4aea-b27b-f303ef04d338' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b0e389d2-f2f7-4aea-b27b-f303ef04d338"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 12:55:02.762713"], ["updated_at", "2016-10-03 12:55:02.762713"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "33"], ["created_at", "2016-10-03 12:55:02.762713"], ["item_id", 6], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/6 Completed 302 Found in 361ms (ActiveRecord: 1.2ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$G1kkd7lS4ZYYvEeHvSbgzerKbNzjAgEsex6yuLu36AQE.1QX6YXeC"], ["created_at", "2016-10-03 12:55:03.128174"], ["updated_at", "2016-10-03 12:55:03.128174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"b0e389d2-f2f7-4aea-b27b-f303ef04d338", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b0e389d2-f2f7-4aea-b27b-f303ef04d338' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.1ms) Completed 200 OK in 17ms (Views: 0.5ms | ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$OHqyzrJI4KzEi/AUrGLN4OBCoBLREkBNiudOzoRlNH61mbyPEwt42"], ["created_at", "2016-10-03 12:55:03.155674"], ["updated_at", "2016-10-03 12:55:03.155674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"b0e389d2-f2f7-4aea-b27b-f303ef04d338", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b0e389d2-f2f7-4aea-b27b-f303ef04d338' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.0ms) Completed 200 OK in 5ms (Views: 0.7ms | ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$p1p/QtFdk4ANxRmQOmv1L.rf8prl5XJodKUybEHLwZmDVwSUcsRF6"], ["created_at", "2016-10-03 12:55:03.170367"], ["updated_at", "2016-10-03 12:55:03.170367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b0e389d2-f2f7-4aea-b27b-f303ef04d338' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b0e389d2-f2f7-4aea-b27b-f303ef04d338' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b0e389d2-f2f7-4aea-b27b-f303ef04d338"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 12:55:03.173801"], ["updated_at", "2016-10-03 12:55:03.173801"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-03 12:55:03.173801"], ["item_id", 7], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$MKrtUi.mSpMphhSuc4ACZO4./U/GE6f4fWpe2Vx7ibs8jXfTHMhRy"], ["created_at", "2016-10-03 12:55:03.543324"], ["updated_at", "2016-10-03 12:55:03.543324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b0e389d2-f2f7-4aea-b27b-f303ef04d338' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b0e389d2-f2f7-4aea-b27b-f303ef04d338' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b0e389d2-f2f7-4aea-b27b-f303ef04d338"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 12:55:03.546724"], ["updated_at", "2016-10-03 12:55:03.546724"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-03 12:55:03.546724"], ["item_id", 8], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"b0e389d2-f2f7-4aea-b27b-f303ef04d338", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"8"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 37]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 8]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'b0e389d2-f2f7-4aea-b27b-f303ef04d338' AND "tang_plans"."id" != 8) LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'b0e389d2-f2f7-4aea-b27b-f303ef04d338' AND "tang_plans"."id" != 8) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/8 Completed 302 Found in 714ms (ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$CpK6eHTNft4bIb7x8JYa.OXIkpXLFxut4QTcD4N1hvp4lZ8ueIGNi"], ["created_at", "2016-10-03 12:55:04.625340"], ["updated_at", "2016-10-03 12:55:04.625340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b0e389d2-f2f7-4aea-b27b-f303ef04d338' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b0e389d2-f2f7-4aea-b27b-f303ef04d338' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b0e389d2-f2f7-4aea-b27b-f303ef04d338"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 12:55:04.629289"], ["updated_at", "2016-10-03 12:55:04.629289"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "37"], ["created_at", "2016-10-03 12:55:04.629289"], ["item_id", 9], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"b0e389d2-f2f7-4aea-b27b-f303ef04d338", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"9"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 38]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 9]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'b0e389d2-f2f7-4aea-b27b-f303ef04d338' AND "tang_plans"."id" != 9) LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'b0e389d2-f2f7-4aea-b27b-f303ef04d338' AND "tang_plans"."id" != 9) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/9 Completed 302 Found in 740ms (ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$zTvqDbMX.co3ENS.9OqiSe0HL/CXMM0iIz2uKUnkZcsNGvKTID0Vi"], ["created_at", "2016-10-03 12:55:05.811144"], ["updated_at", "2016-10-03 12:55:05.811144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b0e389d2-f2f7-4aea-b27b-f303ef04d338' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b0e389d2-f2f7-4aea-b27b-f303ef04d338' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b0e389d2-f2f7-4aea-b27b-f303ef04d338"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 12:55:05.814836"], ["updated_at", "2016-10-03 12:55:05.814836"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "38"], ["created_at", "2016-10-03 12:55:05.814836"], ["item_id", 10], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"b0e389d2-f2f7-4aea-b27b-f303ef04d338", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"10"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 39]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 10]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'b0e389d2-f2f7-4aea-b27b-f303ef04d338' AND "tang_plans"."id" != 10) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$VGcFzx4KF5.yS8wedGn7Ke3kfo3AFHsOxdZI/Z4B/rQvN6UyD4Nl."], ["created_at", "2016-10-03 12:55:06.221418"], ["updated_at", "2016-10-03 12:55:06.221418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b0e389d2-f2f7-4aea-b27b-f303ef04d338' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b0e389d2-f2f7-4aea-b27b-f303ef04d338' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b0e389d2-f2f7-4aea-b27b-f303ef04d338"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 12:55:06.224826"], ["updated_at", "2016-10-03 12:55:06.224826"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "39"], ["created_at", "2016-10-03 12:55:06.224826"], ["item_id", 11], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"b0e389d2-f2f7-4aea-b27b-f303ef04d338", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"11"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 40]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 11]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'b0e389d2-f2f7-4aea-b27b-f303ef04d338' AND "tang_plans"."id" != 11) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$IBBd1k5FUYdmE54XmS7Gy.7MDCk8CICU/qEd9ulP5T3sbzLFfMPCO"], ["created_at", "2016-10-03 12:55:06.687189"], ["updated_at", "2016-10-03 12:55:06.687189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b0e389d2-f2f7-4aea-b27b-f303ef04d338' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b0e389d2-f2f7-4aea-b27b-f303ef04d338' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b0e389d2-f2f7-4aea-b27b-f303ef04d338"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 12:55:06.690373"], ["updated_at", "2016-10-03 12:55:06.690373"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "40"], ["created_at", "2016-10-03 12:55:06.690373"], ["item_id", 12], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"12"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 41]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 12]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 12], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 12\nstripe_id: b0e389d2-f2f7-4aea-b27b-f303ef04d338\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: 0\nhighlight: false\ncreated_at: 2016-10-03 12:55:06.690373000 Z\nupdated_at: 2016-10-03 12:55:06.690373000 Z\n"], ["whodunnit", "41"], ["created_at", "2016-10-03 12:55:07.065172"]] SQL (0.2ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 764ms (ActiveRecord: 0.9ms)  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$2z5IKzZiZD8SLF.i/XoLVeHxM8BwYRIK1RvpYjVeWAUaNe.BfMT62"], ["created_at", "2016-10-03 12:55:07.830846"], ["updated_at", "2016-10-03 12:55:07.830846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b0e389d2-f2f7-4aea-b27b-f303ef04d338' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b0e389d2-f2f7-4aea-b27b-f303ef04d338' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b0e389d2-f2f7-4aea-b27b-f303ef04d338"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 12:55:07.846510"], ["updated_at", "2016-10-03 12:55:07.846510"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "41"], ["created_at", "2016-10-03 12:55:07.846510"], ["item_id", 13], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"13"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 42]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 13]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 13], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 13\nstripe_id: b0e389d2-f2f7-4aea-b27b-f303ef04d338\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: 0\nhighlight: false\ncreated_at: 2016-10-03 12:55:07.846510000 Z\nupdated_at: 2016-10-03 12:55:07.846510000 Z\n"], ["whodunnit", "42"], ["created_at", "2016-10-03 12:55:08.252235"]] SQL (0.3ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 749ms (ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$7Oq2fHwYHlfGLT6TblTttOYNBodrP2MwWDNSWZOl4y/s546HWgv3y"], ["created_at", "2016-10-03 12:55:09.004416"], ["updated_at", "2016-10-03 12:55:09.004416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$kK7ecsWYR8Es6yhx1h0VnuaL60F8Sk/OFWt68oHaakyHHo/rhW3l6"], ["created_at", "2016-10-03 12:55:09.009744"], ["updated_at", "2016-10-03 12:55:09.009744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$zyzDwZAV7gx2njgZe5PXCOP6xCupMKfQLKBx5oHZQtGBzM/tsyZ.O"], ["created_at", "2016-10-03 12:55:09.014308"], ["updated_at", "2016-10-03 12:55:09.014308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$77WA8YxYZzgdDPQ9PySKDOjMRyg6cPFIFKFOPB3Pojb/3ZH.LtHJm"], ["created_at", "2016-10-03 12:55:09.018673"], ["updated_at", "2016-10-03 12:55:09.018673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$ygc0ROdapL9HmRVVl9xFEO/jr2So1PGsKRqIOpa/jQhOyUK.qqt/i"], ["created_at", "2016-10-03 12:55:09.023182"], ["updated_at", "2016-10-03 12:55:09.023182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$E6bq2Mt3/oY7FA95IY9LHeCifknzK/ADVjiwMcROxDGqoNoT.U5Ma"], ["created_at", "2016-10-03 12:55:09.028530"], ["updated_at", "2016-10-03 12:55:09.028530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$M9gGUP6zPf7Q39rzsADnLeqebMMr3lMxl2jANgGSFlc7o9ITC.HGC"], ["created_at", "2016-10-03 12:55:09.034764"], ["updated_at", "2016-10-03 12:55:09.034764"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$yRGpyr0sy8XETdwSCOqpm.ZYrPkxruwPs7H.7zaWJTmumFGqbR10q"], ["created_at", "2016-10-03 12:55:09.041748"], ["updated_at", "2016-10-03 12:55:09.041748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$dfAPWUOcjcpnAhv0iXQbqe2RtdiKlfu/q9QCkCplPoqkNpOKN9F/i"], ["created_at", "2016-10-03 12:55:09.047629"], ["updated_at", "2016-10-03 12:55:09.047629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$lHY9eQ87ep7aoqbXsEq/6.YBO6urSnDAMQCEOH8xAizS6jnfzeZqm"], ["created_at", "2016-10-03 12:55:09.053409"], ["updated_at", "2016-10-03 12:55:09.053409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 12ms (Views: 7.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$i3izDfybJQ5bkPTRNElco./AWD6Jdp.l/rfn/ms10.hAp.bbXuUie"], ["created_at", "2016-10-03 12:55:12.037756"], ["updated_at", "2016-10-03 12:55:12.037756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:55:12 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (35.9ms) Completed 200 OK in 296ms (Views: 282.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:55:12 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 12:55:12.367744"], ["current_sign_in_at", "2016-10-03 12:55:12.367744"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 12:55:12.368488"], ["id", 53]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 19ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-03 08:55:12 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.5ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 08:55:12 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (9.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (12.7ms) Completed 200 OK in 43ms (Views: 24.2ms | ActiveRecord: 1.4ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 08:55:12 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 12:55:12.504709"], ["updated_at", "2016-10-03 12:55:12.504709"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "53"], ["created_at", "2016-10-03 12:55:12.504709"], ["item_id", 14], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/14 Completed 302 Found in 442ms (ActiveRecord: 2.9ms) Started GET "/tang/admin/plans/14" for 127.0.0.1 at 2016-10-03 08:55:12 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"14"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 14]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (21.5ms) Completed 200 OK in 33ms (Views: 26.3ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$p0s44KqJs.PupjfqDCirQOhX2FOibSgLAFkS7eU2HoBrwtB4mRbN."], ["created_at", "2016-10-03 12:55:13.004262"], ["updated_at", "2016-10-03 12:55:13.004262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:55:13 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.7ms) Rendered devise/sessions/new.html.erb within layouts/application (2.8ms) Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:55:13 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 12:55:13.032537"], ["current_sign_in_at", "2016-10-03 12:55:13.032537"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 12:55:13.033232"], ["id", 54]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 12ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-03 08:55:13 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]] Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 08:55:13 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (7.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (7.5ms) Completed 200 OK in 13ms (Views: 10.5ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 08:55:13 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (7.4ms) Completed 200 OK in 17ms (Views: 11.0ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$Bl8Jl5jMpOaIBKNpop2giuSPJYfMe/TC3r8DLzYvXYZ72McaygJGG"], ["created_at", "2016-10-03 12:55:13.159863"], ["updated_at", "2016-10-03 12:55:13.159863"]]  (1.4ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:55:16 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.7ms) Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-03 08:55:16 -0400 Started GET "/assets/application-ae2f3e9153ab8790e8aa4db3ee24569c31c04e9721cf338869bc8e4f22fac81c.js" for 127.0.0.1 at 2016-10-03 08:55:16 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:55:17 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 12:55:17.237462"], ["current_sign_in_at", "2016-10-03 12:55:17.237462"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 12:55:17.238371"], ["id", 55]]  (5.8ms) COMMIT Redirected to http://127.0.0.1:57183/ Completed 302 Found in 16ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2016-10-03 08:55:17 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.2ms)  (0.1ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 12:55:17.391355"], ["updated_at", "2016-10-03 12:55:17.391355"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 12:55:17.391355"], ["item_id", 15], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 08:55:17 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (9.1ms) Completed 200 OK in 42ms (Views: 20.0ms | ActiveRecord: 3.6ms) Started GET "/tang/account/subscription/new?plan=15" for 127.0.0.1 at 2016-10-03 08:55:17 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"15"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (6.5ms) Completed 200 OK in 26ms (Views: 10.6ms | ActiveRecord: 3.7ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 08:55:20 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"15"}, "stripe_token"=>"test_tok_1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 55 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 55) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 55) LIMIT 1 SQL (0.2ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-03 12:55:20.285729"], ["id", 55]]  (6.1ms) COMMIT  (0.1ms) BEGIN Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 55 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (5.4ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 15], ["customer_id", 55], ["stripe_id", "test_su_4"], ["created_at", "2016-10-03 12:55:20.298692"], ["updated_at", "2016-10-03 12:55:20.298692"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "55"], ["created_at", "2016-10-03 12:55:20.298692"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (1.6ms) COMMIT Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]]  (0.2ms) BEGIN SQL (0.5ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 55], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 9], ["exp_year", 2018], ["fingerprint", "hrLgWzEscxDirlpO"], ["funding", "credit"], ["last4", "4242"], ["name", "Johnny App"], ["created_at", "2016-10-03 12:55:20.346306"], ["updated_at", "2016-10-03 12:55:20.346306"]]  (0.3ms) COMMIT Redirected to http://127.0.0.1:57183/tang/account/subscription Completed 302 Found in 75ms (ActiveRecord: 18.6ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 08:55:20 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Subscription Load (0.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > 0) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.9ms) Completed 200 OK in 10ms (Views: 4.7ms | ActiveRecord: 1.9ms)  (0.5ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (6.5ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.1ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (101.6ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$C2Ig/yML2c0gVQWb2Ma38uLdkXnGvyMBITg6S3iWfkYcn9KTCvhUS"], ["created_at", "2016-10-03 12:55:24.782778"], ["updated_at", "2016-10-03 12:55:24.782778"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:55:24 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 08:55:25 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 12:55:25.258316"], ["current_sign_in_at", "2016-10-03 12:55:25.258316"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 12:55:25.259071"], ["id", 1]]  (5.8ms) COMMIT Redirected to http://127.0.0.1:57183/ Completed 302 Found in 13ms (ActiveRecord: 6.7ms) Started GET "/" for 127.0.0.1 at 2016-10-03 08:55:25 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (6.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 12:55:25.393825"], ["updated_at", "2016-10-03 12:55:25.393825"]] SQL (0.8ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 12:55:25.393825"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 08:55:25 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.2ms) Completed 200 OK in 7ms (Views: 3.2ms | ActiveRecord: 1.2ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-03 08:55:25 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.2ms) Completed 200 OK in 6ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 08:55:27 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"test_tok_1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.2ms) Completed 200 OK in 8ms (Views: 3.1ms | ActiveRecord: 0.8ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (36.6ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$nrFra3thgi/lDHAS9G6LZucZs.4rpyoqb0Gby..tBLHjtgWyXbGd2"], ["created_at", "2016-10-03 13:00:33.457899"], ["updated_at", "2016-10-03 13:00:33.457899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$VSLI56UbvdvC9h.bwa0pq.v5Y7QZMFA0tBo6WrGKK0bby4fgkAZtK"], ["created_at", "2016-10-03 13:00:33.467239"], ["updated_at", "2016-10-03 13:00:33.467239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$tahKK8mxcT9Sbc6xr3Tvsu91xwMqJ44Ov8fN1z9bcSv.vC06Bu9zW"], ["created_at", "2016-10-03 13:00:33.474102"], ["updated_at", "2016-10-03 13:00:33.474102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 40ms (Views: 24.5ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$LKIOmyPWnJ2Le5I5HYnXtOExrQcwDEqlHXsID/NnNZ30e2CWj4MgS"], ["created_at", "2016-10-03 13:00:33.525910"], ["updated_at", "2016-10-03 13:00:33.525910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$uZ/qhG0eGI7L.uEHkAlMEeoW3GMwJXsqpxVkPre5YDF5S155FCDHS"], ["created_at", "2016-10-03 13:00:33.530845"], ["updated_at", "2016-10-03 13:00:33.530845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$x.eyOIHqj1NR0rUvsga5e.NO1YBOvYjhq8jaRZM6MItRuYMlOFrZO"], ["created_at", "2016-10-03 13:00:33.537948"], ["updated_at", "2016-10-03 13:00:33.537948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$ebjxPFDhOEwNVLCDS0trLO3Z0JJwPN8wwUW0p00TWerqQX9LNng6q"], ["created_at", "2016-10-03 13:00:33.542237"], ["updated_at", "2016-10-03 13:00:33.542237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$LlO7KeIX/XmQNCSH/9NCX.yONZQjBoukJF7Es6p7n3QEEtXR0S2je"], ["created_at", "2016-10-03 13:00:33.547511"], ["updated_at", "2016-10-03 13:00:33.547511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$h/iaFzxZopsniSjJr1mQcODOs.6cYiwu89v4vJoQ9qUoMW/MHlCye"], ["created_at", "2016-10-03 13:00:33.552040"], ["updated_at", "2016-10-03 13:00:33.552040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$v22Dum.rQN0MUiMOYy.n3u.g8YOEI.wTRQ0foYtUZF7m6iDcDCToG"], ["created_at", "2016-10-03 13:00:33.556765"], ["updated_at", "2016-10-03 13:00:33.556765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$mgNYlvEloiym9qGxlOZ9VOyTSwtQEAmYJkHfTzLonirVkaFs5oE7O"], ["created_at", "2016-10-03 13:00:33.562300"], ["updated_at", "2016-10-03 13:00:33.562300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$0MQy3rEjfzvQmsGi1LbGeu81SM36fO9xd.jc.m6eknevNTIZgKST2"], ["created_at", "2016-10-03 13:00:33.568150"], ["updated_at", "2016-10-03 13:00:33.568150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$XMOuzTLXytkSnH6yVp6WVOOcARRwUQAVYuGgEtURJj7UvwJ.7VC3u"], ["created_at", "2016-10-03 13:00:33.573999"], ["updated_at", "2016-10-03 13:00:33.573999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$rt/bYFq.6PFxIqXFEO8I6..8Bn/3eh6N2yoL4FQOQYEUXmJ.NFCuO"], ["created_at", "2016-10-03 13:00:33.579124"], ["updated_at", "2016-10-03 13:00:33.579124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$3.C5FKZFB5Iie2rVF0z8N.2kqNiaTU8JJuftnb0WgV3R9VS/KebWO"], ["created_at", "2016-10-03 13:00:33.584049"], ["updated_at", "2016-10-03 13:00:33.584049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$txwQquxL5A8luwTARpNnX.Xd0sKwiH14QaZdnm4q81udeNCAfCT0a"], ["created_at", "2016-10-03 13:00:33.588436"], ["updated_at", "2016-10-03 13:00:33.588436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$Bi3Q8X2n/VzARpjMzwmBDuySHBY3e747H1Xy0.HDx7YnG3Rs2xrEa"], ["created_at", "2016-10-03 13:00:33.593025"], ["updated_at", "2016-10-03 13:00:33.593025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$oylbrY.4QQ1oV8cEpquL6etKep0jHGl.ZhRlUpn9xZz1eflyqpbue"], ["created_at", "2016-10-03 13:00:33.598210"], ["updated_at", "2016-10-03 13:00:33.598210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$Jjw0lnrpuRyEqqgRfQdxyusdEkoJggZXsZBqSNzTr7vFK6q4UU1kO"], ["created_at", "2016-10-03 13:00:33.602989"], ["updated_at", "2016-10-03 13:00:33.602989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$0Yrqc5AqmRod.TnpL/Z/A.mqC1roLhqVkiae5G/4ixSZ.HsYoEv7O"], ["created_at", "2016-10-03 13:00:33.607761"], ["updated_at", "2016-10-03 13:00:33.607761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$vlQlu8hcsZLqeGhvpxW68OOpdprCd23DLIHhStkbDpAr46o9VNUlm"], ["created_at", "2016-10-03 13:00:33.612348"], ["updated_at", "2016-10-03 13:00:33.612348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$9T0ZehUu4/yeNREUm3dOuOU4HMLOlCora6PDXRQLBMa.hYVqbMGh."], ["created_at", "2016-10-03 13:00:33.616835"], ["updated_at", "2016-10-03 13:00:33.616835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$VNy9Snk3M1Gp4hOiqUyhb.4EzRxFmhDB2aJBn39.GoUkYAFKMK7VC"], ["created_at", "2016-10-03 13:00:33.621161"], ["updated_at", "2016-10-03 13:00:33.621161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$GyhMV471Q.1ihI.3Uj.couObSVa87PlFk1pu0tWGaKc3/zIb5Gy4."], ["created_at", "2016-10-03 13:00:33.625840"], ["updated_at", "2016-10-03 13:00:33.625840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$q43jDsqBkOoN0czLyy8eyu/yOSt2hhuV27zL1nMelW3h23acmgLdm"], ["created_at", "2016-10-03 13:00:33.630887"], ["updated_at", "2016-10-03 13:00:33.630887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$CUyVXaIkuVgmv8l/zGyNCe1RaCQzd.rmz.Txh6i/F.kWDsuio4n6u"], ["created_at", "2016-10-03 13:00:33.635642"], ["updated_at", "2016-10-03 13:00:33.635642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$lx1zEPOow.jqVdPZcg8UIODu2wzL1JKa12xPvMFCVyI.o3HIaSf4."], ["created_at", "2016-10-03 13:00:33.640285"], ["updated_at", "2016-10-03 13:00:33.640285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:00:33.651792"], ["updated_at", "2016-10-03 13:00:33.651792"]] SQL (1.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-03 13:00:33.651792"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 15ms (Views: 13.3ms | ActiveRecord: 0.3ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans"  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$lmIi1cLtHMs8b7yJVpBOzu3gZkXqQ5pZu5TAIrwoT3MrCadiMT94u"], ["created_at", "2016-10-03 13:00:34.129725"], ["updated_at", "2016-10-03 13:00:34.129725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:00:34.134463"], ["updated_at", "2016-10-03 13:00:34.134463"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-03 13:00:34.134463"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 28]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (0.2ms) Completed 200 OK in 10ms (Views: 5.3ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$oRJpwNbdjQnGOOAv3nyazersLUMldYIJvsxpm0joAsUBiLSH3mzhu"], ["created_at", "2016-10-03 13:00:34.514459"], ["updated_at", "2016-10-03 13:00:34.514459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$kmpHzwanTIP2Ug1fKJ239OlBXnQF8HffhJ.PHlfMC7YWDMQg3SoTm"], ["created_at", "2016-10-03 13:00:34.529608"], ["updated_at", "2016-10-03 13:00:34.529608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:00:34.533252"], ["updated_at", "2016-10-03 13:00:34.533252"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-03 13:00:34.533252"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#edit as HTML Parameters: {"id"=>"3"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 30]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 10ms (Views: 7.2ms | ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$bGblc4K3d6tauNAEtDYogeRPeuS.1hBdn11Ri528MxdrEpaEh3y/S"], ["created_at", "2016-10-03 13:00:34.954162"], ["updated_at", "2016-10-03 13:00:34.954162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 13:00:34.964006"], ["updated_at", "2016-10-03 13:00:34.964006"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "31"], ["created_at", "2016-10-03 13:00:34.964006"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/4 Completed 302 Found in 371ms (ActiveRecord: 1.2ms)  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$.NAwrxj0hNRSelZDbzQOwugQoh4qGpVEmR.SpYSoMHoWidNHvRaES"], ["created_at", "2016-10-03 13:00:35.337443"], ["updated_at", "2016-10-03 13:00:35.337443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 13:00:35.345580"], ["updated_at", "2016-10-03 13:00:35.345580"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "32"], ["created_at", "2016-10-03 13:00:35.345580"], ["item_id", 5], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/5 Completed 302 Found in 368ms (ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$Er4U7fchZthUkG7jTF8w.unSuwZKBsauEnX/SxmBwlS4dl.VRkQcu"], ["created_at", "2016-10-03 13:00:35.717107"], ["updated_at", "2016-10-03 13:00:35.717107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 13:00:35.727039"], ["updated_at", "2016-10-03 13:00:35.727039"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "33"], ["created_at", "2016-10-03 13:00:35.727039"], ["item_id", 6], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/6 Completed 302 Found in 692ms (ActiveRecord: 1.3ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$1WDPSiSIPEAdA4CwkN1lTOv8Xoc/qHkL8jdlBVrWV2f0EOfCM4aKO"], ["created_at", "2016-10-03 13:00:36.423840"], ["updated_at", "2016-10-03 13:00:36.423840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.0ms) Completed 200 OK in 11ms (Views: 0.7ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$P43cZtI/HvVJpPl95W/Cu.kBSmCkAlIzX..T1STtMCIYe6ep6N1YS"], ["created_at", "2016-10-03 13:00:36.444218"], ["updated_at", "2016-10-03 13:00:36.444218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.0ms) Completed 200 OK in 5ms (Views: 0.7ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$Ly7dSlYzM94CJdpwaIR3gOMZb.Ay8yW8vJSsEKHNbKkXIBbFwMG8G"], ["created_at", "2016-10-03 13:00:36.459018"], ["updated_at", "2016-10-03 13:00:36.459018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:00:36.462110"], ["updated_at", "2016-10-03 13:00:36.462110"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-03 13:00:36.462110"], ["item_id", 7], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$h.4GIs85NSJ/GOXbX8BUe.5dJbpo30WzVCplDJ2TsEKi3iQqsZFI2"], ["created_at", "2016-10-03 13:00:36.944758"], ["updated_at", "2016-10-03 13:00:36.944758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:00:36.948388"], ["updated_at", "2016-10-03 13:00:36.948388"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-03 13:00:36.948388"], ["item_id", 8], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"8"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 37]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 8]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7' AND "tang_plans"."id" != 8) LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7' AND "tang_plans"."id" != 8) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/8 Completed 302 Found in 740ms (ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$TdM1qoyHw9nXdjiwc7uHPOfRoYRLkLIbSB6TLXApRzemjlXs0JDT6"], ["created_at", "2016-10-03 13:00:38.223311"], ["updated_at", "2016-10-03 13:00:38.223311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:00:38.226755"], ["updated_at", "2016-10-03 13:00:38.226755"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "37"], ["created_at", "2016-10-03 13:00:38.226755"], ["item_id", 9], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"9"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 38]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 9]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7' AND "tang_plans"."id" != 9) LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7' AND "tang_plans"."id" != 9) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/9 Completed 302 Found in 740ms (ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$L0j4202TrOTPEBjfbtEdDOEnHe/0EVZaqvyxSSebJRejvzogMbQ2m"], ["created_at", "2016-10-03 13:00:39.342316"], ["updated_at", "2016-10-03 13:00:39.342316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:00:39.346185"], ["updated_at", "2016-10-03 13:00:39.346185"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "38"], ["created_at", "2016-10-03 13:00:39.346185"], ["item_id", 10], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"10"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 39]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 10]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7' AND "tang_plans"."id" != 10) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 6ms (Views: 0.6ms | ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$msw2Im7ySqj1A.3.bGq/3OTfI3hAHmPBCtgxaxd5qDozqq0noLmim"], ["created_at", "2016-10-03 13:00:39.744451"], ["updated_at", "2016-10-03 13:00:39.744451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:00:39.748325"], ["updated_at", "2016-10-03 13:00:39.748325"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "39"], ["created_at", "2016-10-03 13:00:39.748325"], ["item_id", 11], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"11"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 40]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 11]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7' AND "tang_plans"."id" != 11) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$256K0wj4ZuPqO1zV7iiQROK04iC.jkAC/rqgMCly.s651lNmM1kL."], ["created_at", "2016-10-03 13:00:40.138334"], ["updated_at", "2016-10-03 13:00:40.138334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:00:40.141882"], ["updated_at", "2016-10-03 13:00:40.141882"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "40"], ["created_at", "2016-10-03 13:00:40.141882"], ["item_id", 12], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"12"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 41]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 12]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 12], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 12\nstripe_id: 54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: 0\nhighlight: false\ncreated_at: 2016-10-03 13:00:40.141882000 Z\nupdated_at: 2016-10-03 13:00:40.141882000 Z\n"], ["whodunnit", "41"], ["created_at", "2016-10-03 13:00:40.514460"]] SQL (0.3ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 768ms (ActiveRecord: 1.0ms)  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$vFfPPTBBQvDkfumG1BRXGOmoACjQHTbTmg8ay9W4TKqKfRBZaAy8u"], ["created_at", "2016-10-03 13:00:41.297698"], ["updated_at", "2016-10-03 13:00:41.297698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:00:41.301563"], ["updated_at", "2016-10-03 13:00:41.301563"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "41"], ["created_at", "2016-10-03 13:00:41.301563"], ["item_id", 13], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"13"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 42]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 13]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 13], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 13\nstripe_id: 54fe3e6c-0f3f-4a8c-98c7-69a1e6718ca7\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: 0\nhighlight: false\ncreated_at: 2016-10-03 13:00:41.301563000 Z\nupdated_at: 2016-10-03 13:00:41.301563000 Z\n"], ["whodunnit", "42"], ["created_at", "2016-10-03 13:00:41.685123"]] SQL (0.3ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 780ms (ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$DKqqPqDjOZgHh4Pzc7YTXuueN1kiw6.lDyirUxUy9eSP7IDjx3fzW"], ["created_at", "2016-10-03 13:00:42.468734"], ["updated_at", "2016-10-03 13:00:42.468734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$SSVoI/hb2r1kuuTEodnLIuJt2cuyblEYrCD.C9nqMCrexYpqsnhNe"], ["created_at", "2016-10-03 13:00:42.474936"], ["updated_at", "2016-10-03 13:00:42.474936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$.q6ySdNEEXzG64P9FZgIveXkqs4C8jnfl7EPFYTlfViVcLHinHlj."], ["created_at", "2016-10-03 13:00:42.480752"], ["updated_at", "2016-10-03 13:00:42.480752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$dCt6IzkZhd5hu2JsFreKfe8VSJRx/bE8JpGvzqoDnE6xLH6sMB1D6"], ["created_at", "2016-10-03 13:00:42.486159"], ["updated_at", "2016-10-03 13:00:42.486159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$boEvEAAKJom3IlttpHCF3efXhicu7vVyJSEGjQBSdTlvFOfzMqehO"], ["created_at", "2016-10-03 13:00:42.490441"], ["updated_at", "2016-10-03 13:00:42.490441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$2dONsXMI.yIU.x9BwjUS1.fSUWaR7125DqzZrZ2K1jWAEg.e9mOVW"], ["created_at", "2016-10-03 13:00:42.495411"], ["updated_at", "2016-10-03 13:00:42.495411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$F5cUDx8cirL.iyPlbGSCwu4YWDhDgq3f/UhAHq0GBTV126amcfjAu"], ["created_at", "2016-10-03 13:00:42.500302"], ["updated_at", "2016-10-03 13:00:42.500302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$8AArPBR7BRfF0NThB.8FBu0xh4iDIw3zvLInUxUUJJyifo4eIh5s2"], ["created_at", "2016-10-03 13:00:42.505084"], ["updated_at", "2016-10-03 13:00:42.505084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$hhkzU0Nwdw5BxVwnxut8WO4J18Ip59DhppjZl8PgubeYuSWEPfZ/q"], ["created_at", "2016-10-03 13:00:42.509758"], ["updated_at", "2016-10-03 13:00:42.509758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$fvbseF9EtC8wRofp19VCruktphA2HzeyEUWPiSCzkSKkJqRBuhzkG"], ["created_at", "2016-10-03 13:00:42.514328"], ["updated_at", "2016-10-03 13:00:42.514328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 13ms (Views: 7.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$Je/rZMCkzWmKTsu7aT5uFOhuUCsi7lODy3OeJ4djhiYeIdLWvDX8."], ["created_at", "2016-10-03 13:00:45.471517"], ["updated_at", "2016-10-03 13:00:45.471517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 09:00:45 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.0ms) Rendered devise/sessions/new.html.erb within layouts/application (24.2ms) Completed 200 OK in 242ms (Views: 226.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 09:00:45 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 13:00:45.744540"], ["current_sign_in_at", "2016-10-03 13:00:45.744540"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 13:00:45.745383"], ["id", 53]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 17ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-03 09:00:45 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.5ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 09:00:45 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (9.6ms) Completed 200 OK in 44ms (Views: 22.3ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 09:00:45 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 13:00:45.847985"], ["updated_at", "2016-10-03 13:00:45.847985"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "53"], ["created_at", "2016-10-03 13:00:45.847985"], ["item_id", 14], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/14 Completed 302 Found in 846ms (ActiveRecord: 2.9ms) Started GET "/tang/admin/plans/14" for 127.0.0.1 at 2016-10-03 09:00:46 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"14"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 14]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (7.7ms) Completed 200 OK in 18ms (Views: 13.5ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$z5EMjH7vyUh9CG8wdGmPLOeCboAjxdr3vSzbDmdtEZUd7W2msVBEO"], ["created_at", "2016-10-03 13:00:46.724334"], ["updated_at", "2016-10-03 13:00:46.724334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 09:00:46 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 09:00:46 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 13:00:46.737967"], ["current_sign_in_at", "2016-10-03 13:00:46.737967"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 13:00:46.738580"], ["id", 54]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-03 09:00:46 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]] Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 09:00:46 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.4ms) Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.4ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 09:00:46 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.4ms) Completed 200 OK in 9ms (Views: 4.6ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$fvTJcR27Mq/qg06qxPKK9.QT2Lu0MmqROBDhL8jW.6dP0HCqtQmTi"], ["created_at", "2016-10-03 13:00:46.823203"], ["updated_at", "2016-10-03 13:00:46.823203"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 09:00:49 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (3.0ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-03 09:00:49 -0400 Started GET "/assets/application-ae2f3e9153ab8790e8aa4db3ee24569c31c04e9721cf338869bc8e4f22fac81c.js" for 127.0.0.1 at 2016-10-03 09:00:49 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 09:00:50 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 13:00:50.331227"], ["current_sign_in_at", "2016-10-03 13:00:50.331227"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 13:00:50.332107"], ["id", 55]]  (5.8ms) COMMIT Redirected to http://127.0.0.1:58118/ Completed 302 Found in 16ms (ActiveRecord: 7.0ms) Started GET "/" for 127.0.0.1 at 2016-10-03 09:00:50 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 13:00:50.486000"], ["updated_at", "2016-10-03 13:00:50.486000"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 13:00:50.486000"], ["item_id", 15], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 09:00:50 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (10.2ms) Completed 200 OK in 44ms (Views: 21.4ms | ActiveRecord: 3.7ms) Started GET "/tang/account/subscription/new?plan=15" for 127.0.0.1 at 2016-10-03 09:00:50 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"15"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (4.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (7.9ms) Completed 200 OK in 32ms (Views: 12.3ms | ActiveRecord: 2.1ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 09:00:52 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"15"}, "stripe_token"=>"test_tok_1"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 55 LIMIT 1 Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 55) LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 55) LIMIT 1 SQL (0.5ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-03 13:00:52.994124"], ["id", 55]]  (1.4ms) COMMIT  (0.1ms) BEGIN Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 55 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (1.0ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 15], ["customer_id", 55], ["stripe_id", "test_su_4"], ["created_at", "2016-10-03 13:00:53.010341"], ["updated_at", "2016-10-03 13:00:53.010341"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "55"], ["created_at", "2016-10-03 13:00:53.010341"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.4ms) COMMIT Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]]  (0.2ms) BEGIN SQL (0.5ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 55], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 9], ["exp_year", 2018], ["fingerprint", "hrLgWzEscxDirlpO"], ["funding", "credit"], ["last4", "4242"], ["name", "Johnny App"], ["created_at", "2016-10-03 13:00:53.047315"], ["updated_at", "2016-10-03 13:00:53.047315"]]  (0.3ms) COMMIT Redirected to http://127.0.0.1:58118/tang/account/subscription Completed 302 Found in 75ms (ActiveRecord: 10.6ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 09:00:53 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > 0) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (3.7ms) Completed 200 OK in 14ms (Views: 6.0ms | ActiveRecord: 2.3ms)  (0.5ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.4ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.2ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (34.9ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$n13K32aAeakepM9HiCg1e.2eTjyaI9hKcVqw.vhiWODlpQNpVYiqK"], ["created_at", "2016-10-03 13:00:57.874606"], ["updated_at", "2016-10-03 13:00:57.874606"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 09:00:57 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.4ms) Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 09:00:58 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 13:00:58.497376"], ["current_sign_in_at", "2016-10-03 13:00:58.497376"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 13:00:58.498134"], ["id", 1]]  (5.5ms) COMMIT Redirected to http://127.0.0.1:58118/ Completed 302 Found in 13ms (ActiveRecord: 6.5ms) Started GET "/" for 127.0.0.1 at 2016-10-03 09:00:58 -0400 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.1ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (6.0ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 13:00:58.646550"], ["updated_at", "2016-10-03 13:00:58.646550"]] SQL (11.8ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 13:00:58.646550"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (5.1ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 09:00:58 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.4ms) Completed 200 OK in 8ms (Views: 3.8ms | ActiveRecord: 1.2ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-03 09:00:58 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.3ms) Completed 200 OK in 7ms (Views: 4.5ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 09:01:00 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"test_tok_1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.1ms) Completed 200 OK in 7ms (Views: 2.4ms | ActiveRecord: 0.8ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (56.7ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (19.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$uF9I3r7XxOBrnhi9d34L9eaBbSVjyRGYPZUBB2yJvA/YIfxMEuwxS"], ["created_at", "2016-10-03 13:24:49.489858"], ["updated_at", "2016-10-03 13:24:49.489858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$UiCgvprcKO57jBjQ4G7J7uW2sbnv.FVZ2DGExE6Tox6rQiA/mBHEG"], ["created_at", "2016-10-03 13:24:49.515888"], ["updated_at", "2016-10-03 13:24:49.515888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$OF6xL6eFnmxGtUAUvQW9TOOdMs1Nkh5PIZWnShN9kzMI6GNoSypm."], ["created_at", "2016-10-03 13:24:49.520996"], ["updated_at", "2016-10-03 13:24:49.520996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 46ms (Views: 26.6ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$SqfpW51K6Bipv6PaskOGbeDmi5TMcxn5rqkBcbgmdaDinEbjnSf7W"], ["created_at", "2016-10-03 13:24:49.581073"], ["updated_at", "2016-10-03 13:24:49.581073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$XJqfzmKHiiCV6718.6FY8eBPgXBvrqub3oqb6bjQ7aB5B60ZBfX7q"], ["created_at", "2016-10-03 13:24:49.587549"], ["updated_at", "2016-10-03 13:24:49.587549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$haWeXSI9RCy1HnFDVnYjTe5ZmQ2ukgY5U6DxC2/7//D8T4HkvGG2q"], ["created_at", "2016-10-03 13:24:49.599083"], ["updated_at", "2016-10-03 13:24:49.599083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$6z5EDqBVX9AznxWMyYsPRetye5mRsUMVrd1iVE8dk5GZ/p1k8TsGu"], ["created_at", "2016-10-03 13:24:49.604186"], ["updated_at", "2016-10-03 13:24:49.604186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$zeimIHuTzKNyYS8luAUrnuctF8nEq2AJZr/B5MwGxyQPaSKUaDNIO"], ["created_at", "2016-10-03 13:24:49.609419"], ["updated_at", "2016-10-03 13:24:49.609419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$gNmeY9.2fQ2kKg7UAbqNBOZ5tMYw1eLJ7gmJbB9tO5wCme2llegBW"], ["created_at", "2016-10-03 13:24:49.614450"], ["updated_at", "2016-10-03 13:24:49.614450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$ZHO6xVYpPOsrq5WaI1DwtOD6cJv2aEBmvw3Ihtnp7B241QMfn730S"], ["created_at", "2016-10-03 13:24:49.619202"], ["updated_at", "2016-10-03 13:24:49.619202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$E7VDcbgGw8rHsrdRqONKQO1PGCcQQ7Xl.cr8a9PoDTsDXGKVXJ8PO"], ["created_at", "2016-10-03 13:24:49.623399"], ["updated_at", "2016-10-03 13:24:49.623399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$j2dpqLX1eeoFdeNdklK95O3sLW5qfrew45xyeLBh3o9e6QisMURKG"], ["created_at", "2016-10-03 13:24:49.628042"], ["updated_at", "2016-10-03 13:24:49.628042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$bmCX/aKHyevJO9QrGJ3jc.skzwlxW5J7Y8fsCZgOukzvnHvw8Ayjq"], ["created_at", "2016-10-03 13:24:49.632795"], ["updated_at", "2016-10-03 13:24:49.632795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$/oHABxqz47FDWbU0s4JtvO/xOyLuRS.CUCx10kXtyeOXMyNwC0FxW"], ["created_at", "2016-10-03 13:24:49.637338"], ["updated_at", "2016-10-03 13:24:49.637338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$ziBzM/2NtspC6xeXRKU4GefG6OcpQ7hDIoZyZIzp695gzc4LAsBf2"], ["created_at", "2016-10-03 13:24:49.641985"], ["updated_at", "2016-10-03 13:24:49.641985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$uWaum1u9IO1YrbTHNIXFqOJhgbsnJmqrnJ517dVi7GzK0Z.MljYbi"], ["created_at", "2016-10-03 13:24:49.646414"], ["updated_at", "2016-10-03 13:24:49.646414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$LibnXCEeAahqGpnr79.KR.uFkHQ0iiKkG9eJvy9rI9wBmg5JN3xHO"], ["created_at", "2016-10-03 13:24:49.651069"], ["updated_at", "2016-10-03 13:24:49.651069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$/29Rqw6QCNXrqjwYt4kBBu5QGlupCPrJQC0odmRC5zkR.b/d76Wei"], ["created_at", "2016-10-03 13:24:49.656266"], ["updated_at", "2016-10-03 13:24:49.656266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$pRh3tWpoCKrOp8uXIod/jeP4ZZ.MgAAF8KaBmRdlgBGpHvr74jYBS"], ["created_at", "2016-10-03 13:24:49.661145"], ["updated_at", "2016-10-03 13:24:49.661145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$RRUbzTBJkz1eOdBn9jpn3.8/lK1ZCILWQVhyvAcsHgUcP4HmXGTZy"], ["created_at", "2016-10-03 13:24:49.666999"], ["updated_at", "2016-10-03 13:24:49.666999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$VZ5utKMRbDFsKJWIbmHjuOBdO1ODa1Verq0ehqg2lPivQdZakY0ui"], ["created_at", "2016-10-03 13:24:49.672779"], ["updated_at", "2016-10-03 13:24:49.672779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$PE2awO2.yWYf2BHC73JmR.9Irzp8NjpMkFEj8lkkaSAGj6w3vQoye"], ["created_at", "2016-10-03 13:24:49.678403"], ["updated_at", "2016-10-03 13:24:49.678403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$S31pxINOlf5yOzgQXf8TLu84ibUOrL6u3G9rbR4uvJuJir6yEDqQm"], ["created_at", "2016-10-03 13:24:49.683791"], ["updated_at", "2016-10-03 13:24:49.683791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$KoUb.yTVYo8qHKUjCOnTN..qNZs8fMtEkNo3o/odNQ20rA/zCGbGe"], ["created_at", "2016-10-03 13:24:49.688907"], ["updated_at", "2016-10-03 13:24:49.688907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$R0SVuN62vHIQ7dS/d46CgeKGHC7DnVGzyeo85leO57q6XoKBHJjA2"], ["created_at", "2016-10-03 13:24:49.693570"], ["updated_at", "2016-10-03 13:24:49.693570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$IwV91ideT9MSUROJhoiZtONJq7Rew/kLNgUrMG87eyRyFdthp2a5W"], ["created_at", "2016-10-03 13:24:49.697999"], ["updated_at", "2016-10-03 13:24:49.697999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$Xe/6JT5gwN4RpYFsiM0HS.yumkqeWX2x/Q9WCFIfAH/8szWzC76hq"], ["created_at", "2016-10-03 13:24:49.702843"], ["updated_at", "2016-10-03 13:24:49.702843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f9796990-0e4d-4230-b6ec-f8912f1c1552' LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f9796990-0e4d-4230-b6ec-f8912f1c1552' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "f9796990-0e4d-4230-b6ec-f8912f1c1552"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:24:49.714058"], ["updated_at", "2016-10-03 13:24:49.714058"]] SQL (12.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-03 13:24:49.714058"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 14ms (Views: 11.4ms | ActiveRecord: 0.3ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$LdIz/GGGaaskYMBr5jJYcODdpjGJLp2RpQzdX9cYMSCw4hFd8OBCS"], ["created_at", "2016-10-03 13:24:50.237954"], ["updated_at", "2016-10-03 13:24:50.237954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f9796990-0e4d-4230-b6ec-f8912f1c1552' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f9796990-0e4d-4230-b6ec-f8912f1c1552' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "f9796990-0e4d-4230-b6ec-f8912f1c1552"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:24:50.241388"], ["updated_at", "2016-10-03 13:24:50.241388"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-03 13:24:50.241388"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 28]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (0.3ms) Completed 200 OK in 11ms (Views: 6.4ms | ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$9gRBJ.yeYHm142.ZBw1fa.ibZzJulxZAhQrM5hAh3QHA8zuCfoc4C"], ["created_at", "2016-10-03 13:24:50.620380"], ["updated_at", "2016-10-03 13:24:50.620380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$ypsa.Gyz8uqo.M9afDFv0.GqXTMRkvObUpGhYjoAO6Z9P9iXi9TFi"], ["created_at", "2016-10-03 13:24:50.635172"], ["updated_at", "2016-10-03 13:24:50.635172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f9796990-0e4d-4230-b6ec-f8912f1c1552' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f9796990-0e4d-4230-b6ec-f8912f1c1552' LIMIT 1 SQL (2.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "f9796990-0e4d-4230-b6ec-f8912f1c1552"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:24:50.638181"], ["updated_at", "2016-10-03 13:24:50.638181"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-03 13:24:50.638181"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#edit as HTML Parameters: {"id"=>"3"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 30]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.4ms) Completed 200 OK in 12ms (Views: 9.6ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$e9rVi/6eZRssmfPzKtpgEuGqjPSNgz.gWynj381VcSbTAZXQJ3wX6"], ["created_at", "2016-10-03 13:24:51.024357"], ["updated_at", "2016-10-03 13:24:51.024357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"f9796990-0e4d-4230-b6ec-f8912f1c1552", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f9796990-0e4d-4230-b6ec-f8912f1c1552' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f9796990-0e4d-4230-b6ec-f8912f1c1552' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "f9796990-0e4d-4230-b6ec-f8912f1c1552"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 13:24:51.032626"], ["updated_at", "2016-10-03 13:24:51.032626"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "31"], ["created_at", "2016-10-03 13:24:51.032626"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/4 Completed 302 Found in 377ms (ActiveRecord: 1.2ms)  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$8dQ1uJYW7RetIz67vJklWOEvmkvdB8W0Hie6ucN27E5L3n6N2zHy6"], ["created_at", "2016-10-03 13:24:51.413512"], ["updated_at", "2016-10-03 13:24:51.413512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"f9796990-0e4d-4230-b6ec-f8912f1c1552", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f9796990-0e4d-4230-b6ec-f8912f1c1552' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f9796990-0e4d-4230-b6ec-f8912f1c1552' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "f9796990-0e4d-4230-b6ec-f8912f1c1552"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 13:24:51.422948"], ["updated_at", "2016-10-03 13:24:51.422948"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "32"], ["created_at", "2016-10-03 13:24:51.422948"], ["item_id", 5], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/5 Completed 302 Found in 404ms (ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$9O5BQFgsGWLgL0idEXGqFua.WLB7YoQk8joLM/5.VwhnETyJcQAOO"], ["created_at", "2016-10-03 13:24:51.829619"], ["updated_at", "2016-10-03 13:24:51.829619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"f9796990-0e4d-4230-b6ec-f8912f1c1552", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]]  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f9796990-0e4d-4230-b6ec-f8912f1c1552' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f9796990-0e4d-4230-b6ec-f8912f1c1552' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "f9796990-0e4d-4230-b6ec-f8912f1c1552"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 13:24:51.838820"], ["updated_at", "2016-10-03 13:24:51.838820"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "33"], ["created_at", "2016-10-03 13:24:51.838820"], ["item_id", 6], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/6 Completed 302 Found in 506ms (ActiveRecord: 1.4ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$BrXw5WmkNqTo6mQloAWezezfL6M4ymSTp4Z1YePzeS/w57g52qbpu"], ["created_at", "2016-10-03 13:24:52.348699"], ["updated_at", "2016-10-03 13:24:52.348699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"f9796990-0e4d-4230-b6ec-f8912f1c1552", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f9796990-0e4d-4230-b6ec-f8912f1c1552' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.1ms) Completed 200 OK in 14ms (Views: 0.6ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$puCJhQfi3iPSrZZSYM.lMu1KajQ40v6SHy7c8sCHPK/HshCUAmXkS"], ["created_at", "2016-10-03 13:24:52.371934"], ["updated_at", "2016-10-03 13:24:52.371934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"f9796990-0e4d-4230-b6ec-f8912f1c1552", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f9796990-0e4d-4230-b6ec-f8912f1c1552' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.0ms) Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$0g0oCf0F.Ev498Z9rw3uA.7LE0C3LB.lrOc0eOKQ3YsTRUM0ONxqC"], ["created_at", "2016-10-03 13:24:52.386028"], ["updated_at", "2016-10-03 13:24:52.386028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f9796990-0e4d-4230-b6ec-f8912f1c1552' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f9796990-0e4d-4230-b6ec-f8912f1c1552' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "f9796990-0e4d-4230-b6ec-f8912f1c1552"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:24:52.389185"], ["updated_at", "2016-10-03 13:24:52.389185"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-03 13:24:52.389185"], ["item_id", 7], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$v5D0vV93Q96MEVf2wOi.J.HOjVkWH81EBBAgxSRcOZtr8v9I3rJmm"], ["created_at", "2016-10-03 13:24:52.765357"], ["updated_at", "2016-10-03 13:24:52.765357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f9796990-0e4d-4230-b6ec-f8912f1c1552' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f9796990-0e4d-4230-b6ec-f8912f1c1552' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "f9796990-0e4d-4230-b6ec-f8912f1c1552"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:24:52.769630"], ["updated_at", "2016-10-03 13:24:52.769630"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-03 13:24:52.769630"], ["item_id", 8], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"f9796990-0e4d-4230-b6ec-f8912f1c1552", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"8"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 37]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 8]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'f9796990-0e4d-4230-b6ec-f8912f1c1552' AND "tang_plans"."id" != 8) LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'f9796990-0e4d-4230-b6ec-f8912f1c1552' AND "tang_plans"."id" != 8) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/8 Completed 302 Found in 707ms (ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$wLAywNioL6dfXQzaZMw5h.WpC7gfGQ8f4/n2gjpgJsk9WwvrGWHCy"], ["created_at", "2016-10-03 13:24:53.859853"], ["updated_at", "2016-10-03 13:24:53.859853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f9796990-0e4d-4230-b6ec-f8912f1c1552' LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f9796990-0e4d-4230-b6ec-f8912f1c1552' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "f9796990-0e4d-4230-b6ec-f8912f1c1552"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:24:53.864209"], ["updated_at", "2016-10-03 13:24:53.864209"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "37"], ["created_at", "2016-10-03 13:24:53.864209"], ["item_id", 9], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"f9796990-0e4d-4230-b6ec-f8912f1c1552", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"9"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 38]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 9]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'f9796990-0e4d-4230-b6ec-f8912f1c1552' AND "tang_plans"."id" != 9) LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'f9796990-0e4d-4230-b6ec-f8912f1c1552' AND "tang_plans"."id" != 9) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/9 Completed 302 Found in 721ms (ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$WrphvabIOIsDUUzNRu028uSEip3LGOrgsO7IMlGzE95Xp5GedpMzi"], ["created_at", "2016-10-03 13:24:54.974823"], ["updated_at", "2016-10-03 13:24:54.974823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f9796990-0e4d-4230-b6ec-f8912f1c1552' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f9796990-0e4d-4230-b6ec-f8912f1c1552' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "f9796990-0e4d-4230-b6ec-f8912f1c1552"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:24:54.978499"], ["updated_at", "2016-10-03 13:24:54.978499"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "38"], ["created_at", "2016-10-03 13:24:54.978499"], ["item_id", 10], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"f9796990-0e4d-4230-b6ec-f8912f1c1552", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"10"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 39]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 10]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'f9796990-0e4d-4230-b6ec-f8912f1c1552' AND "tang_plans"."id" != 10) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 6ms (Views: 0.8ms | ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$MlNJ3vGs2//RxImQIfTJMedvNP3iLZoOhd1x39E2cOuNmA/a5M8lK"], ["created_at", "2016-10-03 13:24:55.366564"], ["updated_at", "2016-10-03 13:24:55.366564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f9796990-0e4d-4230-b6ec-f8912f1c1552' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f9796990-0e4d-4230-b6ec-f8912f1c1552' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "f9796990-0e4d-4230-b6ec-f8912f1c1552"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:24:55.369826"], ["updated_at", "2016-10-03 13:24:55.369826"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "39"], ["created_at", "2016-10-03 13:24:55.369826"], ["item_id", 11], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"f9796990-0e4d-4230-b6ec-f8912f1c1552", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"11"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 40]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 11]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'f9796990-0e4d-4230-b6ec-f8912f1c1552' AND "tang_plans"."id" != 11) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$30J0hk8jzGeeClCyG.kOmeVFYvpaHbvIBjkJzFDWhXCzSnwEHqnx."], ["created_at", "2016-10-03 13:24:55.789473"], ["updated_at", "2016-10-03 13:24:55.789473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f9796990-0e4d-4230-b6ec-f8912f1c1552' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f9796990-0e4d-4230-b6ec-f8912f1c1552' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "f9796990-0e4d-4230-b6ec-f8912f1c1552"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:24:55.792727"], ["updated_at", "2016-10-03 13:24:55.792727"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "40"], ["created_at", "2016-10-03 13:24:55.792727"], ["item_id", 12], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"12"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 41]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 12]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 12], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 12\nstripe_id: f9796990-0e4d-4230-b6ec-f8912f1c1552\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: 0\nhighlight: false\ncreated_at: 2016-10-03 13:24:55.792727000 Z\nupdated_at: 2016-10-03 13:24:55.792727000 Z\n"], ["whodunnit", "41"], ["created_at", "2016-10-03 13:24:56.212088"]] SQL (0.3ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 848ms (ActiveRecord: 1.0ms)  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$EGTUwQPxc7Ywlu0xnFOf2egLf1KM5n96JO1eEhjBOhP/YKKCvZNYu"], ["created_at", "2016-10-03 13:24:57.061818"], ["updated_at", "2016-10-03 13:24:57.061818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f9796990-0e4d-4230-b6ec-f8912f1c1552' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'f9796990-0e4d-4230-b6ec-f8912f1c1552' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "f9796990-0e4d-4230-b6ec-f8912f1c1552"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:24:57.065657"], ["updated_at", "2016-10-03 13:24:57.065657"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "41"], ["created_at", "2016-10-03 13:24:57.065657"], ["item_id", 13], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"13"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 42]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 13]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 13], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 13\nstripe_id: f9796990-0e4d-4230-b6ec-f8912f1c1552\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: 0\nhighlight: false\ncreated_at: 2016-10-03 13:24:57.065657000 Z\nupdated_at: 2016-10-03 13:24:57.065657000 Z\n"], ["whodunnit", "42"], ["created_at", "2016-10-03 13:24:57.510866"]] SQL (0.3ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 756ms (ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$GTQxxSuu6pgT1SompddgiOPlBcu/tHRJkD0ty8uMIXBej9Bs6ZejK"], ["created_at", "2016-10-03 13:24:58.270008"], ["updated_at", "2016-10-03 13:24:58.270008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$3YBvv2cGNn3nWZrEKxxY7.1YlEuTkscv6aDP/1LKTbP5L/mdUP4ne"], ["created_at", "2016-10-03 13:24:58.275891"], ["updated_at", "2016-10-03 13:24:58.275891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$77fEGhUk1NzrEsZ2dSe2aOLoWoP2NGk8SIsX/E.aVuFxSO0xbB4Iy"], ["created_at", "2016-10-03 13:24:58.281051"], ["updated_at", "2016-10-03 13:24:58.281051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 SQL (2.9ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$B3XZvdZjiUBetTzo.GU/..c8267uva3QJTMePg2.z/6YlNvuCqSQO"], ["created_at", "2016-10-03 13:24:58.286887"], ["updated_at", "2016-10-03 13:24:58.286887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$QWz7zI7JyGIcbssqFbXH3u7wd2Uf5nuj3eWq/xShx.p8OcbHQ5.0."], ["created_at", "2016-10-03 13:24:58.295293"], ["updated_at", "2016-10-03 13:24:58.295293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$bD6nhFoWWy48J3dsNj32t.aJlKynlxJdfs2MQuY2yzYyGQdxTbNkW"], ["created_at", "2016-10-03 13:24:58.301198"], ["updated_at", "2016-10-03 13:24:58.301198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$APd3ERZb1.TJ96p7sgV9feT8obkeYTcUQwjpGT5QkF.J8QHevZuDu"], ["created_at", "2016-10-03 13:24:58.306360"], ["updated_at", "2016-10-03 13:24:58.306360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$22AkUrRh6j8HTv9yjWwto.hXEbbhn1iOtyntUsc51nAHkrgfcIwYa"], ["created_at", "2016-10-03 13:24:58.311375"], ["updated_at", "2016-10-03 13:24:58.311375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$CnV4HeDBnIL5443Y0hpZsuU7QWN3fvdEb182V9UcJr/M5g5megm0a"], ["created_at", "2016-10-03 13:24:58.316855"], ["updated_at", "2016-10-03 13:24:58.316855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$.Ci2ZUusgVnUm5HTdASHnerRz5/8Q9fmiGQhE6oGD7qhx3ymXJCei"], ["created_at", "2016-10-03 13:24:58.321794"], ["updated_at", "2016-10-03 13:24:58.321794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 16ms (Views: 9.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$X.aHXKP2/gzbYnS5bmdCPurLobxKkSG4S5ADUt6FBL2uGQXKXnlVO"], ["created_at", "2016-10-03 13:25:01.543821"], ["updated_at", "2016-10-03 13:25:01.543821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 09:25:01 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.2ms) Rendered devise/sessions/new.html.erb within layouts/application (32.7ms) Completed 200 OK in 327ms (Views: 314.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 09:25:01 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 13:25:01.905371"], ["current_sign_in_at", "2016-10-03 13:25:01.905371"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 13:25:01.906228"], ["id", 53]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 20ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-03 09:25:01 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 09:25:01 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (10.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (15.8ms) Completed 200 OK in 82ms (Views: 48.4ms | ActiveRecord: 1.6ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 09:25:02 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 13:25:02.060135"], ["updated_at", "2016-10-03 13:25:02.060135"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "53"], ["created_at", "2016-10-03 13:25:02.060135"], ["item_id", 14], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/14 Completed 302 Found in 492ms (ActiveRecord: 3.1ms) Started GET "/tang/admin/plans/14" for 127.0.0.1 at 2016-10-03 09:25:02 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"14"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 14]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (15.1ms) Completed 200 OK in 26ms (Views: 20.2ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$0tpTuSBrW1TyPTn.7YGOxOWIMFWkqlpu9jpQvoXZIblFScacDKMVC"], ["created_at", "2016-10-03 13:25:02.603310"], ["updated_at", "2016-10-03 13:25:02.603310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 09:25:02 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.6ms) Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 09:25:02 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 13:25:02.626856"], ["current_sign_in_at", "2016-10-03 13:25:02.626856"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 13:25:02.628291"], ["id", 54]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 15ms (ActiveRecord: 1.1ms) Started GET "/" for 127.0.0.1 at 2016-10-03 09:25:02 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 09:25:02 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (5.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (5.9ms) Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 09:25:02 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (11.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (11.6ms) Completed 200 OK in 19ms (Views: 13.6ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$YAxpWQUp5VkMPJrafGMHFeCOEnb6a0BSzE3XgOSCXiFwCeKkIpC/a"], ["created_at", "2016-10-03 13:25:02.751725"], ["updated_at", "2016-10-03 13:25:02.751725"]]  (5.4ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 09:25:06 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.5ms) Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-03 09:25:06 -0400 Started GET "/assets/application-ae2f3e9153ab8790e8aa4db3ee24569c31c04e9721cf338869bc8e4f22fac81c.js" for 127.0.0.1 at 2016-10-03 09:25:06 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 09:25:06 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 13:25:06.785633"], ["current_sign_in_at", "2016-10-03 13:25:06.785633"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 13:25:06.786554"], ["id", 55]]  (5.6ms) COMMIT Redirected to http://127.0.0.1:61054/ Completed 302 Found in 16ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2016-10-03 09:25:06 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 13:25:06.940028"], ["updated_at", "2016-10-03 13:25:06.940028"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 13:25:06.940028"], ["item_id", 15], ["item_type", "Tang::Plan"]]  (0.5ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 09:25:06 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Subscription Load (19.7ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (13.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (22.3ms) Completed 200 OK in 76ms (Views: 19.5ms | ActiveRecord: 36.0ms) Started GET "/tang/account/subscription/new?plan=15" for 127.0.0.1 at 2016-10-03 09:25:07 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"15"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (6.4ms) Completed 200 OK in 25ms (Views: 10.5ms | ActiveRecord: 2.1ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 09:25:09 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"15"}, "stripe_token"=>"test_tok_1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 55 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 55) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 55) LIMIT 1 SQL (0.2ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-03 13:25:09.543197"], ["id", 55]]  (29.3ms) COMMIT  (0.2ms) BEGIN Tang::Subscription Exists (0.5ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 55 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (0.9ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 15], ["customer_id", 55], ["stripe_id", "test_su_4"], ["created_at", "2016-10-03 13:25:09.580384"], ["updated_at", "2016-10-03 13:25:09.580384"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "55"], ["created_at", "2016-10-03 13:25:09.580384"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.3ms) COMMIT Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]]  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 55], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 9], ["exp_year", 2018], ["fingerprint", "hrLgWzEscxDirlpO"], ["funding", "credit"], ["last4", "4242"], ["name", "Johnny App"], ["created_at", "2016-10-03 13:25:09.606978"], ["updated_at", "2016-10-03 13:25:09.606978"]]  (0.2ms) COMMIT Redirected to http://127.0.0.1:61054/tang/account/subscription Completed 302 Found in 77ms (ActiveRecord: 35.6ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 09:25:09 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > 0) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.2ms) Completed 200 OK in 9ms (Views: 3.4ms | ActiveRecord: 1.8ms)  (2.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (6.8ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (4.2ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (46.2ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$aqvSbWQbnZy.VXTag.rnrOIQn6lIikS6tF.2Ep0HdfaUMwbKaYeX."], ["created_at", "2016-10-03 13:25:14.593016"], ["updated_at", "2016-10-03 13:25:14.593016"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 09:25:14 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 09:25:14 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 13:25:14.982421"], ["current_sign_in_at", "2016-10-03 13:25:14.982421"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 13:25:14.983168"], ["id", 1]]  (5.8ms) COMMIT Redirected to http://127.0.0.1:61054/ Completed 302 Found in 13ms (ActiveRecord: 6.7ms) Started GET "/" for 127.0.0.1 at 2016-10-03 09:25:14 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (6.3ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 13:25:15.107348"], ["updated_at", "2016-10-03 13:25:15.107348"]] SQL (0.6ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 13:25:15.107348"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 09:25:15 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.4ms) Completed 200 OK in 7ms (Views: 3.3ms | ActiveRecord: 1.2ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-03 09:25:15 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.1ms) Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 09:25:17 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"test_tok_1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 6ms (Views: 2.2ms | ActiveRecord: 0.8ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (46.0ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (23.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$hAFpnAYXpclgGqWM2qOJROnC07qXbc6VH7Ar7vOZN3cnGlsGk.GL6"], ["created_at", "2016-10-03 13:52:38.625848"], ["updated_at", "2016-10-03 13:52:38.625848"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$HAeS1EZi/33jBFb6O6bOxuiAYmv4WYZF8Vt7JOXYsWOcA1W6x0XQS"], ["created_at", "2016-10-03 13:52:38.657899"], ["updated_at", "2016-10-03 13:52:38.657899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$hyDuiqaT610lDWOr5zly9ujJzi4kQSnPkEEniARVDMa2l0BRDOF0q"], ["created_at", "2016-10-03 13:52:38.663981"], ["updated_at", "2016-10-03 13:52:38.663981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 47ms (Views: 26.6ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$ylSHou4emA7AeQoidpp5UuFYjmyC0BnMMaSRt12XFNBFSmIKDofpm"], ["created_at", "2016-10-03 13:52:38.724256"], ["updated_at", "2016-10-03 13:52:38.724256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$HxD24xt66TqZc5ZJuoD3CugI.pnp1MknYhT4yRPtbB5JZsazrMV.q"], ["created_at", "2016-10-03 13:52:38.729229"], ["updated_at", "2016-10-03 13:52:38.729229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$80CaSeSh359ajHHMAsF3QOTLNiZNE/USD4PwDpLp4vYezjRrYhS.G"], ["created_at", "2016-10-03 13:52:38.738805"], ["updated_at", "2016-10-03 13:52:38.738805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$/nODW3T8f/58CQq8S1OCtOMVlUBuU6vzFdQqWeWvdob/0ioQN./yO"], ["created_at", "2016-10-03 13:52:38.743645"], ["updated_at", "2016-10-03 13:52:38.743645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$4hF8kEYnvTOu8xwYxqLe1e5j1NKIqJPOmjieA2SnEaJCp5za1QWHq"], ["created_at", "2016-10-03 13:52:38.748597"], ["updated_at", "2016-10-03 13:52:38.748597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$LExrtzrzUo5diXSZoK3ISe74zqIHx8oQT/sWSwKBco.Zs8IcM1CNW"], ["created_at", "2016-10-03 13:52:38.753407"], ["updated_at", "2016-10-03 13:52:38.753407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$iEIJ04ZAq.TGQ4zhJCwIYuda4UCZfOeOpu6vZRoIHx8qXv9Mz6RUy"], ["created_at", "2016-10-03 13:52:38.758953"], ["updated_at", "2016-10-03 13:52:38.758953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$gJNVjPZm2n7Sie0ZrDa/LuZxyiTlVHXtrV6L/WSCGGzAb9yZ2lyEK"], ["created_at", "2016-10-03 13:52:38.764149"], ["updated_at", "2016-10-03 13:52:38.764149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$8nDZSClXKAg10oA67/tfiudBo5f2ldeCucmPzbcaGt/bkJ2ziwvDe"], ["created_at", "2016-10-03 13:52:38.768905"], ["updated_at", "2016-10-03 13:52:38.768905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$ngtq3h5CG6eLAC8Q7psRhuVvVyS4LHNMPCRtEANaJwpP21E7ue.Sm"], ["created_at", "2016-10-03 13:52:38.773715"], ["updated_at", "2016-10-03 13:52:38.773715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$pqb563h2Sl/r.jZ5BfU2vuCGlzMW9fh24fETk2znYUdBY2kQ9RCAC"], ["created_at", "2016-10-03 13:52:38.778181"], ["updated_at", "2016-10-03 13:52:38.778181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$P98yCanAkH5XGsXvPTSox.Jl07yTE1ACPPT/xZy5Fw8qmXusaFt2u"], ["created_at", "2016-10-03 13:52:38.784357"], ["updated_at", "2016-10-03 13:52:38.784357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$pCNf1n4vkxxIFu6ElHLMQuRC0uiZspb/p7i7R2zekALByfXaSvPhS"], ["created_at", "2016-10-03 13:52:38.789323"], ["updated_at", "2016-10-03 13:52:38.789323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$RVo0umKXxBHHqr8jmidaB.28M58/2v5nzG6YD2Z3GeUCZgEIGLhl2"], ["created_at", "2016-10-03 13:52:38.795238"], ["updated_at", "2016-10-03 13:52:38.795238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$Ai5G99WcXII.cJvNamydWOHywJyPpt/ReU7eKkqx/wYJlz8mZ6wGW"], ["created_at", "2016-10-03 13:52:38.800233"], ["updated_at", "2016-10-03 13:52:38.800233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$VCPEJp2L6tqQ21PhM3E1hOKancWDEIVgvX6i3cD8LXSQP5nPydHs."], ["created_at", "2016-10-03 13:52:38.805479"], ["updated_at", "2016-10-03 13:52:38.805479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$mKEJoPE7KEa/SP4m1ZRWnOUfPCpVmhlIynLWPRX2wY0IXRbl4YgZq"], ["created_at", "2016-10-03 13:52:38.811433"], ["updated_at", "2016-10-03 13:52:38.811433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$y9aZF1FWouy1HLh0BnnkaOv04oozm82SQYapLV9NiI46e0Z57JJLe"], ["created_at", "2016-10-03 13:52:38.817341"], ["updated_at", "2016-10-03 13:52:38.817341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$YBuQo.yAJ5RSndkoswzfV.hJo1GrJCp4EzJg6OuGKkNE9.vmVS5L6"], ["created_at", "2016-10-03 13:52:38.823959"], ["updated_at", "2016-10-03 13:52:38.823959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$quSuwmPBq0U5wAQjw60tOumf8VX3ZeJ2NhhHrfjQRS9EjNYlUabpS"], ["created_at", "2016-10-03 13:52:38.830358"], ["updated_at", "2016-10-03 13:52:38.830358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$mlTu/tCP4dWn84Ac9InQS.GnjhAQzIwCsRW/oiylt49/cwt11NRJa"], ["created_at", "2016-10-03 13:52:38.836005"], ["updated_at", "2016-10-03 13:52:38.836005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$G1h2JLiMSmOyPasSqt5FJ.r2f2wCHLdSPHKzQZum0nZ2ePWQco9fG"], ["created_at", "2016-10-03 13:52:38.840954"], ["updated_at", "2016-10-03 13:52:38.840954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$nqvaNBGQ5838Me7bQTrsnOGg.u4OpVCgIrGaaLKKodpSTOiYhyY3C"], ["created_at", "2016-10-03 13:52:38.845507"], ["updated_at", "2016-10-03 13:52:38.845507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$URHwMUdlrPkZnH4LG5zqF.zxMJLvK2K4DiPal.jddQc2iulIzT.oK"], ["created_at", "2016-10-03 13:52:38.850311"], ["updated_at", "2016-10-03 13:52:38.850311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '13bb9370-38aa-4673-adfb-a8e2c47a6eae' LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '13bb9370-38aa-4673-adfb-a8e2c47a6eae' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "13bb9370-38aa-4673-adfb-a8e2c47a6eae"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:52:38.862305"], ["updated_at", "2016-10-03 13:52:38.862305"]] SQL (12.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-03 13:52:38.862305"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 16ms (Views: 13.1ms | ActiveRecord: 0.4ms) Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$FTaixHGEGV./s4BmEXFdL.iRBtrSCAHKUuQcKOOGsDpZWgbHTpw3W"], ["created_at", "2016-10-03 13:52:39.380324"], ["updated_at", "2016-10-03 13:52:39.380324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '13bb9370-38aa-4673-adfb-a8e2c47a6eae' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '13bb9370-38aa-4673-adfb-a8e2c47a6eae' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "13bb9370-38aa-4673-adfb-a8e2c47a6eae"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:52:39.383779"], ["updated_at", "2016-10-03 13:52:39.383779"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-03 13:52:39.383779"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 28]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (0.3ms) Completed 200 OK in 12ms (Views: 6.0ms | ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$DBt.oqTpjQzQCSyjpvSk0uXJcyhCwkKUah7gevA.nqc8zd4rIvVYe"], ["created_at", "2016-10-03 13:52:39.772860"], ["updated_at", "2016-10-03 13:52:39.772860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$jsfZgB1bwQ734atRGJVtZ.8jzmJqO9uIP0FMPteQX6O0NBEMpjGFC"], ["created_at", "2016-10-03 13:52:39.788998"], ["updated_at", "2016-10-03 13:52:39.788998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '13bb9370-38aa-4673-adfb-a8e2c47a6eae' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '13bb9370-38aa-4673-adfb-a8e2c47a6eae' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "13bb9370-38aa-4673-adfb-a8e2c47a6eae"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:52:39.793498"], ["updated_at", "2016-10-03 13:52:39.793498"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-03 13:52:39.793498"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#edit as HTML Parameters: {"id"=>"3"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 30]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.2ms) Completed 200 OK in 10ms (Views: 6.8ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 SQL (6.5ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$JovA6VS6SPkhpdkAynLPsuj.XwOGs2a.cn/qpGJMWquHq1L6cvbMG"], ["created_at", "2016-10-03 13:52:40.219193"], ["updated_at", "2016-10-03 13:52:40.219193"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"13bb9370-38aa-4673-adfb-a8e2c47a6eae", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '13bb9370-38aa-4673-adfb-a8e2c47a6eae' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '13bb9370-38aa-4673-adfb-a8e2c47a6eae' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "13bb9370-38aa-4673-adfb-a8e2c47a6eae"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 13:52:40.237471"], ["updated_at", "2016-10-03 13:52:40.237471"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "31"], ["created_at", "2016-10-03 13:52:40.237471"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/4 Completed 302 Found in 370ms (ActiveRecord: 1.3ms)  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$Q6GhmISZlnP5e/H8945Mou1zfmnPJz7BzHBGOg3wI4FV0VqpY7gmK"], ["created_at", "2016-10-03 13:52:40.611221"], ["updated_at", "2016-10-03 13:52:40.611221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"13bb9370-38aa-4673-adfb-a8e2c47a6eae", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]]  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '13bb9370-38aa-4673-adfb-a8e2c47a6eae' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '13bb9370-38aa-4673-adfb-a8e2c47a6eae' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "13bb9370-38aa-4673-adfb-a8e2c47a6eae"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 13:52:40.620907"], ["updated_at", "2016-10-03 13:52:40.620907"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "32"], ["created_at", "2016-10-03 13:52:40.620907"], ["item_id", 5], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/5 Completed 302 Found in 389ms (ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$jmzcjvNcnaWBEFB3ZU7ak.nyYrs/gpdMlUizVCevgXbpV1qXjd2FG"], ["created_at", "2016-10-03 13:52:41.013773"], ["updated_at", "2016-10-03 13:52:41.013773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"13bb9370-38aa-4673-adfb-a8e2c47a6eae", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '13bb9370-38aa-4673-adfb-a8e2c47a6eae' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '13bb9370-38aa-4673-adfb-a8e2c47a6eae' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "13bb9370-38aa-4673-adfb-a8e2c47a6eae"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 13:52:41.023054"], ["updated_at", "2016-10-03 13:52:41.023054"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "33"], ["created_at", "2016-10-03 13:52:41.023054"], ["item_id", 6], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/6 Completed 302 Found in 372ms (ActiveRecord: 1.2ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$5QpQOEaikxxiAJAVKy810.8CkKqd/NLgEU5utH6KosgobHMHolPOO"], ["created_at", "2016-10-03 13:52:41.399449"], ["updated_at", "2016-10-03 13:52:41.399449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"13bb9370-38aa-4673-adfb-a8e2c47a6eae", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '13bb9370-38aa-4673-adfb-a8e2c47a6eae' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.1ms) Completed 200 OK in 18ms (Views: 0.6ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$ax7b1SObNwALY3ulISouZ.7XGpM4ZRd7AZXI1koSu3iDBuH91m3lO"], ["created_at", "2016-10-03 13:52:41.427243"], ["updated_at", "2016-10-03 13:52:41.427243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"13bb9370-38aa-4673-adfb-a8e2c47a6eae", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '13bb9370-38aa-4673-adfb-a8e2c47a6eae' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.0ms) Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$8yn4VJ63MURJnwC4Ur4W.ORQqYzv65xwY2SsIkka7RFiesmIC3Fqq"], ["created_at", "2016-10-03 13:52:41.441455"], ["updated_at", "2016-10-03 13:52:41.441455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '13bb9370-38aa-4673-adfb-a8e2c47a6eae' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '13bb9370-38aa-4673-adfb-a8e2c47a6eae' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "13bb9370-38aa-4673-adfb-a8e2c47a6eae"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:52:41.444413"], ["updated_at", "2016-10-03 13:52:41.444413"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-03 13:52:41.444413"], ["item_id", 7], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$WKsUxqAWku/KqayM5x1I2eFrYxCN8DZnBSIHsm197F0bBgyjdxpAO"], ["created_at", "2016-10-03 13:52:41.829097"], ["updated_at", "2016-10-03 13:52:41.829097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '13bb9370-38aa-4673-adfb-a8e2c47a6eae' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '13bb9370-38aa-4673-adfb-a8e2c47a6eae' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "13bb9370-38aa-4673-adfb-a8e2c47a6eae"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:52:41.832776"], ["updated_at", "2016-10-03 13:52:41.832776"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-03 13:52:41.832776"], ["item_id", 8], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"13bb9370-38aa-4673-adfb-a8e2c47a6eae", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"8"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 37]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 8]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '13bb9370-38aa-4673-adfb-a8e2c47a6eae' AND "tang_plans"."id" != 8) LIMIT 1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '13bb9370-38aa-4673-adfb-a8e2c47a6eae' AND "tang_plans"."id" != 8) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/8 Completed 302 Found in 776ms (ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$XEO7.9smLtNsThySlqnGDegqhfD4VxpEWKFtO6fkGHQex44nhHz9C"], ["created_at", "2016-10-03 13:52:42.995503"], ["updated_at", "2016-10-03 13:52:42.995503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '13bb9370-38aa-4673-adfb-a8e2c47a6eae' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '13bb9370-38aa-4673-adfb-a8e2c47a6eae' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "13bb9370-38aa-4673-adfb-a8e2c47a6eae"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:52:43.000198"], ["updated_at", "2016-10-03 13:52:43.000198"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "37"], ["created_at", "2016-10-03 13:52:43.000198"], ["item_id", 9], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"13bb9370-38aa-4673-adfb-a8e2c47a6eae", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"9"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 38]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 9]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '13bb9370-38aa-4673-adfb-a8e2c47a6eae' AND "tang_plans"."id" != 9) LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '13bb9370-38aa-4673-adfb-a8e2c47a6eae' AND "tang_plans"."id" != 9) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/9 Completed 302 Found in 713ms (ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 SQL (1.8ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$Wyi0o71SywSKIwWaJJwigOxUafyFtHuROwRZkAoS5KAlMGIvJBjVu"], ["created_at", "2016-10-03 13:52:44.115570"], ["updated_at", "2016-10-03 13:52:44.115570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '13bb9370-38aa-4673-adfb-a8e2c47a6eae' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '13bb9370-38aa-4673-adfb-a8e2c47a6eae' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "13bb9370-38aa-4673-adfb-a8e2c47a6eae"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:52:44.121297"], ["updated_at", "2016-10-03 13:52:44.121297"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "38"], ["created_at", "2016-10-03 13:52:44.121297"], ["item_id", 10], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"13bb9370-38aa-4673-adfb-a8e2c47a6eae", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"10"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 39]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 10]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '13bb9370-38aa-4673-adfb-a8e2c47a6eae' AND "tang_plans"."id" != 10) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$89DiDahEn9.NbB2HnsS4selMF/e6J2Xh0T8emw81EZfNoYhUVKJnm"], ["created_at", "2016-10-03 13:52:44.506601"], ["updated_at", "2016-10-03 13:52:44.506601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '13bb9370-38aa-4673-adfb-a8e2c47a6eae' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '13bb9370-38aa-4673-adfb-a8e2c47a6eae' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "13bb9370-38aa-4673-adfb-a8e2c47a6eae"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:52:44.510200"], ["updated_at", "2016-10-03 13:52:44.510200"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "39"], ["created_at", "2016-10-03 13:52:44.510200"], ["item_id", 11], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"13bb9370-38aa-4673-adfb-a8e2c47a6eae", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"11"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 40]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 11]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '13bb9370-38aa-4673-adfb-a8e2c47a6eae' AND "tang_plans"."id" != 11) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 5ms (Views: 0.7ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$X/nqYZUAOCpDsSxHoep4tOdrlK9e4kWcuoq4dugzsbXjSdvjEpnkW"], ["created_at", "2016-10-03 13:52:44.887399"], ["updated_at", "2016-10-03 13:52:44.887399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '13bb9370-38aa-4673-adfb-a8e2c47a6eae' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '13bb9370-38aa-4673-adfb-a8e2c47a6eae' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "13bb9370-38aa-4673-adfb-a8e2c47a6eae"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:52:44.890932"], ["updated_at", "2016-10-03 13:52:44.890932"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "40"], ["created_at", "2016-10-03 13:52:44.890932"], ["item_id", 12], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"12"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 41]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 12]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 12], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 12\nstripe_id: 13bb9370-38aa-4673-adfb-a8e2c47a6eae\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: 0\nhighlight: false\ncreated_at: 2016-10-03 13:52:44.890932000 Z\nupdated_at: 2016-10-03 13:52:44.890932000 Z\n"], ["whodunnit", "41"], ["created_at", "2016-10-03 13:52:45.322804"]] SQL (0.3ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 757ms (ActiveRecord: 1.1ms)  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$HEdLRGps7gQOA7Qphs6yV.XYAwT1HJl8UhpLMr.WlS0rK73tiEzFO"], ["created_at", "2016-10-03 13:52:46.080893"], ["updated_at", "2016-10-03 13:52:46.080893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '13bb9370-38aa-4673-adfb-a8e2c47a6eae' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '13bb9370-38aa-4673-adfb-a8e2c47a6eae' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "13bb9370-38aa-4673-adfb-a8e2c47a6eae"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:52:46.084073"], ["updated_at", "2016-10-03 13:52:46.084073"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "41"], ["created_at", "2016-10-03 13:52:46.084073"], ["item_id", 13], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"13"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 42]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 13]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 13], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 13\nstripe_id: 13bb9370-38aa-4673-adfb-a8e2c47a6eae\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: 0\nhighlight: false\ncreated_at: 2016-10-03 13:52:46.084073000 Z\nupdated_at: 2016-10-03 13:52:46.084073000 Z\n"], ["whodunnit", "42"], ["created_at", "2016-10-03 13:52:46.466252"]] SQL (0.3ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 746ms (ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$dBDvMtRMl2OzEGoGmpgSZuvVlg9scW8.fd7t.jYCIFn0CPyCTnocy"], ["created_at", "2016-10-03 13:52:47.216414"], ["updated_at", "2016-10-03 13:52:47.216414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$UKVhQQOtJCzofkIZi9igMeeH030LX2YtVz8knXw4d6Uc0i2PUwRUO"], ["created_at", "2016-10-03 13:52:47.222300"], ["updated_at", "2016-10-03 13:52:47.222300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$cwpt5r68MS2PZu7/jXdYwuiUPhL2v8J7AT/klRDCDQPQykk0j330m"], ["created_at", "2016-10-03 13:52:47.227202"], ["updated_at", "2016-10-03 13:52:47.227202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$.KU129RdwBXxdCSUwOm6L.6gtd3MgJyz2T9c.Lyu7fGlppCyIfw/2"], ["created_at", "2016-10-03 13:52:47.232122"], ["updated_at", "2016-10-03 13:52:47.232122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$owWZ3AVah8N3ie25340NEuS1ns/F4uyyMuSV3880PUM15c17WuaaG"], ["created_at", "2016-10-03 13:52:47.237032"], ["updated_at", "2016-10-03 13:52:47.237032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$fY7FZAVjlAtxA6mcR5I2aO/4j8RQCZwf4paPjpny5OijuCz.1bhue"], ["created_at", "2016-10-03 13:52:47.241575"], ["updated_at", "2016-10-03 13:52:47.241575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$CBiIf1JOjCRdBrp.N7/QXuqM/h9msOYVyMtfcVNk00W1PO8FoPmxS"], ["created_at", "2016-10-03 13:52:47.246489"], ["updated_at", "2016-10-03 13:52:47.246489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$wm3S1rVDoF3LwxFNWcr.RurpqCJJuEdpGsMUi..lU8aLxLGeHvlpe"], ["created_at", "2016-10-03 13:52:47.251466"], ["updated_at", "2016-10-03 13:52:47.251466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$f2mpY2J7ZVh8XdVPTS3uFO2zjYFuuo5UeHmj3tVi0FpH.cJ9eZ1lK"], ["created_at", "2016-10-03 13:52:47.256682"], ["updated_at", "2016-10-03 13:52:47.256682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$sAi1uMM16aDCwdaEdG2GZup.kRp4okS8BgY0j.xt8tjvXilvUPcJa"], ["created_at", "2016-10-03 13:52:47.261940"], ["updated_at", "2016-10-03 13:52:47.261940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 14ms (Views: 8.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (1.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$qz2gVCR7Yz02X.ggtUqYOuHsEsIhkY8Vj2LD/mOfWuKuH.XZSbw/6"], ["created_at", "2016-10-03 13:52:50.347786"], ["updated_at", "2016-10-03 13:52:50.347786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 09:52:50 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.2ms) Rendered devise/sessions/new.html.erb within layouts/application (36.7ms) Completed 200 OK in 321ms (Views: 308.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 09:52:50 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 13:52:50.705307"], ["current_sign_in_at", "2016-10-03 13:52:50.705307"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 13:52:50.706159"], ["id", 53]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 23ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-03 09:52:50 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Rendered home/index.html.erb within layouts/application (0.6ms) Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 09:52:50 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (11.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (16.4ms) Completed 200 OK in 54ms (Views: 29.9ms | ActiveRecord: 1.5ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 09:52:50 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 13:52:50.856058"], ["updated_at", "2016-10-03 13:52:50.856058"]] SQL (0.6ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "53"], ["created_at", "2016-10-03 13:52:50.856058"], ["item_id", 14], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/14 Completed 302 Found in 858ms (ActiveRecord: 2.9ms) Started GET "/tang/admin/plans/14" for 127.0.0.1 at 2016-10-03 09:52:51 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"14"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 14]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (12.7ms) Completed 200 OK in 22ms (Views: 17.3ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$Ue5xVMY7EBZ8yUAxBQb2QO6hPBaHUaE5TP4Ofqqtw9WkOXyUIm1GG"], ["created_at", "2016-10-03 13:52:51.756618"], ["updated_at", "2016-10-03 13:52:51.756618"]]  (0.9ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 09:52:51 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.9ms) Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 09:52:51 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 13:52:51.783629"], ["current_sign_in_at", "2016-10-03 13:52:51.783629"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 13:52:51.784898"], ["id", 54]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 1.0ms) Started GET "/" for 127.0.0.1 at 2016-10-03 09:52:51 -0400 Processing by HomeController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 09:52:51 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (5.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (6.3ms) Completed 200 OK in 11ms (Views: 8.2ms | ActiveRecord: 0.4ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 09:52:51 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (11.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (12.5ms) Completed 200 OK in 21ms (Views: 15.4ms | ActiveRecord: 0.6ms)  (1.7ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$tAMav6WEOa56ey3P8ceRP.qtIJbXWiBV24Mvrah2OvxLa0Cd7VlIO"], ["created_at", "2016-10-03 13:52:51.911179"], ["updated_at", "2016-10-03 13:52:51.911179"]]  (6.2ms) COMMIT  (0.5ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (2.8ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (19.2ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (2.0ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$aaSfHRhK7ieOGKEsDBqiLuxI0DW.Y9rFR86739x904vFfIIo9Mxv2"], ["created_at", "2016-10-03 13:52:51.968323"], ["updated_at", "2016-10-03 13:52:51.968323"]]  (0.2ms) COMMIT  (0.3ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (46.0ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (1.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$saHxb7qtChl/BDyY9.w3z.uaGgovtw25V1144ijo.hEmj4qdqrJ22"], ["created_at", "2016-10-03 13:53:52.430153"], ["updated_at", "2016-10-03 13:53:52.430153"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$YTzfdWZqp2Mf3jxi0Hbm1uTLE8WawJ4.mjyzh1YCUR9dUBcKzC2Sq"], ["created_at", "2016-10-03 13:53:52.439432"], ["updated_at", "2016-10-03 13:53:52.439432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$cksMPoSA3ZGJPX2lsjHcr.XQVKYuUtkLOIS8/dtvLomd6nHQ84y0a"], ["created_at", "2016-10-03 13:53:52.445798"], ["updated_at", "2016-10-03 13:53:52.445798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 41ms (Views: 25.1ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$ZPy1ZaROBSXPkiMZOl4K.ObSyKI7kjk3KeKs5RsUpHamtldlu6Rl2"], ["created_at", "2016-10-03 13:53:52.498694"], ["updated_at", "2016-10-03 13:53:52.498694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$f9zDKEzHjtTDifXc/PGhC.LCMBPFucrLGHEj8lxhwqeJhDXOf8khS"], ["created_at", "2016-10-03 13:53:52.504803"], ["updated_at", "2016-10-03 13:53:52.504803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$oULhQtavoSxrwA76pYMWveHO0HKA/Ay7otf/pxWChkaxp9D/MnIkG"], ["created_at", "2016-10-03 13:53:52.513275"], ["updated_at", "2016-10-03 13:53:52.513275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$JC.mJFqLIA4WCi5JiW5gNOSfDT08oburWrJ1h.UMuUchVpZFiKEyW"], ["created_at", "2016-10-03 13:53:52.518326"], ["updated_at", "2016-10-03 13:53:52.518326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$.QXt/tvU5gLfOKvuNeB0LOs2gm6SBZbDp0ouAYbRBW8RbgEy2pDLS"], ["created_at", "2016-10-03 13:53:52.523838"], ["updated_at", "2016-10-03 13:53:52.523838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$4o.gpbnPe51HpNZtnXGnvu41S2ZT8faywWbNARIYG3wV2U.5UK.mC"], ["created_at", "2016-10-03 13:53:52.528391"], ["updated_at", "2016-10-03 13:53:52.528391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$6vFF8J.cJx3TPyLkxy5UE.o0jMkBmEXyD4AHTg9BqXIjHHga8vHDi"], ["created_at", "2016-10-03 13:53:52.534622"], ["updated_at", "2016-10-03 13:53:52.534622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$fo3.KBOzSJ5I1MUfDMfK4.h.AapsdLHL8EdMKMESKHpcTSsOAP4i2"], ["created_at", "2016-10-03 13:53:52.539691"], ["updated_at", "2016-10-03 13:53:52.539691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$mJctTZwxBhM89Bh3/uXoouRLAeci3S83/PZhlaKTd7QujdQvO2/jy"], ["created_at", "2016-10-03 13:53:52.544544"], ["updated_at", "2016-10-03 13:53:52.544544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$JsS0E5ElIBtmliMcoT4BT.79HqvP5T9Q4QutX29zt3IQbLP9rKzgS"], ["created_at", "2016-10-03 13:53:52.549110"], ["updated_at", "2016-10-03 13:53:52.549110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$2gK6ajXJdf5Qq7YqWFiEnutAN67BiUwkO.kgLiM0AOzifjZtF4Sm6"], ["created_at", "2016-10-03 13:53:52.553658"], ["updated_at", "2016-10-03 13:53:52.553658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$r6XcNo9D0vmrWknKHqHVyeMEdA594sKKjuSL/RCUkH8oDFOj6L4TG"], ["created_at", "2016-10-03 13:53:52.558445"], ["updated_at", "2016-10-03 13:53:52.558445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$kzXpxp64HNpdUVFx7hHPMOhCG9ckXFiSlSFfN3pq06jdX5ia3BUei"], ["created_at", "2016-10-03 13:53:52.563863"], ["updated_at", "2016-10-03 13:53:52.563863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$OT5oVp38ECzP5TbvPOTrXec2qu1RcUWhYfGok.t17SNa6stQnIPES"], ["created_at", "2016-10-03 13:53:52.569123"], ["updated_at", "2016-10-03 13:53:52.569123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$wyTO2PVN95yvtss4mtccqOemHwip3QhHoxAlWcKqp.gZi/Trf4ICq"], ["created_at", "2016-10-03 13:53:52.573791"], ["updated_at", "2016-10-03 13:53:52.573791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$3phO0vXxdrqf2KrrlCuvneAhd2ARASnvRTWslZISptP70reoSh.7K"], ["created_at", "2016-10-03 13:53:52.578283"], ["updated_at", "2016-10-03 13:53:52.578283"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$TRdI7LYGlivpFjy.aanT0.a8EgXLTveiOrQqpWzigjjHoTnpNK/Ai"], ["created_at", "2016-10-03 13:53:52.583351"], ["updated_at", "2016-10-03 13:53:52.583351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$RD7KLeNIsel.0rrq0Yi3QuBJ59d5w852C3CgfB0SJrCAeim3HKxBe"], ["created_at", "2016-10-03 13:53:52.589007"], ["updated_at", "2016-10-03 13:53:52.589007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$FksHl.rL1GnzdSDunXy5KeY5c39cycWi2w.ho6C8OI2cDSffPrED."], ["created_at", "2016-10-03 13:53:52.594262"], ["updated_at", "2016-10-03 13:53:52.594262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$5g6dYzZ2qBqm9.LxQoB44u2p4jw8rss9tUFcAY/MbIcL09JuRAZGe"], ["created_at", "2016-10-03 13:53:52.598967"], ["updated_at", "2016-10-03 13:53:52.598967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$cktZiv5ECgyaStc5hxAdhOQTtCvbB.p4Qyq7h.beLgYqHMjQAi8oC"], ["created_at", "2016-10-03 13:53:52.604951"], ["updated_at", "2016-10-03 13:53:52.604951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$iiYOO0PLXN0rYdyxC6AxKebiMOsshKeWPGRsMlnbN.ZraEUL/wX4i"], ["created_at", "2016-10-03 13:53:52.610404"], ["updated_at", "2016-10-03 13:53:52.610404"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$2BQ0KjuDqlP51.oiQvqgtOWbJcjNPakgu0mX7Rl7sVoFjcUqe2Z92"], ["created_at", "2016-10-03 13:53:52.615730"], ["updated_at", "2016-10-03 13:53:52.615730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$lX1o8JN0gZqAGJpfFUjawew0c87ZH8Yo2h2YCAzH8Hw6iV81Mtr/i"], ["created_at", "2016-10-03 13:53:52.620956"], ["updated_at", "2016-10-03 13:53:52.620956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98' LIMIT 1 SQL (0.9ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:53:52.635675"], ["updated_at", "2016-10-03 13:53:52.635675"]] SQL (0.7ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-03 13:53:52.635675"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 18ms (Views: 15.2ms | ActiveRecord: 0.3ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$MC5hF.86nKVEbR0fchQl/eebjz/VKZpw3895Z4HJ.vGXdp9hhvUOC"], ["created_at", "2016-10-03 13:53:53.447462"], ["updated_at", "2016-10-03 13:53:53.447462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98' LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:53:53.452402"], ["updated_at", "2016-10-03 13:53:53.452402"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-03 13:53:53.452402"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"2"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 28]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (0.3ms) Completed 200 OK in 9ms (Views: 5.2ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$.kzHMseXDFhDkpQJbmm6ueIC4rAjHAPcjWU7uihDVrnsl8gvlqj6K"], ["created_at", "2016-10-03 13:53:53.839031"], ["updated_at", "2016-10-03 13:53:53.839031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$YP.kSvROq.7503uL4LbdkOwlAel4x8unmkDERUP3wn4IDNtxEGkJS"], ["created_at", "2016-10-03 13:53:53.854499"], ["updated_at", "2016-10-03 13:53:53.854499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:53:53.859048"], ["updated_at", "2016-10-03 13:53:53.859048"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-03 13:53:53.859048"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#edit as HTML Parameters: {"id"=>"3"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 30]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.5ms) Completed 200 OK in 9ms (Views: 6.4ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$hC4lNewiTMm4imfMjt63HuFcjqsxtZQNA0tNSrc6zLDqsbaXJZvna"], ["created_at", "2016-10-03 13:53:54.238102"], ["updated_at", "2016-10-03 13:53:54.238102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 13:53:54.248286"], ["updated_at", "2016-10-03 13:53:54.248286"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "31"], ["created_at", "2016-10-03 13:53:54.248286"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/4 Completed 302 Found in 368ms (ActiveRecord: 1.4ms)  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$ZIP/mMf3AcB4ogwNsHfUm.L6.dXzlpk/J5wTJ1OsZRwnAkp/Fh2ou"], ["created_at", "2016-10-03 13:53:54.617856"], ["updated_at", "2016-10-03 13:53:54.617856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 13:53:54.627761"], ["updated_at", "2016-10-03 13:53:54.627761"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "32"], ["created_at", "2016-10-03 13:53:54.627761"], ["item_id", 5], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/5 Completed 302 Found in 374ms (ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$zbkzcPDV4rnW5JEL9CC/DeG9TTAefJQfViQzBqLFlXTcms3XRc8SC"], ["created_at", "2016-10-03 13:53:55.005284"], ["updated_at", "2016-10-03 13:53:55.005284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]]  (0.3ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 13:53:55.014448"], ["updated_at", "2016-10-03 13:53:55.014448"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "33"], ["created_at", "2016-10-03 13:53:55.014448"], ["item_id", 6], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/6 Completed 302 Found in 360ms (ActiveRecord: 1.5ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$9TKeKB.DOsihjZHP0NdgLe4TbU3Y7cD0A.IJfzBhnrBryrdOqmlHy"], ["created_at", "2016-10-03 13:53:55.380066"], ["updated_at", "2016-10-03 13:53:55.380066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.0ms) Completed 200 OK in 12ms (Views: 0.5ms | ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$33SSyd8a9dLKj7DlShbiw.R/baZyRNhnMMmzakOFWv44/oZYGzOJi"], ["created_at", "2016-10-03 13:53:55.402180"], ["updated_at", "2016-10-03 13:53:55.402180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.0ms) Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$5emCdUMzDet8BSMlZ8XZC.E2rRBdV49AwAgYyvyJ9Xa5w.bUp3.PG"], ["created_at", "2016-10-03 13:53:55.417135"], ["updated_at", "2016-10-03 13:53:55.417135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:53:55.420566"], ["updated_at", "2016-10-03 13:53:55.420566"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-03 13:53:55.420566"], ["item_id", 7], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$CsnW//2omb5X6UrTJouItuZDHIvitLuFTOMxdvJb1/fSzR6ZUTMiy"], ["created_at", "2016-10-03 13:53:55.787223"], ["updated_at", "2016-10-03 13:53:55.787223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:53:55.790412"], ["updated_at", "2016-10-03 13:53:55.790412"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-03 13:53:55.790412"], ["item_id", 8], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"8"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 37]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 8]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98' AND "tang_plans"."id" != 8) LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98' AND "tang_plans"."id" != 8) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/8 Completed 302 Found in 745ms (ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$BsBUhw86cOBdWNUsMB5wg.zqiO/TaEIigINGu0FV6jywSzLd498Tq"], ["created_at", "2016-10-03 13:53:56.913490"], ["updated_at", "2016-10-03 13:53:56.913490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:53:56.917713"], ["updated_at", "2016-10-03 13:53:56.917713"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "37"], ["created_at", "2016-10-03 13:53:56.917713"], ["item_id", 9], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"9"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 38]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 9]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98' AND "tang_plans"."id" != 9) LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98' AND "tang_plans"."id" != 9) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/9 Completed 302 Found in 730ms (ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$/zn/yviKh74HNdw/nYZ5NeATS2NWNsE.DF21ZifpvpcGsjScrPZSC"], ["created_at", "2016-10-03 13:53:58.036355"], ["updated_at", "2016-10-03 13:53:58.036355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:53:58.040053"], ["updated_at", "2016-10-03 13:53:58.040053"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "38"], ["created_at", "2016-10-03 13:53:58.040053"], ["item_id", 10], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"10"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 39]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 10]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98' AND "tang_plans"."id" != 10) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$TicQ9Fx/4CX48CXL9ueGXetC21./kQqK1G039KPD8tLl3AZ1QH4zm"], ["created_at", "2016-10-03 13:53:58.421050"], ["updated_at", "2016-10-03 13:53:58.421050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:53:58.424374"], ["updated_at", "2016-10-03 13:53:58.424374"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "39"], ["created_at", "2016-10-03 13:53:58.424374"], ["item_id", 11], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"11"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 40]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 11]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98' AND "tang_plans"."id" != 11) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.0ms) Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$GfktWV4RaZAD/JhmjsB53eacHHBd8L4ES71xUex5LeJZ8vT0Z68AS"], ["created_at", "2016-10-03 13:53:58.825834"], ["updated_at", "2016-10-03 13:53:58.825834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:53:58.829227"], ["updated_at", "2016-10-03 13:53:58.829227"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "40"], ["created_at", "2016-10-03 13:53:58.829227"], ["item_id", 12], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"12"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 41]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 12]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 12], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 12\nstripe_id: aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: 0\nhighlight: false\ncreated_at: 2016-10-03 13:53:58.829227000 Z\nupdated_at: 2016-10-03 13:53:58.829227000 Z\n"], ["whodunnit", "41"], ["created_at", "2016-10-03 13:53:59.197168"]] SQL (0.2ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 762ms (ActiveRecord: 0.9ms)  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$xgFmqNJEtDI1GFePPVlq6usx8T8QGtX3fhRwH3GR11mhdzrJafT6G"], ["created_at", "2016-10-03 13:53:59.959052"], ["updated_at", "2016-10-03 13:53:59.959052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 13:53:59.962494"], ["updated_at", "2016-10-03 13:53:59.962494"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "41"], ["created_at", "2016-10-03 13:53:59.962494"], ["item_id", 13], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"13"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 42]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 13]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 13], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 13\nstripe_id: aac241d8-0ebb-4ed6-9b3f-2fb876cc4d98\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: 0\nhighlight: false\ncreated_at: 2016-10-03 13:53:59.962494000 Z\nupdated_at: 2016-10-03 13:53:59.962494000 Z\n"], ["whodunnit", "42"], ["created_at", "2016-10-03 13:54:00.347694"]] SQL (0.3ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 762ms (ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$IFLbju1PH53c0HtgQo1yN.mZNQWUl../YJEAQpD7/K1HlA7Npz61m"], ["created_at", "2016-10-03 13:54:01.112918"], ["updated_at", "2016-10-03 13:54:01.112918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$HBjgLgza/Y7FkkWaF27w2.C5XCXjjDgDRGQvC9O0jQeYxjkJ0Nu8G"], ["created_at", "2016-10-03 13:54:01.118822"], ["updated_at", "2016-10-03 13:54:01.118822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$dSxTYlzEhVCxhyib7YPIU.n.qRHlKchwhnF09YGH/P9ypqL3yy2r6"], ["created_at", "2016-10-03 13:54:01.123872"], ["updated_at", "2016-10-03 13:54:01.123872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$7GRIgrYGcPAie96yVQBXPO7bofDAnRUj3QaDMIBGfKcR2tWRzoGM."], ["created_at", "2016-10-03 13:54:01.129513"], ["updated_at", "2016-10-03 13:54:01.129513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$Reo/AgphlanU019AgBniYeo/P8mCAPDkrfYtf.YTrn2WP7vJ5nEGS"], ["created_at", "2016-10-03 13:54:01.135446"], ["updated_at", "2016-10-03 13:54:01.135446"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$iZP2/KGcoRFQOHHwcQfAVeaP7pAqE1v.l6Tsa3/MgmsuRcW7HqmiK"], ["created_at", "2016-10-03 13:54:01.140896"], ["updated_at", "2016-10-03 13:54:01.140896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$VHLFUbr8zExvnkrgYz6e0O95/B7o97nLqUzNJtzD2BlrBlec37VHy"], ["created_at", "2016-10-03 13:54:01.146830"], ["updated_at", "2016-10-03 13:54:01.146830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$DC4Zwt1OPzm.hVa2dJJNUOdbJ4Ki61cYrfF2Uh6/BXzMLVLyO2sle"], ["created_at", "2016-10-03 13:54:01.152659"], ["updated_at", "2016-10-03 13:54:01.152659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$.UXNB6ysrgdRoTUSVjJgne2pr2h0RVhXpIvowgc1RHgMgvRIlj6wq"], ["created_at", "2016-10-03 13:54:01.158874"], ["updated_at", "2016-10-03 13:54:01.158874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$DrI9GJh/zLdggNpLtcL2yO1AtB3vIUP5fqrymvaiEGKwrw2dXaSum"], ["created_at", "2016-10-03 13:54:01.163899"], ["updated_at", "2016-10-03 13:54:01.163899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 14ms (Views: 8.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$qD0oSE4Me8C2XweLF9w.Ruz/L62KZQcJJIOD.HTF1zXKefjPLCckC"], ["created_at", "2016-10-03 13:54:04.339215"], ["updated_at", "2016-10-03 13:54:04.339215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 09:54:04 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.2ms) Rendered devise/sessions/new.html.erb within layouts/application (32.2ms) Completed 200 OK in 314ms (Views: 300.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 09:54:04 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 13:54:04.691923"], ["current_sign_in_at", "2016-10-03 13:54:04.691923"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 13:54:04.692876"], ["id", 53]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 21ms (ActiveRecord: 1.1ms) Started GET "/" for 127.0.0.1 at 2016-10-03 09:54:04 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Rendered home/index.html.erb within layouts/application (0.6ms) Completed 200 OK in 10ms (Views: 7.3ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 09:54:04 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (18.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (22.4ms) Completed 200 OK in 65ms (Views: 36.3ms | ActiveRecord: 1.7ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 09:54:04 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 13:54:04.836469"], ["updated_at", "2016-10-03 13:54:04.836469"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "53"], ["created_at", "2016-10-03 13:54:04.836469"], ["item_id", 14], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/14 Completed 302 Found in 446ms (ActiveRecord: 3.2ms) Started GET "/tang/admin/plans/14" for 127.0.0.1 at 2016-10-03 09:54:05 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"14"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 14]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (11.6ms) Completed 200 OK in 22ms (Views: 17.7ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$1jW.hzTwIkFtKUZywohZWOmxT6M4ZpuUQqt2BWJ6a2qLnwFjGNgmq"], ["created_at", "2016-10-03 13:54:05.323241"], ["updated_at", "2016-10-03 13:54:05.323241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 09:54:05 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.5ms) Rendered devise/sessions/new.html.erb within layouts/application (2.8ms) Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 09:54:05 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (1.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 13:54:05.346075"], ["current_sign_in_at", "2016-10-03 13:54:05.346075"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 13:54:05.346894"], ["id", 54]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 13ms (ActiveRecord: 2.0ms) Started GET "/" for 127.0.0.1 at 2016-10-03 09:54:05 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 09:54:05 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (6.4ms) Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 09:54:05 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (5.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (5.9ms) Completed 200 OK in 12ms (Views: 7.5ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$I.O7gz/IGsGKbfcXVJL6LeqSyZA0LopU/QSBnse4gXzt0c5AmtW2G"], ["created_at", "2016-10-03 13:54:05.445268"], ["updated_at", "2016-10-03 13:54:05.445268"]]  (6.1ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 09:54:08 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (4.1ms) Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-03 09:54:08 -0400 Started GET "/assets/application-ae2f3e9153ab8790e8aa4db3ee24569c31c04e9721cf338869bc8e4f22fac81c.js" for 127.0.0.1 at 2016-10-03 09:54:08 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 09:54:09 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 13:54:09.366234"], ["current_sign_in_at", "2016-10-03 13:54:09.366234"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 13:54:09.367035"], ["id", 55]]  (0.3ms) COMMIT Redirected to http://127.0.0.1:64123/ Completed 302 Found in 12ms (ActiveRecord: 1.5ms) Started GET "/" for 127.0.0.1 at 2016-10-03 09:54:09 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 6ms (Views: 2.9ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 13:54:09.468531"], ["updated_at", "2016-10-03 13:54:09.468531"]] SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 13:54:09.468531"], ["item_id", 15], ["item_type", "Tang::Plan"]]  (44.8ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 09:54:09 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Subscription Load (160.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (98.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (109.1ms) Completed 200 OK in 314ms (Views: 20.8ms | ActiveRecord: 262.0ms) Started GET "/tang/account/subscription/new?plan=15" for 127.0.0.1 at 2016-10-03 09:54:09 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"15"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (4.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (16.2ms) Completed 200 OK in 39ms (Views: 21.5ms | ActiveRecord: 1.9ms)  (2.8ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (33.7ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (94.0ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (36.8ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (38.9ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$1I2/lodQ1HbecCCxdw.sK.pv7O7ftKNi6xe7J3XvfmW.8yuBjhCMa"], ["created_at", "2016-10-03 13:54:17.690141"], ["updated_at", "2016-10-03 13:54:17.690141"]]  (11.1ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 09:54:17 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 09:54:18 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 13:54:18.087326"], ["current_sign_in_at", "2016-10-03 13:54:18.087326"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 13:54:18.087992"], ["id", 1]]  (12.2ms) COMMIT Redirected to http://127.0.0.1:64123/ Completed 302 Found in 19ms (ActiveRecord: 13.1ms) Started GET "/" for 127.0.0.1 at 2016-10-03 09:54:18 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (5.6ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 13:54:18.291048"], ["updated_at", "2016-10-03 13:54:18.291048"]] SQL (17.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 13:54:18.291048"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (11.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 09:54:18 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.5ms) Completed 200 OK in 8ms (Views: 3.4ms | ActiveRecord: 1.5ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-03 09:54:18 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.1ms) Completed 200 OK in 6ms (Views: 2.4ms | ActiveRecord: 0.7ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (49.0ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (22.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$TpWgbcwvtjgO/CNU7euKzuYcfmo.TZzh0Z0ZWQ/3rKv5ZeUVYYew2"], ["created_at", "2016-10-03 14:11:30.081183"], ["updated_at", "2016-10-03 14:11:30.081183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$J5OuVrAIZuzPctEgFSVRo.tTdTQC9K8xbWoC47quO.0p8Da31OvKm"], ["created_at", "2016-10-03 14:11:30.110301"], ["updated_at", "2016-10-03 14:11:30.110301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$0cPRTkx3jyKlWOkqJoyn7ugOcX7JgWWDnO4CG7/ZXSlQ.fiOoKtea"], ["created_at", "2016-10-03 14:11:30.115748"], ["updated_at", "2016-10-03 14:11:30.115748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 46ms (Views: 27.3ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$V.vvMM3vsf9q9J8jD7goPukO2sbPb9VrrkU4tz4NF8ArEa9kvM7im"], ["created_at", "2016-10-03 14:11:30.173960"], ["updated_at", "2016-10-03 14:11:30.173960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$gt/UHT6NJnB9BkqtK8LeeuGbrfukBXUUHJm7d07buwW5p7fveo55e"], ["created_at", "2016-10-03 14:11:30.179172"], ["updated_at", "2016-10-03 14:11:30.179172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$vMLITMlFNDNWiHLL6/W.ZOV5gweQrFqbT/Uq.rmzSOmiFtlRPGqCu"], ["created_at", "2016-10-03 14:11:30.187497"], ["updated_at", "2016-10-03 14:11:30.187497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$Sxj8jm07NYWDxrGLq2Zwm.ButxQcO/z.1FKuH/i/Ho2Z4j0cQjTsG"], ["created_at", "2016-10-03 14:11:30.192325"], ["updated_at", "2016-10-03 14:11:30.192325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$hzarUw.g66o4vdeOiIZOluYX2yasnpkKAp4CxdlIOFdDqmMr0L8mu"], ["created_at", "2016-10-03 14:11:30.197462"], ["updated_at", "2016-10-03 14:11:30.197462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$5zQH4JbKs7b.xWylq9VIe.uMTsrJZMmDZo2cXlofCGsG6tmKGma0W"], ["created_at", "2016-10-03 14:11:30.202157"], ["updated_at", "2016-10-03 14:11:30.202157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$pW5KOzVlj4oVjcSFbPSxl.SHRhv7kDztvjI0reDfSkBlyzWjxPSnm"], ["created_at", "2016-10-03 14:11:30.207854"], ["updated_at", "2016-10-03 14:11:30.207854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$f/sAYSWoVgkQu9av4yd/L.4e0iak0QsRuvTDL/5SQ/7/ru9y3.Tb2"], ["created_at", "2016-10-03 14:11:30.212581"], ["updated_at", "2016-10-03 14:11:30.212581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$XGvornRrYRSZejFrg1845ev7.Tn4GnqVryEVUfL0nkIqMer.TVBFi"], ["created_at", "2016-10-03 14:11:30.217895"], ["updated_at", "2016-10-03 14:11:30.217895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$HZz5NtX8iO6Lpgssj5Dpf.BCjlZizU/RfrWRoJYXOrCIUnjFXzUBW"], ["created_at", "2016-10-03 14:11:30.223260"], ["updated_at", "2016-10-03 14:11:30.223260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$Dw840hnYLe9myW3gMNR.9uxaPbliVaJxeevoeRh3JwuJXHSkyxV0u"], ["created_at", "2016-10-03 14:11:30.228066"], ["updated_at", "2016-10-03 14:11:30.228066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$QHyvZmEvly3BpKGNN5eaTeGLEoesLUjXO0vlYslO72BisuF2a1o8W"], ["created_at", "2016-10-03 14:11:30.233257"], ["updated_at", "2016-10-03 14:11:30.233257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$Ip1zocYG8mZAYGiY7Z.PvO8O1SC0lfCqi/7A.leVUAYS5vhXGM2ea"], ["created_at", "2016-10-03 14:11:30.237990"], ["updated_at", "2016-10-03 14:11:30.237990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$JFi.TV3/jClv0Qr/wEk8H.ZyeFEA4IrVSOgTVK3.FVo7VIXY0FRHu"], ["created_at", "2016-10-03 14:11:30.243299"], ["updated_at", "2016-10-03 14:11:30.243299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$HEDnS1azVtnubpeR/jX6zOhPRbZMgqZokpt8E6Rnxl5XKVogE8QJ6"], ["created_at", "2016-10-03 14:11:30.248393"], ["updated_at", "2016-10-03 14:11:30.248393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$v049UPHKz6JVkio2plljtuSnzEqFu7EMv1pxtlCma/u456bDDGXE2"], ["created_at", "2016-10-03 14:11:30.253283"], ["updated_at", "2016-10-03 14:11:30.253283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$UECCmwU8/gtFcUX9rarLSemoFuqyo051qPr4xBV7gA6mYTJHzmvCO"], ["created_at", "2016-10-03 14:11:30.257945"], ["updated_at", "2016-10-03 14:11:30.257945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$c/5QvJBUl9ocDMJ9nR19IeDrI6H7N97Hfd3GIME3qzsT2x5.TePYC"], ["created_at", "2016-10-03 14:11:30.262523"], ["updated_at", "2016-10-03 14:11:30.262523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$/MAcDCzsW5xc/K5SXbtdVOy7U7fX9MwD.Rj8bWOYy7nwnJphVd6AG"], ["created_at", "2016-10-03 14:11:30.267374"], ["updated_at", "2016-10-03 14:11:30.267374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$qpAvnGJDZarZKHGB579Hf.kp92VUwNYKfLrwzp2Fv8LPmeQT2jhHW"], ["created_at", "2016-10-03 14:11:30.272549"], ["updated_at", "2016-10-03 14:11:30.272549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$aFUFu/QnJdZeL5ac4CLz2eGKsL49eJ3yIjmlmHdjNFBtdUCakcPom"], ["created_at", "2016-10-03 14:11:30.278186"], ["updated_at", "2016-10-03 14:11:30.278186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$eGKCcp3Mfh5iiE0BpoWQROm7dGGv4OVpe4t7ejenLexXqnigPpeRO"], ["created_at", "2016-10-03 14:11:30.284122"], ["updated_at", "2016-10-03 14:11:30.284122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$H5OHI7r7s9GMBJCJEBPtu.IwSPeyeAC8lIJCDZROII7fZ23QuV7.S"], ["created_at", "2016-10-03 14:11:30.289138"], ["updated_at", "2016-10-03 14:11:30.289138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$qSb3A4FvYO1Hv5lEXn2/qeWg/iUoiFZ9cNua254PXzMDAR3BHCmiy"], ["created_at", "2016-10-03 14:11:30.295103"], ["updated_at", "2016-10-03 14:11:30.295103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d' LIMIT 1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 14:11:30.308383"], ["updated_at", "2016-10-03 14:11:30.308383"]] SQL (11.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-03 14:11:30.308383"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 15ms (Views: 12.5ms | ActiveRecord: 0.3ms) Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans"  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$9svXWW7x6dVZkoYaTDf9q.Rz96WGDlM3AYNpq1XN6DlYdCcAR44/6"], ["created_at", "2016-10-03 14:11:31.008841"], ["updated_at", "2016-10-03 14:11:31.008841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 14:11:31.012969"], ["updated_at", "2016-10-03 14:11:31.012969"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-03 14:11:31.012969"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 28]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (0.3ms) Completed 200 OK in 13ms (Views: 6.8ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$7UmS1JbG0kz4roFext9nRewKqAUP/YUFNcni/uH0ZPm0GlkgbXmP6"], ["created_at", "2016-10-03 14:11:31.398850"], ["updated_at", "2016-10-03 14:11:31.398850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$gI2qFmYSWNQ2Tq8SfkoTvuNnIjdF66G0E33671CWJyJTCwIWstgb2"], ["created_at", "2016-10-03 14:11:31.415175"], ["updated_at", "2016-10-03 14:11:31.415175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 14:11:31.419258"], ["updated_at", "2016-10-03 14:11:31.419258"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-03 14:11:31.419258"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#edit as HTML Parameters: {"id"=>"3"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 30]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.4ms) Completed 200 OK in 9ms (Views: 5.9ms | ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$N9gbGOzNLXPJN7bMpAPuc.xapovfajnlXFXpQTN/kPJ4NuDTMaBGS"], ["created_at", "2016-10-03 14:11:31.810882"], ["updated_at", "2016-10-03 14:11:31.810882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d' LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 14:11:31.820524"], ["updated_at", "2016-10-03 14:11:31.820524"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "31"], ["created_at", "2016-10-03 14:11:31.820524"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/4 Completed 302 Found in 456ms (ActiveRecord: 1.5ms)  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$.pZIMlbpj79Qzto33EKVu.PYlNnOQfUFStvy1JNqZHzQjdXnofUQa"], ["created_at", "2016-10-03 14:11:32.278664"], ["updated_at", "2016-10-03 14:11:32.278664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 14:11:32.287518"], ["updated_at", "2016-10-03 14:11:32.287518"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "32"], ["created_at", "2016-10-03 14:11:32.287518"], ["item_id", 5], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/5 Completed 302 Found in 432ms (ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$PYp7qRDSHbNeoEjWrdyU3.wjxmqs/qVi3TXy.dR.8lbbKjXQWJUN."], ["created_at", "2016-10-03 14:11:32.722335"], ["updated_at", "2016-10-03 14:11:32.722335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 14:11:32.730894"], ["updated_at", "2016-10-03 14:11:32.730894"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "33"], ["created_at", "2016-10-03 14:11:32.730894"], ["item_id", 6], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/6 Completed 302 Found in 383ms (ActiveRecord: 1.2ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$3Yx7wtUInVupNd9cyHpQDOx4JyQqsYk6OVEygh8TGKL7WCcXz86/2"], ["created_at", "2016-10-03 14:11:33.118206"], ["updated_at", "2016-10-03 14:11:33.118206"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.0ms) Completed 200 OK in 14ms (Views: 0.5ms | ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$Rsj5AJBzhRp5CKq0RDHzHOwvQwe.qv2AKXki9jthgqVNzXYwQvoPO"], ["created_at", "2016-10-03 14:11:33.142462"], ["updated_at", "2016-10-03 14:11:33.142462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.1ms) Completed 200 OK in 6ms (Views: 0.7ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$7s0O1z8oOvYs5yXCRC3PCe4vboHwNbRFR14WhVZfUQsbLA2jHUar."], ["created_at", "2016-10-03 14:11:33.157635"], ["updated_at", "2016-10-03 14:11:33.157635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 14:11:33.161018"], ["updated_at", "2016-10-03 14:11:33.161018"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-03 14:11:33.161018"], ["item_id", 7], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$DV8Dh.nxz.VdDhAmmJoDDugfTGURVwXCkXTjGHPrm7eN/8NnpdaG2"], ["created_at", "2016-10-03 14:11:33.596488"], ["updated_at", "2016-10-03 14:11:33.596488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 14:11:33.599991"], ["updated_at", "2016-10-03 14:11:33.599991"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-03 14:11:33.599991"], ["item_id", 8], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"8"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 37]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 8]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d' AND "tang_plans"."id" != 8) LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d' AND "tang_plans"."id" != 8) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/8 Completed 302 Found in 787ms (ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$CZR6cBnlhKYWAf3IGzpvfOeitJQl8ijCpOCR3XPJjY1kCczxHmWbq"], ["created_at", "2016-10-03 14:11:34.755334"], ["updated_at", "2016-10-03 14:11:34.755334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 14:11:34.758755"], ["updated_at", "2016-10-03 14:11:34.758755"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "37"], ["created_at", "2016-10-03 14:11:34.758755"], ["item_id", 9], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"9"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 38]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 9]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d' AND "tang_plans"."id" != 9) LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d' AND "tang_plans"."id" != 9) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/9 Completed 302 Found in 758ms (ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$xphmTmMFL48L1Bq93Ny01u4YEnjAGBdmM5XD7RGRy1LX/mhlFzb3i"], ["created_at", "2016-10-03 14:11:35.932964"], ["updated_at", "2016-10-03 14:11:35.932964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 14:11:35.936450"], ["updated_at", "2016-10-03 14:11:35.936450"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "38"], ["created_at", "2016-10-03 14:11:35.936450"], ["item_id", 10], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"10"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 39]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 10]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d' AND "tang_plans"."id" != 10) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 5ms (Views: 0.7ms | ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$.2e6lePu/eIdtLZhCuqoK.atuKb4lzFKR0lv4vQ2B4vnx9c3g8X52"], ["created_at", "2016-10-03 14:11:36.331262"], ["updated_at", "2016-10-03 14:11:36.331262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 14:11:36.334622"], ["updated_at", "2016-10-03 14:11:36.334622"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "39"], ["created_at", "2016-10-03 14:11:36.334622"], ["item_id", 11], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"11"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 40]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 11]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d' AND "tang_plans"."id" != 11) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$kMUUiRqLFN9.TXt6PEukTeEmv2tiq26VKEKx28pDXOiNx1K2UTMaO"], ["created_at", "2016-10-03 14:11:36.722430"], ["updated_at", "2016-10-03 14:11:36.722430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 14:11:36.725716"], ["updated_at", "2016-10-03 14:11:36.725716"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "40"], ["created_at", "2016-10-03 14:11:36.725716"], ["item_id", 12], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"12"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 41]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 12]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 12], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 12\nstripe_id: bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: 0\nhighlight: false\ncreated_at: 2016-10-03 14:11:36.725716000 Z\nupdated_at: 2016-10-03 14:11:36.725716000 Z\n"], ["whodunnit", "41"], ["created_at", "2016-10-03 14:11:37.120464"]] SQL (0.2ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 786ms (ActiveRecord: 1.0ms)  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$d6UK6akXlwMdOD5OV3hI5.ZllOgT6LB/cJM8O2eyQedeKcCkWAQwO"], ["created_at", "2016-10-03 14:11:37.906835"], ["updated_at", "2016-10-03 14:11:37.906835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 14:11:37.910030"], ["updated_at", "2016-10-03 14:11:37.910030"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "41"], ["created_at", "2016-10-03 14:11:37.910030"], ["item_id", 13], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"13"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 42]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 13]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 13], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 13\nstripe_id: bf1a9a8b-fccd-4d1d-81e2-0217c75beb3d\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: 0\nhighlight: false\ncreated_at: 2016-10-03 14:11:37.910030000 Z\nupdated_at: 2016-10-03 14:11:37.910030000 Z\n"], ["whodunnit", "42"], ["created_at", "2016-10-03 14:11:38.306180"]] SQL (0.3ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 729ms (ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$kJrzd2eRepMu6DP3wXBbjONf4R7RsFdwCCFtpl0u93Z1v6TxVEGpq"], ["created_at", "2016-10-03 14:11:39.039294"], ["updated_at", "2016-10-03 14:11:39.039294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$YexMp5mpvrJKL48tis5u7euMYcA6dX408XICcJj4IwFOGg0BmbbHa"], ["created_at", "2016-10-03 14:11:39.044576"], ["updated_at", "2016-10-03 14:11:39.044576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$crcbATTpGOgUnDy0jHvT5ec1XMP1xoesn7lYIUtAr4zXC7q789O8K"], ["created_at", "2016-10-03 14:11:39.050081"], ["updated_at", "2016-10-03 14:11:39.050081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$v6iq.KLXGsQ6MwBiyUhvpei.e50gfV61baD5PVc6aLcf3zEGkiMRC"], ["created_at", "2016-10-03 14:11:39.054893"], ["updated_at", "2016-10-03 14:11:39.054893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$YbOQdfxAGBbJMFW1VclyNOZWUzdmM.qg1HIFZoMRtbiSSalVWeIEm"], ["created_at", "2016-10-03 14:11:39.059195"], ["updated_at", "2016-10-03 14:11:39.059195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$25lbE8N7tCKx2vPsILGi..QnLEXUnH79RwFfdk89CuK6IGf6/HWD6"], ["created_at", "2016-10-03 14:11:39.063469"], ["updated_at", "2016-10-03 14:11:39.063469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$PX8qdG5t9tiD9K.klaWR8O5MYW6YodrMa8Sry5Bjtrya7GyCBjOY."], ["created_at", "2016-10-03 14:11:39.068334"], ["updated_at", "2016-10-03 14:11:39.068334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$cxFTWlPjRvLHfrpxLPcHuO6B0Siti1bc059Z/o5V4uxOxTIu2KHtm"], ["created_at", "2016-10-03 14:11:39.073972"], ["updated_at", "2016-10-03 14:11:39.073972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$zLiUQgOEq5MKa7iQE/Ub1e.T6GS3oA5R7wMJPEhINpwFmY7Mo6Kf."], ["created_at", "2016-10-03 14:11:39.080090"], ["updated_at", "2016-10-03 14:11:39.080090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$JqX7UIwIUrLDld1DWz/P3.Ha/PBO6ylABtw6TqOh81q4.PP1qDvxS"], ["created_at", "2016-10-03 14:11:39.086155"], ["updated_at", "2016-10-03 14:11:39.086155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 17ms (Views: 10.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$GteZNVJs04vdBZvv4eJfmOZq1z3mlP0rLHKE21wf./mimE14QaTza"], ["created_at", "2016-10-03 14:11:42.217243"], ["updated_at", "2016-10-03 14:11:42.217243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:11:42 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (35.8ms) Completed 200 OK in 331ms (Views: 318.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:11:42 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:11:42.583784"], ["current_sign_in_at", "2016-10-03 14:11:42.583784"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:11:42.584801"], ["id", 53]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 21ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:11:42 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 10ms (Views: 7.4ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 10:11:42 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (15.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (19.8ms) Completed 200 OK in 61ms (Views: 33.7ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 10:11:42 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 14:11:42.719383"], ["updated_at", "2016-10-03 14:11:42.719383"]] SQL (0.4ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "53"], ["created_at", "2016-10-03 14:11:42.719383"], ["item_id", 14], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/14 Completed 302 Found in 668ms (ActiveRecord: 3.2ms) Started GET "/tang/admin/plans/14" for 127.0.0.1 at 2016-10-03 10:11:43 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"14"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 14]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (9.2ms) Completed 200 OK in 19ms (Views: 13.7ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$9.0ZvY6nf7Qsf8PkZaDHYeUb6YC7559PPYag9t1GrNxntTQtI3zH6"], ["created_at", "2016-10-03 14:11:43.425019"], ["updated_at", "2016-10-03 14:11:43.425019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:11:43 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:11:43 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:11:43.439186"], ["current_sign_in_at", "2016-10-03 14:11:43.439186"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:11:43.439840"], ["id", 54]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 13ms (ActiveRecord: 1.1ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:11:43 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 10:11:43 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (5.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (6.4ms) Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 10:11:43 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.0ms) Completed 200 OK in 10ms (Views: 5.4ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$hGXSgXHhWoeuxauQeqNXJOxb06blb1p2lF5WJNrIx9aZh0OpOl7lW"], ["created_at", "2016-10-03 14:11:43.539156"], ["updated_at", "2016-10-03 14:11:43.539156"]]  (6.1ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:11:44 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (4.9ms) Completed 200 OK in 10ms (Views: 8.9ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-03 10:11:44 -0400 Started GET "/assets/application-ae2f3e9153ab8790e8aa4db3ee24569c31c04e9721cf338869bc8e4f22fac81c.js" for 127.0.0.1 at 2016-10-03 10:11:44 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:11:45 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:11:45.411725"], ["current_sign_in_at", "2016-10-03 14:11:45.411725"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:11:45.412730"], ["id", 55]]  (0.4ms) COMMIT Redirected to http://127.0.0.1:65510/ Completed 302 Found in 12ms (ActiveRecord: 1.6ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:11:45 -0400 Processing by HomeController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.2ms)  (0.2ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 14:11:45.514022"], ["updated_at", "2016-10-03 14:11:45.514022"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 14:11:45.514022"], ["item_id", 15], ["item_type", "Tang::Plan"]]  (1.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 10:11:45 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (10.5ms) Completed 200 OK in 51ms (Views: 23.8ms | ActiveRecord: 3.6ms) Started GET "/tang/account/subscription/new?plan=15" for 127.0.0.1 at 2016-10-03 10:11:45 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"15"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (7.3ms) Completed 200 OK in 29ms (Views: 13.3ms | ActiveRecord: 2.2ms)  (0.5ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (7.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (36.1ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$.7xwceND5QLQiENa5sJa4O3gYv8njYe.fnNTPR7C69/HrRy5gde/u"], ["created_at", "2016-10-03 14:11:53.414479"], ["updated_at", "2016-10-03 14:11:53.414479"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:11:53 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:11:53 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:11:53.553452"], ["current_sign_in_at", "2016-10-03 14:11:53.553452"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:11:53.554332"], ["id", 1]]  (0.3ms) COMMIT Redirected to http://127.0.0.1:65510/ Completed 302 Found in 7ms (ActiveRecord: 1.4ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:11:53 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 14:11:53.657761"], ["updated_at", "2016-10-03 14:11:53.657761"]] SQL (0.5ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 14:11:53.657761"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 10:11:53 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.5ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.4ms) Completed 200 OK in 7ms (Views: 3.2ms | ActiveRecord: 1.6ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-03 10:11:53 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 0.4ms)  (0.3ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (17.1ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$Pq5eYLRm3kWWb7mYYTu4.O1F6UxowFZW4yFYWS1ShzOPJKXO5vYNy"], ["created_at", "2016-10-03 14:17:41.406628"], ["updated_at", "2016-10-03 14:17:41.406628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:17:41 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.0ms) Rendered devise/sessions/new.html.erb within layouts/application (25.4ms) Completed 200 OK in 423ms (Views: 411.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:17:41 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:17:41.861091"], ["current_sign_in_at", "2016-10-03 14:17:41.861091"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:17:41.861848"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 17ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:17:41 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 11ms (Views: 8.4ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 10:17:41 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (10.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (14.4ms) Completed 200 OK in 63ms (Views: 27.3ms | ActiveRecord: 1.6ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 10:17:41 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (6.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 14:17:41.996609"], ["updated_at", "2016-10-03 14:17:41.996609"]] SQL (0.6ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 14:17:41.996609"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 470ms (ActiveRecord: 9.2ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-03 10:17:42 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (9.6ms) Completed 200 OK in 23ms (Views: 15.3ms | ActiveRecord: 0.5ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$gqk0UzLd9WiarOMeaAX9JOrl9ot0kEdnOaE8XRHNgDTqYziVxUZ5a"], ["created_at", "2016-10-03 14:17:42.508081"], ["updated_at", "2016-10-03 14:17:42.508081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:17:42 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:17:42 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:17:42.523698"], ["current_sign_in_at", "2016-10-03 14:17:42.523698"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:17:42.524410"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:17:42 -0400 Processing by HomeController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 10:17:42 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.6ms) Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 10:17:42 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.7ms) Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$Ud9rRPYVxxcR5rUSY0rHzeKqYv9QCBm/MufVccZzNgR4JLqb7zYPK"], ["created_at", "2016-10-03 14:17:42.595592"], ["updated_at", "2016-10-03 14:17:42.595592"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:17:43 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.2ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-03 10:17:43 -0400 Started GET "/assets/application-623d823b1041ab68bb925caa1ecdfebc706d38c23e7916de72222c0188000282.js" for 127.0.0.1 at 2016-10-03 10:17:43 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:17:44 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:17:44.475830"], ["current_sign_in_at", "2016-10-03 14:17:44.475830"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:17:44.476527"], ["id", 3]]  (1.6ms) COMMIT Redirected to http://127.0.0.1:49507/ Completed 302 Found in 10ms (ActiveRecord: 2.7ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:17:44 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 14:17:44.579302"], ["updated_at", "2016-10-03 14:17:44.579302"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 14:17:44.579302"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (1.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 10:17:44 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (7.5ms) Completed 200 OK in 29ms (Views: 15.9ms | ActiveRecord: 3.5ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-03 10:17:44 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (6.3ms) Completed 200 OK in 21ms (Views: 10.0ms | ActiveRecord: 1.9ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.1ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (16.3ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (2.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.2ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (17.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$P7e1eHllEf5UBKwfeLaSjuBON0FGMchAqR9BIFQVnUVCTmGGe.OkW"], ["created_at", "2016-10-03 14:17:52.401690"], ["updated_at", "2016-10-03 14:17:52.401690"]]  (0.4ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:17:52 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:17:52 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:17:52.553681"], ["current_sign_in_at", "2016-10-03 14:17:52.553681"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:17:52.554291"], ["id", 1]]  (1.6ms) COMMIT Redirected to http://127.0.0.1:49507/ Completed 302 Found in 9ms (ActiveRecord: 2.4ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:17:52 -0400 Processing by HomeController#index as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 14:17:52.656852"], ["updated_at", "2016-10-03 14:17:52.656852"]] SQL (0.5ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 14:17:52.656852"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 10:17:52 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.5ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.7ms) Completed 200 OK in 8ms (Views: 3.6ms | ActiveRecord: 1.6ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-03 10:17:52 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.2ms) Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.5ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (17.0ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$rvYuOWXF6b1EQ.akyZ/DRupcFUC0mdNw9wCWE94yZ74xq6VoR.GhK"], ["created_at", "2016-10-03 14:19:48.272699"], ["updated_at", "2016-10-03 14:19:48.272699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:19:48 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.0ms) Rendered devise/sessions/new.html.erb within layouts/application (27.2ms) Completed 200 OK in 418ms (Views: 404.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:19:48 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:19:48.724465"], ["current_sign_in_at", "2016-10-03 14:19:48.724465"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:19:48.725249"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 24ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:19:48 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered home/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 15ms (Views: 12.7ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 10:19:48 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (13.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (17.1ms) Completed 200 OK in 64ms (Views: 30.7ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 10:19:48 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 14:19:48.882296"], ["updated_at", "2016-10-03 14:19:48.882296"]] SQL (1.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 14:19:48.882296"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 826ms (ActiveRecord: 3.9ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-03 10:19:49 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (8.7ms) Completed 200 OK in 19ms (Views: 13.3ms | ActiveRecord: 0.6ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$CKdk1WCfZlQMKK4p9D6KCu5mZvPpx3Sq5De9oyUgoLJd0iFqUKLuK"], ["created_at", "2016-10-03 14:19:49.753595"], ["updated_at", "2016-10-03 14:19:49.753595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:19:49 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:19:49 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:19:49.767895"], ["current_sign_in_at", "2016-10-03 14:19:49.767895"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:19:49.768769"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 1.0ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:19:49 -0400 Processing by HomeController#index as HTML User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered home/index.html.erb within layouts/application (0.1ms) Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 10:19:49 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.3ms) Completed 200 OK in 9ms (Views: 6.3ms | ActiveRecord: 0.4ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 10:19:49 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (5.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (6.2ms) Completed 200 OK in 15ms (Views: 8.3ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$9eKVc82ktHGFKoyb48x62O4JotZmbIMeFQnxjREgZAIhucS4StoKS"], ["created_at", "2016-10-03 14:19:49.868073"], ["updated_at", "2016-10-03 14:19:49.868073"]]  (7.7ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:19:50 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.6ms) Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-03 10:19:50 -0400 Started GET "/assets/application-e7f142fa55a302414bac9ebfb51f2cdebe4a5288fdc57511565686f44a8e7747.js" for 127.0.0.1 at 2016-10-03 10:19:50 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:19:51 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:19:51.614434"], ["current_sign_in_at", "2016-10-03 14:19:51.614434"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:19:51.615211"], ["id", 3]]  (1.3ms) COMMIT Redirected to http://127.0.0.1:49687/ Completed 302 Found in 10ms (ActiveRecord: 2.5ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:19:51 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 14:19:51.716701"], ["updated_at", "2016-10-03 14:19:51.716701"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 14:19:51.716701"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 10:19:51 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (9.3ms) Completed 200 OK in 33ms (Views: 18.7ms | ActiveRecord: 3.8ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-03 10:19:51 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (7.0ms) Completed 200 OK in 24ms (Views: 10.9ms | ActiveRecord: 2.0ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.1ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (15.4ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (1.8ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.2ms) BEGIN User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$EaiNtWxivAgN0J9I6Gn0EuOGnjt50NAqnkqZtVFjr2UJ97FaS/joK"], ["created_at", "2016-10-03 14:19:59.661995"], ["updated_at", "2016-10-03 14:19:59.661995"]]  (0.2ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:19:59 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:19:59 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:19:59.801540"], ["current_sign_in_at", "2016-10-03 14:19:59.801540"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:19:59.802311"], ["id", 1]]  (0.3ms) COMMIT Redirected to http://127.0.0.1:49687/ Completed 302 Found in 8ms (ActiveRecord: 1.2ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:19:59 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 14:19:59.904703"], ["updated_at", "2016-10-03 14:19:59.904703"]] SQL (0.5ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 14:19:59.904703"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 10:19:59 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.4ms) Completed 200 OK in 7ms (Views: 3.4ms | ActiveRecord: 1.4ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-03 10:20:00 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (1.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 10ms (Views: 5.4ms | ActiveRecord: 0.6ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (16.0ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (3.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$8nZfMMyg1.AMAR0hsj/twuRc4J/f/kfIUsmVUuQ6UJNxJb6JDUbBC"], ["created_at", "2016-10-03 14:21:32.013626"], ["updated_at", "2016-10-03 14:21:32.013626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:21:32 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.3ms) Rendered devise/sessions/new.html.erb within layouts/application (27.5ms) Completed 200 OK in 264ms (Views: 250.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:21:32 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:21:32.314505"], ["current_sign_in_at", "2016-10-03 14:21:32.314505"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:21:32.315280"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:21:32 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 10:21:32 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (10.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (14.6ms) Completed 200 OK in 54ms (Views: 33.5ms | ActiveRecord: 1.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 10:21:32 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 14:21:32.436314"], ["updated_at", "2016-10-03 14:21:32.436314"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 14:21:32.436314"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 472ms (ActiveRecord: 3.8ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-03 10:21:32 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (10.6ms) Completed 200 OK in 23ms (Views: 16.3ms | ActiveRecord: 0.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$vhYiyAOcvgDmhRyieHvEZeACcuHtZ5Cpa3JsRsL9gj2dXJnfqAr9y"], ["created_at", "2016-10-03 14:21:32.952407"], ["updated_at", "2016-10-03 14:21:32.952407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:21:32 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.8ms) Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:21:32 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:21:32.969706"], ["current_sign_in_at", "2016-10-03 14:21:32.969706"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:21:32.970574"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 13ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:21:32 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 10:21:32 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.5ms) Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 10:21:33 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.6ms) Completed 200 OK in 9ms (Views: 5.0ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$9dcRi4Ro6PJ.bBQMEMqKtebIS9XC11Hs/BNvisxjy3M5uNNaWD2Pq"], ["created_at", "2016-10-03 14:21:33.045130"], ["updated_at", "2016-10-03 14:21:33.045130"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:21:33 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.0ms) Rendered devise/sessions/new.html.erb within layouts/application (2.9ms) Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-03 10:21:33 -0400 Started GET "/assets/application-e7f142fa55a302414bac9ebfb51f2cdebe4a5288fdc57511565686f44a8e7747.js" for 127.0.0.1 at 2016-10-03 10:21:33 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:21:34 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:21:34.410090"], ["current_sign_in_at", "2016-10-03 14:21:34.410090"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:21:34.410736"], ["id", 3]]  (1.4ms) COMMIT Redirected to http://127.0.0.1:49808/ Completed 302 Found in 10ms (ActiveRecord: 2.6ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:21:34 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 14:21:34.615860"], ["updated_at", "2016-10-03 14:21:34.615860"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 14:21:34.615860"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (5.9ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 10:21:34 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.5ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (8.0ms) Completed 200 OK in 33ms (Views: 18.8ms | ActiveRecord: 3.8ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-03 10:21:34 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (2.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (5.1ms) Completed 200 OK in 20ms (Views: 8.5ms | ActiveRecord: 1.8ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.0ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (22.3ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$RHxX1piyfJGUXvkX9.EHKOPLgEE2CJmu4aY70qFq.pInTbSLWgnHS"], ["created_at", "2016-10-03 14:21:35.504460"], ["updated_at", "2016-10-03 14:21:35.504460"]]  (0.2ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:21:35 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:21:35 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:21:35.859547"], ["current_sign_in_at", "2016-10-03 14:21:35.859547"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:21:35.860218"], ["id", 1]]  (1.6ms) COMMIT Redirected to http://127.0.0.1:49808/ Completed 302 Found in 9ms (ActiveRecord: 2.5ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:21:35 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 14:21:36.063901"], ["updated_at", "2016-10-03 14:21:36.063901"]] SQL (0.5ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 14:21:36.063901"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.5ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 10:21:36 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.5ms) Completed 200 OK in 8ms (Views: 3.5ms | ActiveRecord: 1.5ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-03 10:21:36 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (16.1ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (1.9ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$uLrpqKP22m9XgHXkGVQl0OmV0AzkGspT2B38W/KppHsc35Ta8CLwe"], ["created_at", "2016-10-03 14:21:53.240402"], ["updated_at", "2016-10-03 14:21:53.240402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:21:53 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.0ms) Rendered devise/sessions/new.html.erb within layouts/application (26.5ms) Completed 200 OK in 263ms (Views: 245.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:21:53 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:21:53.534311"], ["current_sign_in_at", "2016-10-03 14:21:53.534311"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:21:53.535072"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 20ms (ActiveRecord: 1.0ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:21:53 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered home/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 10:21:53 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (10.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (18.8ms) Completed 200 OK in 56ms (Views: 35.2ms | ActiveRecord: 1.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 10:21:53 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 14:21:53.660344"], ["updated_at", "2016-10-03 14:21:53.660344"]] SQL (0.6ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 14:21:53.660344"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 858ms (ActiveRecord: 3.9ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-03 10:21:54 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (10.6ms) Completed 200 OK in 23ms (Views: 16.9ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$rqGV3u/yt.xGC3LO0JppOu2XBpEJD4YtPhYsdigKs2aTN4/tACIU2"], ["created_at", "2016-10-03 14:21:54.561980"], ["updated_at", "2016-10-03 14:21:54.561980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:21:54 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:21:54 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:21:54.576813"], ["current_sign_in_at", "2016-10-03 14:21:54.576813"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:21:54.577554"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:21:54 -0400 Processing by HomeController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 10:21:54 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.8ms) Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 10:21:54 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.4ms) Completed 200 OK in 12ms (Views: 5.8ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$LE.GU/Xh8qWGgpGC8rhtXeu2BdTBErP7F6BDh57f9w.HZqi7RZe2O"], ["created_at", "2016-10-03 14:21:54.660339"], ["updated_at", "2016-10-03 14:21:54.660339"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:21:55 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.6ms) Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-03 10:21:55 -0400 Started GET "/assets/application-e7f142fa55a302414bac9ebfb51f2cdebe4a5288fdc57511565686f44a8e7747.js" for 127.0.0.1 at 2016-10-03 10:21:55 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:21:55 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:21:55.899799"], ["current_sign_in_at", "2016-10-03 14:21:55.899799"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:21:55.900525"], ["id", 3]]  (1.6ms) COMMIT Redirected to http://127.0.0.1:49835/ Completed 302 Found in 11ms (ActiveRecord: 2.9ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:21:55 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 14:21:56.106127"], ["updated_at", "2016-10-03 14:21:56.106127"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 14:21:56.106127"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 10:21:56 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (7.9ms) Completed 200 OK in 29ms (Views: 16.1ms | ActiveRecord: 3.5ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-03 10:21:56 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (2.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (5.4ms) Completed 200 OK in 22ms (Views: 9.3ms | ActiveRecord: 2.1ms)  (0.5ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.0ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (14.9ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.2ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$CJp3DCTkMD/LDLEf8U918uLzvfNw1GsWgbdvX9pvPTOBuZu62Mi6u"], ["created_at", "2016-10-03 14:22:03.864874"], ["updated_at", "2016-10-03 14:22:03.864874"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:22:03 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:22:03 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:22:04.002999"], ["current_sign_in_at", "2016-10-03 14:22:04.002999"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:22:04.003892"], ["id", 1]]  (1.4ms) COMMIT Redirected to http://127.0.0.1:49835/ Completed 302 Found in 9ms (ActiveRecord: 2.4ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:22:04 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 14:22:04.106015"], ["updated_at", "2016-10-03 14:22:04.106015"]] SQL (0.6ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 14:22:04.106015"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 10:22:04 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.4ms) Completed 200 OK in 7ms (Views: 3.4ms | ActiveRecord: 1.4ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-03 10:22:04 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (17.6ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$KpJoKGghdCMiJoMSfkF73ezkx8H.8l.TmE0wYu.o44nKdA2e3RrZu"], ["created_at", "2016-10-03 14:22:56.577509"], ["updated_at", "2016-10-03 14:22:56.577509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:22:56 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (24.9ms) Completed 200 OK in 382ms (Views: 369.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:22:56 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:22:56.992523"], ["current_sign_in_at", "2016-10-03 14:22:56.992523"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:22:56.993260"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 1.0ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:22:57 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 10:22:57 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (9.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (13.0ms) Completed 200 OK in 59ms (Views: 30.7ms | ActiveRecord: 1.8ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 10:22:57 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 14:22:57.125505"], ["updated_at", "2016-10-03 14:22:57.125505"]] SQL (0.6ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 14:22:57.125505"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 870ms (ActiveRecord: 3.4ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-03 10:22:57 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (9.0ms) Completed 200 OK in 22ms (Views: 14.5ms | ActiveRecord: 0.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$6ZiEqRG8uyeSzBrombupmuoUczqSMq475HbDdldKKyFjl3nHucWU6"], ["created_at", "2016-10-03 14:22:58.031735"], ["updated_at", "2016-10-03 14:22:58.031735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:22:58 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.2ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:22:58 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:22:58.047021"], ["current_sign_in_at", "2016-10-03 14:22:58.047021"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:22:58.047784"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:22:58 -0400 Processing by HomeController#index as HTML User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.5ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 10:22:58 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.6ms) Completed 200 OK in 15ms (Views: 12.8ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 10:22:58 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.4ms) Completed 200 OK in 11ms (Views: 6.4ms | ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$JRvZLgp21Hg7b.voZG9RIuw4uIcleIaJ0aYL1hMWGX15qOJHUrPnS"], ["created_at", "2016-10-03 14:22:58.133219"], ["updated_at", "2016-10-03 14:22:58.133219"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:22:58 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.3ms) Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-03 10:22:58 -0400 Started GET "/assets/application-062ce0b10c887625f70e266203b24f7bc1bf6afadc8b3b156b52aa2e87c8947c.js" for 127.0.0.1 at 2016-10-03 10:22:58 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:22:59 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:22:59.604462"], ["current_sign_in_at", "2016-10-03 14:22:59.604462"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:22:59.605116"], ["id", 3]]  (1.4ms) COMMIT Redirected to http://127.0.0.1:49908/ Completed 302 Found in 9ms (ActiveRecord: 2.4ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:22:59 -0400 Processing by HomeController#index as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.4ms)  (0.2ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 14:22:59.711481"], ["updated_at", "2016-10-03 14:22:59.711481"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 14:22:59.711481"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (1.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 10:22:59 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (8.0ms) Completed 200 OK in 30ms (Views: 16.2ms | ActiveRecord: 3.6ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-03 10:22:59 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (2.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (4.9ms) Completed 200 OK in 20ms (Views: 8.4ms | ActiveRecord: 2.0ms)  (0.5ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.4ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (19.2ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (2.2ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$n3tuMj5SJgNaWSn4EJfkZeV8LbHYMH9US/72O39CFYYPpoL/75VSa"], ["created_at", "2016-10-03 14:23:07.568387"], ["updated_at", "2016-10-03 14:23:07.568387"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:23:07 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.8ms) Rendered devise/sessions/new.html.erb within layouts/application (4.4ms) Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:23:07 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:23:07.706610"], ["current_sign_in_at", "2016-10-03 14:23:07.706610"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:23:07.707253"], ["id", 1]]  (1.5ms) COMMIT Redirected to http://127.0.0.1:49908/ Completed 302 Found in 8ms (ActiveRecord: 2.4ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:23:07 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 14:23:07.812605"], ["updated_at", "2016-10-03 14:23:07.812605"]] SQL (0.5ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 14:23:07.812605"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 10:23:07 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.4ms) Completed 200 OK in 8ms (Views: 3.3ms | ActiveRecord: 1.6ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-03 10:23:07 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.3ms) Completed 200 OK in 6ms (Views: 2.8ms | ActiveRecord: 0.5ms)  (0.3ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (17.0ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$8N1BpkFfzp.s12TeQRYn8eTessOq4HHabL8FlXEskVgx0r/agz7SS"], ["created_at", "2016-10-03 14:24:07.256645"], ["updated_at", "2016-10-03 14:24:07.256645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:24:07 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (23.3ms) Completed 200 OK in 381ms (Views: 368.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:24:07 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:24:07.666674"], ["current_sign_in_at", "2016-10-03 14:24:07.666674"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:24:07.667444"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 19ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:24:07 -0400 Processing by HomeController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 10:24:07 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (10.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (14.0ms) Completed 200 OK in 59ms (Views: 26.8ms | ActiveRecord: 1.4ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 10:24:07 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 14:24:07.797267"], ["updated_at", "2016-10-03 14:24:07.797267"]] SQL (0.6ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 14:24:07.797267"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 873ms (ActiveRecord: 3.4ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-03 10:24:08 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (8.3ms) Completed 200 OK in 20ms (Views: 13.0ms | ActiveRecord: 1.2ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$D.HYMB9Wn6w8XXLxCEU4Aux6/PbNx7JNX53U00Z1Zys7KR6CNfVrG"], ["created_at", "2016-10-03 14:24:08.709840"], ["updated_at", "2016-10-03 14:24:08.709840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:24:08 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:24:08 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:24:08.723288"], ["current_sign_in_at", "2016-10-03 14:24:08.723288"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:24:08.724154"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:24:08 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered home/index.html.erb within layouts/application (0.1ms) Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 10:24:08 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.2ms) Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.4ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 10:24:08 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.9ms) Completed 200 OK in 11ms (Views: 5.6ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$rYeFXK//GNjc7be8RYyv3OI5gcwVRNnEP2BIBKKw8K8zdbl3/0BgW"], ["created_at", "2016-10-03 14:24:08.801692"], ["updated_at", "2016-10-03 14:24:08.801692"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:24:09 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.2ms) Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-03 10:24:09 -0400 Started GET "/assets/application-7b14b205e7e92dd6836691efebc2113dbcdb825d7888d2680a19d718f36a2944.js" for 127.0.0.1 at 2016-10-03 10:24:09 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:24:10 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:24:10.693355"], ["current_sign_in_at", "2016-10-03 14:24:10.693355"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:24:10.694029"], ["id", 3]]  (1.7ms) COMMIT Redirected to http://127.0.0.1:50033/ Completed 302 Found in 10ms (ActiveRecord: 2.8ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:24:10 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 14:24:10.797826"], ["updated_at", "2016-10-03 14:24:10.797826"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 14:24:10.797826"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (1.6ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 10:24:10 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.5ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (7.8ms) Completed 200 OK in 31ms (Views: 17.9ms | ActiveRecord: 3.5ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-03 10:24:11 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (2.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (5.4ms) Completed 200 OK in 20ms (Views: 8.8ms | ActiveRecord: 2.0ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.0ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (19.2ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.2ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$RxxZh4pBVkH1VFoStGs5cuxHtQkMkcdK4AXNmWeTDhAIJ9cI56ZFe"], ["created_at", "2016-10-03 14:24:18.788444"], ["updated_at", "2016-10-03 14:24:18.788444"]]  (0.2ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:24:18 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:24:18 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:24:18.931355"], ["current_sign_in_at", "2016-10-03 14:24:18.931355"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:24:18.932138"], ["id", 1]]  (1.6ms) COMMIT Redirected to http://127.0.0.1:50033/ Completed 302 Found in 9ms (ActiveRecord: 2.6ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:24:18 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered home/index.html.erb within layouts/application (0.1ms) Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 14:24:19.033205"], ["updated_at", "2016-10-03 14:24:19.033205"]] SQL (0.6ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 14:24:19.033205"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 10:24:19 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.5ms) Completed 200 OK in 8ms (Views: 3.8ms | ActiveRecord: 1.6ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-03 10:24:19 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms)  (0.3ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (16.3ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (1.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$IMQPCi/ezytkTTdAYgXTVOCTHJNxJnVBeYaLQNWN70qRKrJBSUJXK"], ["created_at", "2016-10-03 14:24:34.520718"], ["updated_at", "2016-10-03 14:24:34.520718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:24:34 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.3ms) Rendered devise/sessions/new.html.erb within layouts/application (23.6ms) Completed 200 OK in 374ms (Views: 360.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:24:34 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:24:34.927892"], ["current_sign_in_at", "2016-10-03 14:24:34.927892"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:24:34.928608"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:24:34 -0400 Processing by HomeController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 10:24:34 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (9.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (13.0ms) Completed 200 OK in 61ms (Views: 26.7ms | ActiveRecord: 1.8ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 10:24:35 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 14:24:35.065237"], ["updated_at", "2016-10-03 14:24:35.065237"]] SQL (0.6ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 14:24:35.065237"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 863ms (ActiveRecord: 3.2ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-03 10:24:35 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (8.6ms) Completed 200 OK in 18ms (Views: 13.1ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$NHIqcuqHUslE13SqEfiN/.OvHtEtEouR4a9eAa/2fNzo10CEz7dNi"], ["created_at", "2016-10-03 14:24:35.967369"], ["updated_at", "2016-10-03 14:24:35.967369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:24:35 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:24:35 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:24:35.980935"], ["current_sign_in_at", "2016-10-03 14:24:35.980935"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:24:35.982004"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:24:35 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 10:24:35 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.1ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.5ms) Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 10:24:36 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.0ms) Completed 200 OK in 11ms (Views: 5.6ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$A.E5yN1FcY/2/I8sWRyazeH8NmmWr.U7/xUM7B67Vtd6NQOBg4dqG"], ["created_at", "2016-10-03 14:24:36.057539"], ["updated_at", "2016-10-03 14:24:36.057539"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:24:36 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.5ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-03 10:24:36 -0400 Started GET "/assets/application-a4096ea684c406402ca13af5b51a583e19446750d36c3e569a413fdbcf946bae.js" for 127.0.0.1 at 2016-10-03 10:24:36 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:24:37 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:24:37.543796"], ["current_sign_in_at", "2016-10-03 14:24:37.543796"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:24:37.544493"], ["id", 3]]  (0.4ms) COMMIT Redirected to http://127.0.0.1:50069/ Completed 302 Found in 8ms (ActiveRecord: 1.4ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:24:37 -0400 Processing by HomeController#index as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 14:24:37.646822"], ["updated_at", "2016-10-03 14:24:37.646822"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 14:24:37.646822"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (1.6ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 10:24:37 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.5ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.5ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (7.6ms) Completed 200 OK in 31ms (Views: 17.6ms | ActiveRecord: 3.8ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-03 10:24:37 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (2.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (4.9ms) Completed 200 OK in 20ms (Views: 8.3ms | ActiveRecord: 2.2ms)  (0.5ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.3ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.0ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (18.3ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.2ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$Dgza6OeCgyyf3CqrgwSoweE5m0JQa81XQn2iCugPDmJziCnBaXgn."], ["created_at", "2016-10-03 14:24:45.541464"], ["updated_at", "2016-10-03 14:24:45.541464"]]  (0.2ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:24:45 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.5ms) Rendered devise/sessions/new.html.erb within layouts/application (3.6ms) Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:24:45 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:24:45.780178"], ["current_sign_in_at", "2016-10-03 14:24:45.780178"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:24:45.781161"], ["id", 1]]  (0.3ms) COMMIT Redirected to http://127.0.0.1:50069/ Completed 302 Found in 9ms (ActiveRecord: 1.5ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:24:45 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 14:24:45.880519"], ["updated_at", "2016-10-03 14:24:45.880519"]] SQL (0.5ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 14:24:45.880519"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.2ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 10:24:45 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.2ms) Completed 200 OK in 8ms (Views: 3.4ms | ActiveRecord: 1.5ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-03 10:24:45 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.3ms) Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.5ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (62.5ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$ItOKCDI6ndE0k.5B3vxhE.mDWtI2aPkHb9U196NgyT1akko3IhGOS"], ["created_at", "2016-10-03 14:26:13.865225"], ["updated_at", "2016-10-03 14:26:13.865225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:26:13 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.0ms) Rendered devise/sessions/new.html.erb within layouts/application (22.8ms) Completed 200 OK in 254ms (Views: 241.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:26:14 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:26:14.147944"], ["current_sign_in_at", "2016-10-03 14:26:14.147944"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:26:14.148725"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 17ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:26:14 -0400 Processing by HomeController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 10:26:14 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (10.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (14.3ms) Completed 200 OK in 53ms (Views: 32.9ms | ActiveRecord: 1.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 10:26:14 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 14:26:14.269953"], ["updated_at", "2016-10-03 14:26:14.269953"]] SQL (0.6ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 14:26:14.269953"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 874ms (ActiveRecord: 3.3ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-03 10:26:15 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (9.8ms) Completed 200 OK in 21ms (Views: 15.5ms | ActiveRecord: 0.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$otoDX8ResTxRmIukz6xPfeFd8g2H5UJ33ACj.cIuJerKgfoqgmD6y"], ["created_at", "2016-10-03 14:26:15.185049"], ["updated_at", "2016-10-03 14:26:15.185049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:26:15 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:26:15 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:26:15.198905"], ["current_sign_in_at", "2016-10-03 14:26:15.198905"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:26:15.199655"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:26:15 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 10:26:15 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.0ms) Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 10:26:15 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.9ms) Completed 200 OK in 13ms (Views: 6.5ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$f2gF0nqxkubUNYpKfa1xjuikrHfiI4P7KPirvLaeUekyIdMTnSOJe"], ["created_at", "2016-10-03 14:26:15.287333"], ["updated_at", "2016-10-03 14:26:15.287333"]]  (0.4ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:26:16 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.2ms) Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-03 10:26:16 -0400 Started GET "/assets/application-a4096ea684c406402ca13af5b51a583e19446750d36c3e569a413fdbcf946bae.js" for 127.0.0.1 at 2016-10-03 10:26:16 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:26:17 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:26:17.298605"], ["current_sign_in_at", "2016-10-03 14:26:17.298605"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:26:17.299380"], ["id", 3]]  (1.4ms) COMMIT Redirected to http://127.0.0.1:50172/ Completed 302 Found in 11ms (ActiveRecord: 2.7ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:26:17 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 14:26:17.374993"], ["updated_at", "2016-10-03 14:26:17.374993"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 14:26:17.374993"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 10:26:17 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.5ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.5ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (8.2ms) Completed 200 OK in 30ms (Views: 16.4ms | ActiveRecord: 3.8ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-03 10:26:17 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (2.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (4.9ms) Completed 200 OK in 20ms (Views: 8.3ms | ActiveRecord: 1.8ms)  (0.4ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.0ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.8ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (20.6ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.7ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$A/Gc470z4PiUipqeFSmuFe52jOwYaxVHn3nl6Q7nkmB0l3bW9PZcC"], ["created_at", "2016-10-03 14:26:17.860715"], ["updated_at", "2016-10-03 14:26:17.860715"]]  (0.2ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:26:17 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:26:18 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:26:18.198562"], ["current_sign_in_at", "2016-10-03 14:26:18.198562"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:26:18.199154"], ["id", 1]]  (1.6ms) COMMIT Redirected to http://127.0.0.1:50172/ Completed 302 Found in 8ms (ActiveRecord: 2.4ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:26:18 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 14:26:18.404261"], ["updated_at", "2016-10-03 14:26:18.404261"]] SQL (0.5ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 14:26:18.404261"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 10:26:18 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.8ms) Completed 200 OK in 8ms (Views: 3.7ms | ActiveRecord: 1.8ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-03 10:26:18 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (0.9ms) Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.6ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (18.0ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.8ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$Wm6msy9.jx0dQuG1etVM/OZJKLLLE6QWCtW/WRhNfzDh9LvFc0msC"], ["created_at", "2016-10-03 14:26:48.349587"], ["updated_at", "2016-10-03 14:26:48.349587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:26:48 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (25.1ms) Completed 200 OK in 260ms (Views: 241.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:26:48 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:26:48.643242"], ["current_sign_in_at", "2016-10-03 14:26:48.643242"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:26:48.644014"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 17ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:26:48 -0400 Processing by HomeController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 10:26:48 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (16.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (20.1ms) Completed 200 OK in 54ms (Views: 34.7ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 10:26:48 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 14:26:48.768526"], ["updated_at", "2016-10-03 14:26:48.768526"]] SQL (0.6ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "1"], ["created_at", "2016-10-03 14:26:48.768526"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/1 Completed 302 Found in 822ms (ActiveRecord: 3.3ms) Started GET "/tang/admin/plans/1" for 127.0.0.1 at 2016-10-03 10:26:49 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (8.2ms) Completed 200 OK in 20ms (Views: 13.6ms | ActiveRecord: 0.6ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$y7N0CyQ/dSL2pZlJCCLEseHINmXA/Di/Fk708ehRsn.0ZC//3GD62"], ["created_at", "2016-10-03 14:26:49.632569"], ["updated_at", "2016-10-03 14:26:49.632569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:26:49 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.2ms) Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:26:49 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:26:49.646921"], ["current_sign_in_at", "2016-10-03 14:26:49.646921"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:26:49.648086"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:26:49 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 10:26:49 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.4ms) Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 10:26:49 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.2ms) Completed 200 OK in 11ms (Views: 5.6ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$E8MRmWOszU1TBJM8xLkXS.0z1qRaK/drSH5vG/.M5NDxNEl0GmCc."], ["created_at", "2016-10-03 14:26:49.733444"], ["updated_at", "2016-10-03 14:26:49.733444"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:26:50 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.3ms) Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-03 10:26:50 -0400 Started GET "/assets/application-a4096ea684c406402ca13af5b51a583e19446750d36c3e569a413fdbcf946bae.js" for 127.0.0.1 at 2016-10-03 10:26:50 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:26:51 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:26:51.207605"], ["current_sign_in_at", "2016-10-03 14:26:51.207605"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:26:51.208383"], ["id", 3]]  (0.4ms) COMMIT Redirected to http://127.0.0.1:50221/ Completed 302 Found in 9ms (ActiveRecord: 1.5ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:26:51 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 14:26:51.311627"], ["updated_at", "2016-10-03 14:26:51.311627"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 14:26:51.311627"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (1.6ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 10:26:51 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.5ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (32.7ms) Completed 200 OK in 57ms (Views: 42.6ms | ActiveRecord: 3.7ms) Started GET "/tang/account/subscription/new?plan=2" for 127.0.0.1 at 2016-10-03 10:26:51 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (6.2ms) Completed 200 OK in 22ms (Views: 10.0ms | ActiveRecord: 2.1ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 10:26:52 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"2"}, "stripe_token"=>"test_tok_1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 3) LIMIT 1 SQL (0.2ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-03 14:26:52.885683"], ["id", 3]]  (6.0ms) COMMIT  (0.1ms) BEGIN Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 3 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (5.0ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 2], ["customer_id", 3], ["stripe_id", "test_su_4"], ["created_at", "2016-10-03 14:26:52.898321"], ["updated_at", "2016-10-03 14:26:52.898321"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-03 14:26:52.898321"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.3ms) COMMIT Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]]  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 3], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 9], ["exp_year", 2018], ["fingerprint", "hrLgWzEscxDirlpO"], ["funding", "credit"], ["last4", "4242"], ["name", "Johnny App"], ["created_at", "2016-10-03 14:26:52.931131"], ["updated_at", "2016-10-03 14:26:52.931131"]]  (0.2ms) COMMIT Redirected to http://127.0.0.1:50221/tang/account/subscription Completed 302 Found in 59ms (ActiveRecord: 16.2ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 10:26:52 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > 0) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 3]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.1ms) Completed 200 OK in 8ms (Views: 3.1ms | ActiveRecord: 1.8ms)  (0.5ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (1.2ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (1.0ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (26.3ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$nvSsPUd7XKhlKuOlcazVKeoI//AgV9yanV.iJUR9inwZFn2VVHIzO"], ["created_at", "2016-10-03 14:26:56.888087"], ["updated_at", "2016-10-03 14:26:56.888087"]]  (0.2ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:26:56 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (3.6ms) Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:26:57 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:26:57.023874"], ["current_sign_in_at", "2016-10-03 14:26:57.023874"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:26:57.024486"], ["id", 1]]  (1.5ms) COMMIT Redirected to http://127.0.0.1:50221/ Completed 302 Found in 8ms (ActiveRecord: 2.4ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:26:57 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 12ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 14:26:57.128718"], ["updated_at", "2016-10-03 14:26:57.128718"]] SQL (0.4ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 14:26:57.128718"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 10:26:57 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.5ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.7ms) Completed 200 OK in 8ms (Views: 3.8ms | ActiveRecord: 1.6ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-03 10:26:57 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.2ms) Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.5ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 10:26:58 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"test_tok_1"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.2ms) Completed 200 OK in 8ms (Views: 2.6ms | ActiveRecord: 1.1ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (25.8ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$u7DOuWgRuD.dTsEIF.t54uq1Wk5m0c6eI8RnrI/aucNhS6zShPu1O"], ["created_at", "2016-10-03 14:28:11.026239"], ["updated_at", "2016-10-03 14:28:11.026239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$QO7AR51SydqcrXaX2HDumeJtKc/DABd8JG7vAskgOip.j3wrOZidO"], ["created_at", "2016-10-03 14:28:11.034315"], ["updated_at", "2016-10-03 14:28:11.034315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$ZP9.OvxL2eBjq/ylr5jx3ugd9V4VkP6.f7OHqk.8p4hPFgIPMnvcW"], ["created_at", "2016-10-03 14:28:11.040243"], ["updated_at", "2016-10-03 14:28:11.040243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 42ms (Views: 24.9ms | ActiveRecord: 1.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$MSKvVAQY36JtBvBnFZdc7eTVAjyRVmk/v1cZiBroop7cqRIAF3eIa"], ["created_at", "2016-10-03 14:28:11.094289"], ["updated_at", "2016-10-03 14:28:11.094289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$U3Uj0hPDodZgswIYre8vcejdAsL211HKUH5bqCUIm1GSYY35.v0f6"], ["created_at", "2016-10-03 14:28:11.099884"], ["updated_at", "2016-10-03 14:28:11.099884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$7YFwMhMd68UEuYe2QLHi1ueMi/WWQ/7AbiLz69N/utlhQelXM61B2"], ["created_at", "2016-10-03 14:28:11.107157"], ["updated_at", "2016-10-03 14:28:11.107157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$BDixU5qkM.9b1/04o1.iYebaTY7QzurzTQsXjhUasZ7QaE2Q7w4TG"], ["created_at", "2016-10-03 14:28:11.111769"], ["updated_at", "2016-10-03 14:28:11.111769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$OEvRmbSwmNUdRSRAJllxNOjtSEctgF8Kfy0i7cGzVSvXL99B/S1by"], ["created_at", "2016-10-03 14:28:11.116654"], ["updated_at", "2016-10-03 14:28:11.116654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$1uhSBTM6sitwGzvsmVOgD.0uh8jEWQ7mcxQd6WVF97nV6SU0zi24e"], ["created_at", "2016-10-03 14:28:11.121646"], ["updated_at", "2016-10-03 14:28:11.121646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$9NRbheCnceaG0KGxjUaiCeLxcs2lYfObXrmNGTWWtHZlhoy.mHZHG"], ["created_at", "2016-10-03 14:28:11.126920"], ["updated_at", "2016-10-03 14:28:11.126920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$WXyGDE64A5BltU1n5FUNm.RHvXCKzahImrcRhLHq.s98LTIG6CuvC"], ["created_at", "2016-10-03 14:28:11.131617"], ["updated_at", "2016-10-03 14:28:11.131617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$P4Yy8took2L9HAIF.u1eJOT1LyXxgwoCQ4NhZUfsFg99T.cj6LwAm"], ["created_at", "2016-10-03 14:28:11.136242"], ["updated_at", "2016-10-03 14:28:11.136242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$vc0qsyIOGSsvE1inh1R8OeJvnY0wvVMZPczdX96tUoSy02OiGViEK"], ["created_at", "2016-10-03 14:28:11.140817"], ["updated_at", "2016-10-03 14:28:11.140817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$UAB40A2S8z.B1AlgdjzLoO9aM/OyIeA8h6.fcurVaBovXnOWvdG2G"], ["created_at", "2016-10-03 14:28:11.145354"], ["updated_at", "2016-10-03 14:28:11.145354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$5aABsD1NH7tYLIp171pM7.Tpf1bxV6lsNZx8OCsl.7EpJkobhYP0i"], ["created_at", "2016-10-03 14:28:11.150048"], ["updated_at", "2016-10-03 14:28:11.150048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$emk9VF0jURzxjG0fdFEzMu0VSRe7pNsNwacgKCshn/L7h1zcXGa9."], ["created_at", "2016-10-03 14:28:11.154600"], ["updated_at", "2016-10-03 14:28:11.154600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$h4XU1sPPSudXGiIIQR/WROYVO2Iu2kHJPljXqvH/cvjKf2OwF2taC"], ["created_at", "2016-10-03 14:28:11.159395"], ["updated_at", "2016-10-03 14:28:11.159395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$RVE9wgOP5U7xuSxySn9JzONJXXDXYYslxFmPjmp3SK1MGOPpBDVQa"], ["created_at", "2016-10-03 14:28:11.164415"], ["updated_at", "2016-10-03 14:28:11.164415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$vMS/n8zwfJ9q.zsHUHPbTOCePJtl8VbVWw9YAq8VFoMRiGWxzng3S"], ["created_at", "2016-10-03 14:28:11.169350"], ["updated_at", "2016-10-03 14:28:11.169350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$GqaIbdU.cZXr2Ows1dQRMOchfRy8WGxpjEq5F8G44vHPSZbP3MwcC"], ["created_at", "2016-10-03 14:28:11.173863"], ["updated_at", "2016-10-03 14:28:11.173863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$UXZk5YlS/0FwCIMsR12bdOI8UDnd96EtjasKkaXnb1i42oB8Zm2HK"], ["created_at", "2016-10-03 14:28:11.178565"], ["updated_at", "2016-10-03 14:28:11.178565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$VzxsHy.bAOOk96Gg4gg6sOch3s671MkJi63Ni8E2dCWRDCTONc3gm"], ["created_at", "2016-10-03 14:28:11.183720"], ["updated_at", "2016-10-03 14:28:11.183720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$/1xVwvn2zgTaMWaw2fmRZ.uT9yBmExAP0Qv0OKLBK6EzJNWS/6G2y"], ["created_at", "2016-10-03 14:28:11.189248"], ["updated_at", "2016-10-03 14:28:11.189248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$hc2LmNr9ey/gqOkyPqTDVe9fYISBdoW8bInPnTyt6uGO4uAl.sO4W"], ["created_at", "2016-10-03 14:28:11.194042"], ["updated_at", "2016-10-03 14:28:11.194042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$6kChNr9.rdVlGJ4LA5YUheaFz74fP.ZEAQW.avAMlJzVhufzLi1Au"], ["created_at", "2016-10-03 14:28:11.198970"], ["updated_at", "2016-10-03 14:28:11.198970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$HrTyGcovUw6iiTmHgc6Mye7aeoqFKqPdcTyQTrGzOIj0bqpHviqSe"], ["created_at", "2016-10-03 14:28:11.204202"], ["updated_at", "2016-10-03 14:28:11.204202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$1oed3ECBhRZLIzcurICPDuqm5Y89jYepzpwWELONFkCtavjzkxvOO"], ["created_at", "2016-10-03 14:28:11.209491"], ["updated_at", "2016-10-03 14:28:11.209491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '501cc907-aa2a-4305-886d-98f280b662bf' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '501cc907-aa2a-4305-886d-98f280b662bf' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "501cc907-aa2a-4305-886d-98f280b662bf"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 14:28:11.222911"], ["updated_at", "2016-10-03 14:28:11.222911"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-03 14:28:11.222911"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 15ms (Views: 13.0ms | ActiveRecord: 0.3ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$d5mkcCc9xLFgYpt801JBlumXIHCNu.pChOE5kWei9VTkrQxME4G4K"], ["created_at", "2016-10-03 14:28:12.110750"], ["updated_at", "2016-10-03 14:28:12.110750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '501cc907-aa2a-4305-886d-98f280b662bf' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '501cc907-aa2a-4305-886d-98f280b662bf' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "501cc907-aa2a-4305-886d-98f280b662bf"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 14:28:12.115213"], ["updated_at", "2016-10-03 14:28:12.115213"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-03 14:28:12.115213"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 28]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (0.2ms) Completed 200 OK in 10ms (Views: 6.4ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$DfsIpjoLXzvPhnGxE0L9QefLUC0L/Xs.wf5k/pzXC.YGa6AEWSkG2"], ["created_at", "2016-10-03 14:28:12.500326"], ["updated_at", "2016-10-03 14:28:12.500326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$11MbEHEvpJoSiP6H1wmQ9OkGCpRFpo8hDoj62RDkr5fw2tziUaXoa"], ["created_at", "2016-10-03 14:28:12.516147"], ["updated_at", "2016-10-03 14:28:12.516147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '501cc907-aa2a-4305-886d-98f280b662bf' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '501cc907-aa2a-4305-886d-98f280b662bf' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "501cc907-aa2a-4305-886d-98f280b662bf"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 14:28:12.519845"], ["updated_at", "2016-10-03 14:28:12.519845"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-03 14:28:12.519845"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#edit as HTML Parameters: {"id"=>"3"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 30]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 9ms (Views: 5.6ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$1Mfc65cqJNW18ij6wlQeAubrUzVqVEZiqzpay5ZJumzsULRusZ1Si"], ["created_at", "2016-10-03 14:28:12.908142"], ["updated_at", "2016-10-03 14:28:12.908142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"501cc907-aa2a-4305-886d-98f280b662bf", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '501cc907-aa2a-4305-886d-98f280b662bf' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '501cc907-aa2a-4305-886d-98f280b662bf' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "501cc907-aa2a-4305-886d-98f280b662bf"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 14:28:12.918517"], ["updated_at", "2016-10-03 14:28:12.918517"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "31"], ["created_at", "2016-10-03 14:28:12.918517"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/4 Completed 302 Found in 378ms (ActiveRecord: 1.4ms)  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$DOfW16zuWjkdsmhyNTvasubK6h28KwofsjZejU4gAZrkwoMEK7/IK"], ["created_at", "2016-10-03 14:28:13.298411"], ["updated_at", "2016-10-03 14:28:13.298411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"501cc907-aa2a-4305-886d-98f280b662bf", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '501cc907-aa2a-4305-886d-98f280b662bf' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '501cc907-aa2a-4305-886d-98f280b662bf' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "501cc907-aa2a-4305-886d-98f280b662bf"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 14:28:13.306468"], ["updated_at", "2016-10-03 14:28:13.306468"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "32"], ["created_at", "2016-10-03 14:28:13.306468"], ["item_id", 5], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/5 Completed 302 Found in 417ms (ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$sBCm6KhNZE4dBxilISQlbO.U.SDYNCuUYPLalJWwImGvTGaJEq.Lu"], ["created_at", "2016-10-03 14:28:13.727296"], ["updated_at", "2016-10-03 14:28:13.727296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"501cc907-aa2a-4305-886d-98f280b662bf", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '501cc907-aa2a-4305-886d-98f280b662bf' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '501cc907-aa2a-4305-886d-98f280b662bf' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "501cc907-aa2a-4305-886d-98f280b662bf"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 14:28:13.736110"], ["updated_at", "2016-10-03 14:28:13.736110"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "33"], ["created_at", "2016-10-03 14:28:13.736110"], ["item_id", 6], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/6 Completed 302 Found in 369ms (ActiveRecord: 1.2ms) Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$psFxVbk0XconHpzToBIfpeNkpb5AK/Pc/LFsFJwxW7ROd2tDJXt1q"], ["created_at", "2016-10-03 14:28:14.110250"], ["updated_at", "2016-10-03 14:28:14.110250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"501cc907-aa2a-4305-886d-98f280b662bf", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '501cc907-aa2a-4305-886d-98f280b662bf' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.0ms) Completed 200 OK in 11ms (Views: 0.6ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$JoiK.tDqD4RyVWTLTn0O4uF7asuq3PisSGKnYn8JBc7XYSGWzylBi"], ["created_at", "2016-10-03 14:28:14.130787"], ["updated_at", "2016-10-03 14:28:14.130787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"501cc907-aa2a-4305-886d-98f280b662bf", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '501cc907-aa2a-4305-886d-98f280b662bf' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.0ms) Completed 200 OK in 6ms (Views: 0.5ms | ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$tlDsf2x9UOuYD0Mxa1JBT.UDUsE3ThnpcCdyGbL.SnaRwfv4z51Y6"], ["created_at", "2016-10-03 14:28:14.147486"], ["updated_at", "2016-10-03 14:28:14.147486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '501cc907-aa2a-4305-886d-98f280b662bf' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '501cc907-aa2a-4305-886d-98f280b662bf' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "501cc907-aa2a-4305-886d-98f280b662bf"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 14:28:14.151020"], ["updated_at", "2016-10-03 14:28:14.151020"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-03 14:28:14.151020"], ["item_id", 7], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$wIirwI0sJZNcs6cCu6ABsuJzRXVq5HAuM8YEYFAo8qo6zj58iiVTm"], ["created_at", "2016-10-03 14:28:14.541681"], ["updated_at", "2016-10-03 14:28:14.541681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '501cc907-aa2a-4305-886d-98f280b662bf' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '501cc907-aa2a-4305-886d-98f280b662bf' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "501cc907-aa2a-4305-886d-98f280b662bf"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 14:28:14.545701"], ["updated_at", "2016-10-03 14:28:14.545701"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-03 14:28:14.545701"], ["item_id", 8], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"501cc907-aa2a-4305-886d-98f280b662bf", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"8"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 37]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 8]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '501cc907-aa2a-4305-886d-98f280b662bf' AND "tang_plans"."id" != 8) LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '501cc907-aa2a-4305-886d-98f280b662bf' AND "tang_plans"."id" != 8) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/8 Completed 302 Found in 711ms (ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$gPXu87xzqJ2wJHUX6shKKuHAL4o3LNJwj9y9F8o9gKp4tPushR1OS"], ["created_at", "2016-10-03 14:28:15.629841"], ["updated_at", "2016-10-03 14:28:15.629841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '501cc907-aa2a-4305-886d-98f280b662bf' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '501cc907-aa2a-4305-886d-98f280b662bf' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "501cc907-aa2a-4305-886d-98f280b662bf"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 14:28:15.633685"], ["updated_at", "2016-10-03 14:28:15.633685"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "37"], ["created_at", "2016-10-03 14:28:15.633685"], ["item_id", 9], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"501cc907-aa2a-4305-886d-98f280b662bf", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"9"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 38]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 9]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '501cc907-aa2a-4305-886d-98f280b662bf' AND "tang_plans"."id" != 9) LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '501cc907-aa2a-4305-886d-98f280b662bf' AND "tang_plans"."id" != 9) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/9 Completed 302 Found in 718ms (ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$4tptemx90Kuf06heKuIe8.SUmmIfXxYOjSSL0BoOrsFuEwRw0mAUq"], ["created_at", "2016-10-03 14:28:16.735353"], ["updated_at", "2016-10-03 14:28:16.735353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '501cc907-aa2a-4305-886d-98f280b662bf' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '501cc907-aa2a-4305-886d-98f280b662bf' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "501cc907-aa2a-4305-886d-98f280b662bf"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 14:28:16.739585"], ["updated_at", "2016-10-03 14:28:16.739585"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "38"], ["created_at", "2016-10-03 14:28:16.739585"], ["item_id", 10], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"501cc907-aa2a-4305-886d-98f280b662bf", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"10"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 39]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 10]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '501cc907-aa2a-4305-886d-98f280b662bf' AND "tang_plans"."id" != 10) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$svBquvtkXxLiFhaw5sscaOBnr/MXqMILDlfCHZkL6bsSHyyuAbQWy"], ["created_at", "2016-10-03 14:28:17.150772"], ["updated_at", "2016-10-03 14:28:17.150772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '501cc907-aa2a-4305-886d-98f280b662bf' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '501cc907-aa2a-4305-886d-98f280b662bf' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "501cc907-aa2a-4305-886d-98f280b662bf"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 14:28:17.154209"], ["updated_at", "2016-10-03 14:28:17.154209"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "39"], ["created_at", "2016-10-03 14:28:17.154209"], ["item_id", 11], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"501cc907-aa2a-4305-886d-98f280b662bf", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"11"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 40]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 11]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '501cc907-aa2a-4305-886d-98f280b662bf' AND "tang_plans"."id" != 11) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 6ms (Views: 0.8ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$hZ4pwxj.D9qOvR1Pwm1qQ.4nxopROWPDIPil9RQhfo3zinQrh5V1u"], ["created_at", "2016-10-03 14:28:17.672284"], ["updated_at", "2016-10-03 14:28:17.672284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '501cc907-aa2a-4305-886d-98f280b662bf' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '501cc907-aa2a-4305-886d-98f280b662bf' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "501cc907-aa2a-4305-886d-98f280b662bf"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 14:28:17.676011"], ["updated_at", "2016-10-03 14:28:17.676011"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "40"], ["created_at", "2016-10-03 14:28:17.676011"], ["item_id", 12], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"12"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 41]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 12]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 12], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 12\nstripe_id: 501cc907-aa2a-4305-886d-98f280b662bf\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: 0\nhighlight: false\ncreated_at: 2016-10-03 14:28:17.676011000 Z\nupdated_at: 2016-10-03 14:28:17.676011000 Z\n"], ["whodunnit", "41"], ["created_at", "2016-10-03 14:28:18.076176"]] SQL (0.2ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 990ms (ActiveRecord: 0.9ms)  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$G2wTg90ivlAC5gnkj/S/oeI4sGP.QCp.kiwpKFedePVxXyiPL4NlK"], ["created_at", "2016-10-03 14:28:19.067867"], ["updated_at", "2016-10-03 14:28:19.067867"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '501cc907-aa2a-4305-886d-98f280b662bf' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '501cc907-aa2a-4305-886d-98f280b662bf' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "501cc907-aa2a-4305-886d-98f280b662bf"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 14:28:19.071897"], ["updated_at", "2016-10-03 14:28:19.071897"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "41"], ["created_at", "2016-10-03 14:28:19.071897"], ["item_id", 13], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"13"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 42]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 13]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 13], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 13\nstripe_id: 501cc907-aa2a-4305-886d-98f280b662bf\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: 0\nhighlight: false\ncreated_at: 2016-10-03 14:28:19.071897000 Z\nupdated_at: 2016-10-03 14:28:19.071897000 Z\n"], ["whodunnit", "42"], ["created_at", "2016-10-03 14:28:19.473223"]] SQL (0.3ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 746ms (ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$UpjZPtSTEb.KaidcXyTR3es4LSjAqZTdPPpaTrJ7pH23KgTi9/0xS"], ["created_at", "2016-10-03 14:28:20.223684"], ["updated_at", "2016-10-03 14:28:20.223684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$eyJSn6TtfRmqyj/0vjg27upCJBTSj/ATW8VPfOXXYtJ8tCWyMWEkG"], ["created_at", "2016-10-03 14:28:20.229481"], ["updated_at", "2016-10-03 14:28:20.229481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$t8EikNYxV7yyP.jXJHBDXehXRqoWUa91pbV2VjcFR8E8Se/fJN6/W"], ["created_at", "2016-10-03 14:28:20.234467"], ["updated_at", "2016-10-03 14:28:20.234467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$UVEkmy/kqmzYS.D8.yACBucnJG6jFbqc1DtaEuH0ohdWZjI1DL.Mi"], ["created_at", "2016-10-03 14:28:20.239466"], ["updated_at", "2016-10-03 14:28:20.239466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$/Nz2619UT1.pg/nHuZ2nyu4r4InPHpboJmdV7ueRGzC1SeNOsduqK"], ["created_at", "2016-10-03 14:28:20.244345"], ["updated_at", "2016-10-03 14:28:20.244345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$EY30sKFU5fdNKiBEWKOzluTrokUM1PMVSniS0sErXFD9PBeUQ5AoC"], ["created_at", "2016-10-03 14:28:20.250450"], ["updated_at", "2016-10-03 14:28:20.250450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$7dx56Uk0SDsRhEg1IXmJOOrvA1r5SrB6rO26jxmv6wagibjX6QPFy"], ["created_at", "2016-10-03 14:28:20.256336"], ["updated_at", "2016-10-03 14:28:20.256336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$Snv.FJz9vwJLtDpsIMida.ERQjTaJjAWt5Z7OPaaK9x0yh4s8s4cq"], ["created_at", "2016-10-03 14:28:20.261345"], ["updated_at", "2016-10-03 14:28:20.261345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$ua2GqARADC99myeBLz1VEeQY1CSydYSGuniOrhFgTZ.C9IchdcOKa"], ["created_at", "2016-10-03 14:28:20.266834"], ["updated_at", "2016-10-03 14:28:20.266834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$nAaF8lMjDIHpQSEuj6zGLOIyycdewj3m/urkPKtBVxh.c59obSVra"], ["created_at", "2016-10-03 14:28:20.271983"], ["updated_at", "2016-10-03 14:28:20.271983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 16ms (Views: 10.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$p/wjLEDa67U6QoIZhtbaE.yfuWKcoNNMRr30uu19dDRiw6t9ydX32"], ["created_at", "2016-10-03 14:28:23.298177"], ["updated_at", "2016-10-03 14:28:23.298177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:28:23 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.3ms) Rendered devise/sessions/new.html.erb within layouts/application (26.4ms) Completed 200 OK in 405ms (Views: 392.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:28:23 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:28:23.737187"], ["current_sign_in_at", "2016-10-03 14:28:23.737187"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:28:23.737977"], ["id", 53]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 21ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:28:23 -0400 Processing by HomeController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 9ms (Views: 6.5ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 10:28:23 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (10.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (13.9ms) Completed 200 OK in 55ms (Views: 27.5ms | ActiveRecord: 1.7ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 10:28:23 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 14:28:23.872440"], ["updated_at", "2016-10-03 14:28:23.872440"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "53"], ["created_at", "2016-10-03 14:28:23.872440"], ["item_id", 14], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/14 Completed 302 Found in 818ms (ActiveRecord: 2.8ms) Started GET "/tang/admin/plans/14" for 127.0.0.1 at 2016-10-03 10:28:24 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"14"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 14]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (6.6ms) Completed 200 OK in 15ms (Views: 10.7ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (3.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$PaFH805HfwnC1O25W3LJv.8gIw7ohoZ5c9XToWo27HC9pN5iKp2du"], ["created_at", "2016-10-03 14:28:24.721671"], ["updated_at", "2016-10-03 14:28:24.721671"]]  (0.9ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:28:24 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (3.5ms) Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:28:24 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:28:24.750836"], ["current_sign_in_at", "2016-10-03 14:28:24.750836"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:28:24.751704"], ["id", 54]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:28:24 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]] Rendered home/index.html.erb within layouts/application (0.1ms) Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 10:28:24 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (5.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (5.5ms) Completed 200 OK in 10ms (Views: 7.5ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 10:28:24 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (13.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (14.4ms) Completed 200 OK in 24ms (Views: 16.6ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.4ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$fXw970LDGvPV/OYFJJAD..YUXnVImrtz7ZPF4a8NUKmMj93/pJBmy"], ["created_at", "2016-10-03 14:28:24.886450"], ["updated_at", "2016-10-03 14:28:24.886450"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:28:26 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (3.2ms) Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-03 10:28:26 -0400 Started GET "/assets/application-ae2f3e9153ab8790e8aa4db3ee24569c31c04e9721cf338869bc8e4f22fac81c.js" for 127.0.0.1 at 2016-10-03 10:28:26 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:28:26 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:28:26.894556"], ["current_sign_in_at", "2016-10-03 14:28:26.894556"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:28:26.895267"], ["id", 55]]  (1.5ms) COMMIT Redirected to http://127.0.0.1:50377/ Completed 302 Found in 13ms (ActiveRecord: 2.7ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:28:26 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 14:28:26.995480"], ["updated_at", "2016-10-03 14:28:26.995480"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 14:28:26.995480"], ["item_id", 15], ["item_type", "Tang::Plan"]]  (1.5ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 10:28:27 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.5ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (11.8ms) Completed 200 OK in 42ms (Views: 20.6ms | ActiveRecord: 10.3ms) Started GET "/tang/account/subscription/new?plan=15" for 127.0.0.1 at 2016-10-03 10:28:27 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"15"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (5.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (8.1ms) Completed 200 OK in 33ms (Views: 11.8ms | ActiveRecord: 8.1ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 10:28:28 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"15"}, "stripe_token"=>"test_tok_1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 55 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 55) LIMIT 1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 55) LIMIT 1 SQL (0.2ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-03 14:28:28.576551"], ["id", 55]]  (1.3ms) COMMIT  (0.1ms) BEGIN Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 55 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (0.6ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 15], ["customer_id", 55], ["stripe_id", "test_su_4"], ["created_at", "2016-10-03 14:28:28.585148"], ["updated_at", "2016-10-03 14:28:28.585148"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "55"], ["created_at", "2016-10-03 14:28:28.585148"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.4ms) COMMIT Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]]  (0.2ms) BEGIN SQL (0.6ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 55], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 9], ["exp_year", 2018], ["fingerprint", "hrLgWzEscxDirlpO"], ["funding", "credit"], ["last4", "4242"], ["name", "Johnny App"], ["created_at", "2016-10-03 14:28:28.613257"], ["updated_at", "2016-10-03 14:28:28.613257"]]  (0.2ms) COMMIT Redirected to http://127.0.0.1:50377/tang/account/subscription Completed 302 Found in 51ms (ActiveRecord: 7.3ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 10:28:28 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Subscription Load (0.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > 0) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (1.8ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (4.6ms) Completed 200 OK in 11ms (Views: 4.0ms | ActiveRecord: 3.4ms)  (0.5ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.2ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (0.9ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (15.8ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.2ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$1MnRsJLH/0laRr9GAvNkve.9NdoZou4YLkOlQs760STz822CbrVuu"], ["created_at", "2016-10-03 14:28:32.565000"], ["updated_at", "2016-10-03 14:28:32.565000"]]  (0.2ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:28:32 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (1.8ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:28:32 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:28:32.802906"], ["current_sign_in_at", "2016-10-03 14:28:32.802906"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:28:32.803602"], ["id", 1]]  (0.4ms) COMMIT Redirected to http://127.0.0.1:50377/ Completed 302 Found in 7ms (ActiveRecord: 1.4ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:28:32 -0400 Processing by HomeController#index as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.4ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 14:28:32.905947"], ["updated_at", "2016-10-03 14:28:32.905947"]] SQL (0.4ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 14:28:32.905947"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.2ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 10:28:32 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (3.0ms) Completed 200 OK in 7ms (Views: 3.7ms | ActiveRecord: 1.4ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-03 10:28:33 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 10:28:33 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"test_tok_1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.4ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.1ms) Completed 200 OK in 7ms (Views: 2.5ms | ActiveRecord: 1.0ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (26.9ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (22.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$ORGNslNy8y/2Ai1t//ZLqO2hgi3KnFNExG2Wly/eyI23nU2u8nq4u"], ["created_at", "2016-10-03 14:51:11.710894"], ["updated_at", "2016-10-03 14:51:11.710894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$/hZ6EiVfJ2Y7/hd0r.HjJeb7Ms53XxiOe5WSow1heLuFc6FUs1MMm"], ["created_at", "2016-10-03 14:51:11.740352"], ["updated_at", "2016-10-03 14:51:11.740352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$9EYFSc7zWk4ZxXujhekDf.9u.fGuEtG1svCntHqAALLMHBDnDhaOO"], ["created_at", "2016-10-03 14:51:11.745835"], ["updated_at", "2016-10-03 14:51:11.745835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.4ms) Completed 200 OK in 49ms (Views: 28.3ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$cPjCBGg8UCrP5UXrLMHFCObaXbC6RCtFqX4CrWqIcwipi6PjovtW."], ["created_at", "2016-10-03 14:51:11.807671"], ["updated_at", "2016-10-03 14:51:11.807671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$VKt6yTSaKoQy/MOYDsboGuWvBxPP7H24EDHl3qRpHWhXLesHWZnrO"], ["created_at", "2016-10-03 14:51:11.813330"], ["updated_at", "2016-10-03 14:51:11.813330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$fA29naZDWMoEXBBGqhVsI.JEQ/c2h8XNxhJYetUZJsyBgelP1TWBy"], ["created_at", "2016-10-03 14:51:11.822570"], ["updated_at", "2016-10-03 14:51:11.822570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$bP0kpbZoIwWi2Ri0gqm0u.YXICt/LkFRBLZkLxOXBnHgXhQtFCzw6"], ["created_at", "2016-10-03 14:51:11.828418"], ["updated_at", "2016-10-03 14:51:11.828418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$3IFgWeM7PyEblqZKb7evpuidQXFWQ/K4BhuqME.gBjgNX0/CoC42q"], ["created_at", "2016-10-03 14:51:11.833743"], ["updated_at", "2016-10-03 14:51:11.833743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$rirfXSGraQtoxoTinks.Teo9IYSmRp0UbpOdDHRm5lEIZeMbZtU7C"], ["created_at", "2016-10-03 14:51:11.839257"], ["updated_at", "2016-10-03 14:51:11.839257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 SQL (2.9ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$SSlEExukQS1GxTE2/ApEa.gOYX1E8w44RDBWRie2oJlA/16qekg0u"], ["created_at", "2016-10-03 14:51:11.844684"], ["updated_at", "2016-10-03 14:51:11.844684"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$EMaqKpJ.WgxH4wjt/IqHTegPAMWBDuPtxLveyOSpK3FTjyZD.j5ba"], ["created_at", "2016-10-03 14:51:11.857799"], ["updated_at", "2016-10-03 14:51:11.857799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$9gAyHXd5Nq4bH4vWxNGeSe3o1ecQnjZQz7J9029DMCxJEwmZd3I5K"], ["created_at", "2016-10-03 14:51:11.866357"], ["updated_at", "2016-10-03 14:51:11.866357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$mFQZyp253I2ryJXyc.Cu3e8TP01AhgFJe.Bu3QPthjhOJgopMuwDi"], ["created_at", "2016-10-03 14:51:11.873023"], ["updated_at", "2016-10-03 14:51:11.873023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$9tGh4O5KdME/cTgP6.QYKOIkX0ElO3yDOPa5B9pU/EETf2Dx3X8Lm"], ["created_at", "2016-10-03 14:51:11.879713"], ["updated_at", "2016-10-03 14:51:11.879713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$ww709lnBSB3qa3sGObBZVu9nb8WGQav0KinB6iaJCkO6bSwwqLrb6"], ["created_at", "2016-10-03 14:51:11.885715"], ["updated_at", "2016-10-03 14:51:11.885715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 SQL (5.8ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$uu9bP/vikQJH7HgCm2uWJuYoFMllyBApH5gfRXHgp3VMkDtSElbYK"], ["created_at", "2016-10-03 14:51:11.893934"], ["updated_at", "2016-10-03 14:51:11.893934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$jNufA60BrSeqU.E99m2q..Ngx3ImpONskRNyMRGfaVaK2ob/7xSw."], ["created_at", "2016-10-03 14:51:11.906333"], ["updated_at", "2016-10-03 14:51:11.906333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$r7lWOPd70yS3M10o7YXsfuv/a8Et8Wr6bCYKApcbEnos6VFFexCSG"], ["created_at", "2016-10-03 14:51:11.912114"], ["updated_at", "2016-10-03 14:51:11.912114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$mfxug31GQMMV.lufvB7vpuBT.JXor0pLCG4Y5vVF1RrhcaGhY0NY2"], ["created_at", "2016-10-03 14:51:11.917556"], ["updated_at", "2016-10-03 14:51:11.917556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$ZtiCRGKzG0vE9o/7dLMScui7suPbZHSk.QCyHIqPJXfVOWhIBzNUq"], ["created_at", "2016-10-03 14:51:11.923451"], ["updated_at", "2016-10-03 14:51:11.923451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$1y1oQ55ydpaV2fIRYlTOeuMi31tKcx7fHHwpkcXtL0UGMoNGAWYpW"], ["created_at", "2016-10-03 14:51:11.929283"], ["updated_at", "2016-10-03 14:51:11.929283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$6NY7.EymiWl0RpCmPaMBgO/GcKaHpqfXqdEs8v7zacUtmDfGXXL4e"], ["created_at", "2016-10-03 14:51:11.935049"], ["updated_at", "2016-10-03 14:51:11.935049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$AaDxMazOArMG0RliDAbSIOiJdjEhgVG8YouWzL1jM.xnu6WkqrZ7m"], ["created_at", "2016-10-03 14:51:11.940511"], ["updated_at", "2016-10-03 14:51:11.940511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$HCjSuvSbRmu64Ukl.UMy7.4yLBaCZjJsS8989YVblprjPWXoEcN0u"], ["created_at", "2016-10-03 14:51:11.945938"], ["updated_at", "2016-10-03 14:51:11.945938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$S6M6tYi4va8TIoLHR9PiPOIq2Hoj3WvQA5iQG17qgaVDKh0cFLk3i"], ["created_at", "2016-10-03 14:51:11.952180"], ["updated_at", "2016-10-03 14:51:11.952180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$ClQe/VmiTq6D5tu9UdTIqOtpxgmETxodqLaukjwcsYl4O5cGPsOlK"], ["created_at", "2016-10-03 14:51:11.958275"], ["updated_at", "2016-10-03 14:51:11.958275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$As0Z2nQQ7wvrNg2kN1xqOetax8rsntR77cZW0vDIN7gTceXKUWkxe"], ["created_at", "2016-10-03 14:51:11.963813"], ["updated_at", "2016-10-03 14:51:11.963813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8a2ea23-b19c-4b6a-85e2-46137f2cfcda' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8a2ea23-b19c-4b6a-85e2-46137f2cfcda' LIMIT 1 SQL (5.6ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b8a2ea23-b19c-4b6a-85e2-46137f2cfcda"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 14:51:11.976552"], ["updated_at", "2016-10-03 14:51:11.976552"]] SQL (35.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-03 14:51:11.976552"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 17ms (Views: 14.5ms | ActiveRecord: 0.3ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans"  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$mslVifz24jp8us5YO1GjPOJwKpS7VKvBgL66UPSL7KB8QV9e45bby"], ["created_at", "2016-10-03 14:51:12.753529"], ["updated_at", "2016-10-03 14:51:12.753529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8a2ea23-b19c-4b6a-85e2-46137f2cfcda' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8a2ea23-b19c-4b6a-85e2-46137f2cfcda' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b8a2ea23-b19c-4b6a-85e2-46137f2cfcda"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 14:51:12.757869"], ["updated_at", "2016-10-03 14:51:12.757869"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-03 14:51:12.757869"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 28]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (0.2ms) Completed 200 OK in 11ms (Views: 5.5ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$IEIrCgbSpm7ib2r0bUctqOg8EqW6SESWs.j9u9cFJZkSQGuqXgcs6"], ["created_at", "2016-10-03 14:51:13.829387"], ["updated_at", "2016-10-03 14:51:13.829387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$XsYwz3nysdEisSN8nv7O.uFdYe2C8xajz2rsnLWJtzTX/unOXWqWO"], ["created_at", "2016-10-03 14:51:13.847562"], ["updated_at", "2016-10-03 14:51:13.847562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8a2ea23-b19c-4b6a-85e2-46137f2cfcda' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8a2ea23-b19c-4b6a-85e2-46137f2cfcda' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b8a2ea23-b19c-4b6a-85e2-46137f2cfcda"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 14:51:13.851657"], ["updated_at", "2016-10-03 14:51:13.851657"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-03 14:51:13.851657"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#edit as HTML Parameters: {"id"=>"3"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 30]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.2ms) Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$6lgM1wRsvDMQHypzGx8RI.2IhuaX1zjg8evyS9teeukiXKW58RLfm"], ["created_at", "2016-10-03 14:51:14.259899"], ["updated_at", "2016-10-03 14:51:14.259899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"b8a2ea23-b19c-4b6a-85e2-46137f2cfcda", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8a2ea23-b19c-4b6a-85e2-46137f2cfcda' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8a2ea23-b19c-4b6a-85e2-46137f2cfcda' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b8a2ea23-b19c-4b6a-85e2-46137f2cfcda"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 14:51:14.270013"], ["updated_at", "2016-10-03 14:51:14.270013"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "31"], ["created_at", "2016-10-03 14:51:14.270013"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/4 Completed 302 Found in 372ms (ActiveRecord: 1.3ms)  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$QA5wqfE4RBKXrQ9Q5S0zC.2LToaHlBztFAPTDlKVOtjzycNS5uqlu"], ["created_at", "2016-10-03 14:51:14.644890"], ["updated_at", "2016-10-03 14:51:14.644890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"b8a2ea23-b19c-4b6a-85e2-46137f2cfcda", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8a2ea23-b19c-4b6a-85e2-46137f2cfcda' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8a2ea23-b19c-4b6a-85e2-46137f2cfcda' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b8a2ea23-b19c-4b6a-85e2-46137f2cfcda"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 14:51:14.654488"], ["updated_at", "2016-10-03 14:51:14.654488"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "32"], ["created_at", "2016-10-03 14:51:14.654488"], ["item_id", 5], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/5 Completed 302 Found in 511ms (ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$uuBCjtxup.7MhTi6IJDF0uengu4dodD/ipWKTm.E/0TKxdfnkQt.S"], ["created_at", "2016-10-03 14:51:15.170005"], ["updated_at", "2016-10-03 14:51:15.170005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"b8a2ea23-b19c-4b6a-85e2-46137f2cfcda", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8a2ea23-b19c-4b6a-85e2-46137f2cfcda' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8a2ea23-b19c-4b6a-85e2-46137f2cfcda' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b8a2ea23-b19c-4b6a-85e2-46137f2cfcda"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 14:51:15.179172"], ["updated_at", "2016-10-03 14:51:15.179172"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "33"], ["created_at", "2016-10-03 14:51:15.179172"], ["item_id", 6], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/6 Completed 302 Found in 380ms (ActiveRecord: 1.4ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$CnlS/ws3eIofGZ18nsK5y.M4BSxR7TdUkiMEGzfROQvEskLBprlx."], ["created_at", "2016-10-03 14:51:15.564514"], ["updated_at", "2016-10-03 14:51:15.564514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"b8a2ea23-b19c-4b6a-85e2-46137f2cfcda", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8a2ea23-b19c-4b6a-85e2-46137f2cfcda' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.1ms) Completed 200 OK in 17ms (Views: 0.8ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$MwMmFhQM4Sw6PDZ9Dqg9r.bYbvRPYxI/QhHDtl8pZTpOK5QVGdGwu"], ["created_at", "2016-10-03 14:51:15.591512"], ["updated_at", "2016-10-03 14:51:15.591512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"b8a2ea23-b19c-4b6a-85e2-46137f2cfcda", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8a2ea23-b19c-4b6a-85e2-46137f2cfcda' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.1ms) Completed 200 OK in 6ms (Views: 0.8ms | ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 SQL (2.0ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$I5nz5Lut5.I5CBrVNdIyeur.ZnB3RDtWSsT4GAsQ4RgQ9wNeGQ.7q"], ["created_at", "2016-10-03 14:51:15.608402"], ["updated_at", "2016-10-03 14:51:15.608402"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8a2ea23-b19c-4b6a-85e2-46137f2cfcda' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8a2ea23-b19c-4b6a-85e2-46137f2cfcda' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b8a2ea23-b19c-4b6a-85e2-46137f2cfcda"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 14:51:15.614513"], ["updated_at", "2016-10-03 14:51:15.614513"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-03 14:51:15.614513"], ["item_id", 7], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$A8gkiXvrBfkNiugVGbrIxe6Z8cP0NDir9xiYVJ1kvwDF1gwTduQ02"], ["created_at", "2016-10-03 14:51:16.005094"], ["updated_at", "2016-10-03 14:51:16.005094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8a2ea23-b19c-4b6a-85e2-46137f2cfcda' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8a2ea23-b19c-4b6a-85e2-46137f2cfcda' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b8a2ea23-b19c-4b6a-85e2-46137f2cfcda"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 14:51:16.009064"], ["updated_at", "2016-10-03 14:51:16.009064"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-03 14:51:16.009064"], ["item_id", 8], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"b8a2ea23-b19c-4b6a-85e2-46137f2cfcda", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"8"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 37]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 8]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'b8a2ea23-b19c-4b6a-85e2-46137f2cfcda' AND "tang_plans"."id" != 8) LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'b8a2ea23-b19c-4b6a-85e2-46137f2cfcda' AND "tang_plans"."id" != 8) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/8 Completed 302 Found in 716ms (ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$NyoPmZ6TmkgtG6yJ9iOvKuwayuR7UB0LGTdcZdFT1oHBTUmlF7aQe"], ["created_at", "2016-10-03 14:51:17.099398"], ["updated_at", "2016-10-03 14:51:17.099398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8a2ea23-b19c-4b6a-85e2-46137f2cfcda' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8a2ea23-b19c-4b6a-85e2-46137f2cfcda' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b8a2ea23-b19c-4b6a-85e2-46137f2cfcda"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 14:51:17.103478"], ["updated_at", "2016-10-03 14:51:17.103478"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "37"], ["created_at", "2016-10-03 14:51:17.103478"], ["item_id", 9], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"b8a2ea23-b19c-4b6a-85e2-46137f2cfcda", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"9"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 38]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 9]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'b8a2ea23-b19c-4b6a-85e2-46137f2cfcda' AND "tang_plans"."id" != 9) LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'b8a2ea23-b19c-4b6a-85e2-46137f2cfcda' AND "tang_plans"."id" != 9) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/9 Completed 302 Found in 743ms (ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$QAzgB5XLp3nCqfxxe5UnN.32KnvJa4EEABgkDR2ZqqPnaBfTiIeq."], ["created_at", "2016-10-03 14:51:18.216801"], ["updated_at", "2016-10-03 14:51:18.216801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8a2ea23-b19c-4b6a-85e2-46137f2cfcda' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8a2ea23-b19c-4b6a-85e2-46137f2cfcda' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b8a2ea23-b19c-4b6a-85e2-46137f2cfcda"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 14:51:18.220015"], ["updated_at", "2016-10-03 14:51:18.220015"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "38"], ["created_at", "2016-10-03 14:51:18.220015"], ["item_id", 10], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"b8a2ea23-b19c-4b6a-85e2-46137f2cfcda", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"10"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 39]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 10]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'b8a2ea23-b19c-4b6a-85e2-46137f2cfcda' AND "tang_plans"."id" != 10) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$L7k/vgdCn9uTKKblmz1FqO4.okrxp/mmMUpTsXMZ/INR7isYXPI8e"], ["created_at", "2016-10-03 14:51:18.596440"], ["updated_at", "2016-10-03 14:51:18.596440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8a2ea23-b19c-4b6a-85e2-46137f2cfcda' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8a2ea23-b19c-4b6a-85e2-46137f2cfcda' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b8a2ea23-b19c-4b6a-85e2-46137f2cfcda"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 14:51:18.599833"], ["updated_at", "2016-10-03 14:51:18.599833"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "39"], ["created_at", "2016-10-03 14:51:18.599833"], ["item_id", 11], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"b8a2ea23-b19c-4b6a-85e2-46137f2cfcda", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"11"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 40]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 11]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'b8a2ea23-b19c-4b6a-85e2-46137f2cfcda' AND "tang_plans"."id" != 11) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 6ms (Views: 0.6ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$UwF8C6ffGa.spj9g5yth9OHUGgfIzUHW5fk1S4CqdCHlSbrjKnoha"], ["created_at", "2016-10-03 14:51:18.982552"], ["updated_at", "2016-10-03 14:51:18.982552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8a2ea23-b19c-4b6a-85e2-46137f2cfcda' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8a2ea23-b19c-4b6a-85e2-46137f2cfcda' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b8a2ea23-b19c-4b6a-85e2-46137f2cfcda"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 14:51:18.986661"], ["updated_at", "2016-10-03 14:51:18.986661"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "40"], ["created_at", "2016-10-03 14:51:18.986661"], ["item_id", 12], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"12"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 41]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 12]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 12], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 12\nstripe_id: b8a2ea23-b19c-4b6a-85e2-46137f2cfcda\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: 0\nhighlight: false\ncreated_at: 2016-10-03 14:51:18.986661000 Z\nupdated_at: 2016-10-03 14:51:18.986661000 Z\n"], ["whodunnit", "41"], ["created_at", "2016-10-03 14:51:19.353641"]] SQL (0.3ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 747ms (ActiveRecord: 1.0ms)  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$cd7CugUXpzk0wj7efmgd/OawvObryAGPTrI.fbvnSF.PCBWWikHzW"], ["created_at", "2016-10-03 14:51:20.103516"], ["updated_at", "2016-10-03 14:51:20.103516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8a2ea23-b19c-4b6a-85e2-46137f2cfcda' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'b8a2ea23-b19c-4b6a-85e2-46137f2cfcda' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "b8a2ea23-b19c-4b6a-85e2-46137f2cfcda"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 14:51:20.107093"], ["updated_at", "2016-10-03 14:51:20.107093"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "41"], ["created_at", "2016-10-03 14:51:20.107093"], ["item_id", 13], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"13"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 42]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 13]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 13], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 13\nstripe_id: b8a2ea23-b19c-4b6a-85e2-46137f2cfcda\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: 0\nhighlight: false\ncreated_at: 2016-10-03 14:51:20.107093000 Z\nupdated_at: 2016-10-03 14:51:20.107093000 Z\n"], ["whodunnit", "42"], ["created_at", "2016-10-03 14:51:20.493312"]] SQL (0.3ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 748ms (ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$UBjUwpEzpQIzlEJ1fBjFTuWrCgaCkxSG6GbBWBBe7bT5kFC35EUM."], ["created_at", "2016-10-03 14:51:21.244414"], ["updated_at", "2016-10-03 14:51:21.244414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$H9QTepfb8oavImhbl.8iW./I40fpPRv55TEejDV9gEIyPF4JhKmVe"], ["created_at", "2016-10-03 14:51:21.250804"], ["updated_at", "2016-10-03 14:51:21.250804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$SzyI0Vvdq9Wta99FiT8KvetbmQbtywjTJeVrPo7W34tS7FVz2Djoq"], ["created_at", "2016-10-03 14:51:21.256260"], ["updated_at", "2016-10-03 14:51:21.256260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$ilt6bXwpPClJghHV3so9qO27ma336J5DHgj7QP1p7ptEt.X2D3Yhy"], ["created_at", "2016-10-03 14:51:21.260917"], ["updated_at", "2016-10-03 14:51:21.260917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$QsO7vW9tVYB6XvmyXGzns.JA.Rao2WU9WFEsvY8QyAT./Ro8l5Omy"], ["created_at", "2016-10-03 14:51:21.266522"], ["updated_at", "2016-10-03 14:51:21.266522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$C7uS2oUY3dAu94seNbBYYeAEI85w8J1aE8awqxTTrtc.oPWg2YxtC"], ["created_at", "2016-10-03 14:51:21.271726"], ["updated_at", "2016-10-03 14:51:21.271726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$2unJ3rZw8/dSymHmvywsQeU.fnsMFBrv3Asl2oK8fg7f7zRhBnTW2"], ["created_at", "2016-10-03 14:51:21.276896"], ["updated_at", "2016-10-03 14:51:21.276896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$JqWAs45WmsnGzigEzbkqv.7YrWNC9Ws/w4EZt0K3htv8hJMlFDMGu"], ["created_at", "2016-10-03 14:51:21.282692"], ["updated_at", "2016-10-03 14:51:21.282692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$cvt/VkzUvGezJ5mqXS.CzePQnNBCDWHNg.DI/h0Tv1YgipI34xkvi"], ["created_at", "2016-10-03 14:51:21.287350"], ["updated_at", "2016-10-03 14:51:21.287350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$Ivviwxi6MZf2rJTbjbqkoOvG1PqIuDRfv5RmAmiHgh3hQCp64L68."], ["created_at", "2016-10-03 14:51:21.292444"], ["updated_at", "2016-10-03 14:51:21.292444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 16ms (Views: 8.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$GDqHtG65KSQOgQm2fc6T/.fuJ9g6wgQftHWIommcJM59oYK2zo.J6"], ["created_at", "2016-10-03 14:51:25.397257"], ["updated_at", "2016-10-03 14:51:25.397257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:51:25 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.2ms) Rendered devise/sessions/new.html.erb within layouts/application (36.8ms) Completed 200 OK in 348ms (Views: 334.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:51:25 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:51:25.784875"], ["current_sign_in_at", "2016-10-03 14:51:25.784875"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:51:25.785684"], ["id", 53]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 22ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:51:25 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 10:51:25 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (16.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (19.9ms) Completed 200 OK in 63ms (Views: 32.7ms | ActiveRecord: 1.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 10:51:25 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 14:51:25.931186"], ["updated_at", "2016-10-03 14:51:25.931186"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "53"], ["created_at", "2016-10-03 14:51:25.931186"], ["item_id", 14], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/14 Completed 302 Found in 447ms (ActiveRecord: 2.7ms) Started GET "/tang/admin/plans/14" for 127.0.0.1 at 2016-10-03 10:51:26 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"14"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Tang::Plan Load (0.6ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 14]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (9.9ms) Completed 200 OK in 20ms (Views: 14.4ms | ActiveRecord: 0.8ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$FUbrOwZh7LhOT0Sco.TXNexkyLuYtDxXoWZ2zHnWPq/Q5v5UlkGCG"], ["created_at", "2016-10-03 14:51:26.420177"], ["updated_at", "2016-10-03 14:51:26.420177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:51:26 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.2ms) Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:51:26 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:51:26.442060"], ["current_sign_in_at", "2016-10-03 14:51:26.442060"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:51:26.443309"], ["id", 54]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 13ms (ActiveRecord: 1.3ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:51:26 -0400 Processing by HomeController#index as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.4ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 10:51:26 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (5.6ms) Completed 200 OK in 12ms (Views: 8.0ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 10:51:26 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (5.4ms) Completed 200 OK in 18ms (Views: 12.0ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$PhShzlurgcQFYh70zabvW.4KapYTEpqSYJcQ8STFg6HFnGruerd1m"], ["created_at", "2016-10-03 14:51:26.577449"], ["updated_at", "2016-10-03 14:51:26.577449"]]  (6.1ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:51:27 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (3.6ms) Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-03 10:51:27 -0400 Started GET "/assets/application-ae2f3e9153ab8790e8aa4db3ee24569c31c04e9721cf338869bc8e4f22fac81c.js" for 127.0.0.1 at 2016-10-03 10:51:27 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:51:28 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:51:28.080594"], ["current_sign_in_at", "2016-10-03 14:51:28.080594"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:51:28.081378"], ["id", 55]]  (0.3ms) COMMIT Redirected to http://127.0.0.1:52688/ Completed 302 Found in 10ms (ActiveRecord: 1.5ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:51:28 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 14:51:28.185056"], ["updated_at", "2016-10-03 14:51:28.185056"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 14:51:28.185056"], ["item_id", 15], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 10:51:28 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Subscription Load (21.9ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.6ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (12.6ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (26.8ms) Completed 200 OK in 87ms (Views: 27.1ms | ActiveRecord: 38.0ms) Started GET "/tang/account/subscription/new?plan=15" for 127.0.0.1 at 2016-10-03 10:51:28 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"15"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (10.8ms) Completed 200 OK in 38ms (Views: 18.0ms | ActiveRecord: 1.9ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 10:51:30 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"15"}, "stripe_token"=>"test_tok_1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 55 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 55) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 55) LIMIT 1 SQL (0.2ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-03 14:51:30.251466"], ["id", 55]]  (5.8ms) COMMIT  (0.1ms) BEGIN Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 55 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (4.2ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 15], ["customer_id", 55], ["stripe_id", "test_su_4"], ["created_at", "2016-10-03 14:51:30.264505"], ["updated_at", "2016-10-03 14:51:30.264505"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "55"], ["created_at", "2016-10-03 14:51:30.264505"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.2ms) COMMIT Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]]  (0.1ms) BEGIN SQL (2.7ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 55], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 9], ["exp_year", 2018], ["fingerprint", "hrLgWzEscxDirlpO"], ["funding", "credit"], ["last4", "4242"], ["name", "Johnny App"], ["created_at", "2016-10-03 14:51:30.299037"], ["updated_at", "2016-10-03 14:51:30.299037"]]  (0.3ms) COMMIT Redirected to http://127.0.0.1:52688/tang/account/subscription Completed 302 Found in 64ms (ActiveRecord: 17.5ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 10:51:30 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Subscription Load (0.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > 0) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.2ms) Completed 200 OK in 8ms (Views: 3.2ms | ActiveRecord: 1.8ms)  (2.0ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (2.7ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (4.1ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (24.7ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (23.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$aTr2c5Mk23GuQtHPyGku9OFeiY3qO2ug8oJ/IyYzsnXvpD6U9am6u"], ["created_at", "2016-10-03 14:51:33.652312"], ["updated_at", "2016-10-03 14:51:33.652312"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:51:33 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 10:51:33 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 14:51:33.809941"], ["current_sign_in_at", "2016-10-03 14:51:33.809941"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 14:51:33.810713"], ["id", 1]]  (0.4ms) COMMIT Redirected to http://127.0.0.1:52688/ Completed 302 Found in 7ms (ActiveRecord: 1.2ms) Started GET "/" for 127.0.0.1 at 2016-10-03 10:51:33 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 14:51:33.912232"], ["updated_at", "2016-10-03 14:51:33.912232"]] SQL (0.4ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 14:51:33.912232"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 10:51:33 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.6ms) Completed 200 OK in 7ms (Views: 3.4ms | ActiveRecord: 1.3ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-03 10:51:34 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 10:51:34 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"test_tok_1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (0.9ms) Completed 200 OK in 6ms (Views: 2.1ms | ActiveRecord: 0.7ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (48.0ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (22.9ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$EyjQDI0xorTvPw8IhL/LkuR.Pbn8BL52ngdJMaOfXs5eMCS9PtE/u"], ["created_at", "2016-10-03 15:07:36.161529"], ["updated_at", "2016-10-03 15:07:36.161529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$EjxWDTLr/5p2pR484PFj8.NF3vo1SxKZ8dhiPUQLy1.m3uCweoh4e"], ["created_at", "2016-10-03 15:07:36.190838"], ["updated_at", "2016-10-03 15:07:36.190838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$lbKv6G.fY.VIzA0go75WTeAAu2E9d6pjj5bz4oiItmdXjEi/jrgtK"], ["created_at", "2016-10-03 15:07:36.195651"], ["updated_at", "2016-10-03 15:07:36.195651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 54ms (Views: 29.6ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$BVjKIYbH/UpvkuWF4OdaIuOthO4reDu7ItJjKlPkDuTHoXoZgvrfK"], ["created_at", "2016-10-03 15:07:36.260671"], ["updated_at", "2016-10-03 15:07:36.260671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$uRONcWx.IuKZfBQYY8wtou5jVNRiBDR2zjEuOgDUXQauQHI0EdF8y"], ["created_at", "2016-10-03 15:07:36.265691"], ["updated_at", "2016-10-03 15:07:36.265691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$hdYl558pknfZMqGlleYZXeOvoFLtoHiRaXME9BWHA40St8SQXvvL6"], ["created_at", "2016-10-03 15:07:36.275548"], ["updated_at", "2016-10-03 15:07:36.275548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$W2EkHTulWmHmQx6I5XV2n.ZrlpqJ7Mt7L973tSKhl4lbssyeL2ieS"], ["created_at", "2016-10-03 15:07:36.280312"], ["updated_at", "2016-10-03 15:07:36.280312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$5Z2nnQHBxSt/P6CnrwOrSuUnav5a6jEqkpS2Evgf.ZvTS3e/bGc2m"], ["created_at", "2016-10-03 15:07:36.285704"], ["updated_at", "2016-10-03 15:07:36.285704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$zli2Kc4ezOCwCUrWqX6Re.XSEUfwvL9z/LQx8klzj.pNGbRz6ewNC"], ["created_at", "2016-10-03 15:07:36.291380"], ["updated_at", "2016-10-03 15:07:36.291380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$o/DENFlFyHAxehfFk5BiRuwdi/MUtiRTsMuny7c69o5OD9uyETWz."], ["created_at", "2016-10-03 15:07:36.296588"], ["updated_at", "2016-10-03 15:07:36.296588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$ga9Yg.q03tHvuHHwK3IJVO8u0qw07fhDic87idmSly1ybTX/OC/EC"], ["created_at", "2016-10-03 15:07:36.302020"], ["updated_at", "2016-10-03 15:07:36.302020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$wmCoik5Em5.Tp1l6IrjhX.X9JaIVeEW9HYqTdIsZ8mHNnDAWvi9PK"], ["created_at", "2016-10-03 15:07:36.307451"], ["updated_at", "2016-10-03 15:07:36.307451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$p6iDczv/Huc.ZD/M5zHbQOm9kF2bQxa.dFHPNhhSLRp43MZjvHXtK"], ["created_at", "2016-10-03 15:07:36.312300"], ["updated_at", "2016-10-03 15:07:36.312300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$uARtI6UgZFLU4uSf6d9viuWac/DpBkFGkWmSfqJrInHjakRiJBfT6"], ["created_at", "2016-10-03 15:07:36.316876"], ["updated_at", "2016-10-03 15:07:36.316876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$dS2VVLR52q2.3VeoTczVsuI0BlM2piZeg9/NQsInbTkO1vyc/P0Aq"], ["created_at", "2016-10-03 15:07:36.321893"], ["updated_at", "2016-10-03 15:07:36.321893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$v4iWpcTpSwOBYnAC7HB8BO0vhDdSt39ScSuEXCvj45vpFcLsqyex6"], ["created_at", "2016-10-03 15:07:36.327465"], ["updated_at", "2016-10-03 15:07:36.327465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$ehp69SJdl7bPaFpfq8DkVegZngPgN7ulada7d0dv8syABnaGZi8RS"], ["created_at", "2016-10-03 15:07:36.333267"], ["updated_at", "2016-10-03 15:07:36.333267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$nkLWH369nVdfmwiauOftWuaSn7VeGiaR1Segv3gmdZq5Q1hIgD7WW"], ["created_at", "2016-10-03 15:07:36.338209"], ["updated_at", "2016-10-03 15:07:36.338209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$CDMKSXbW/8lY7Mz0tgZbu.cj6rdNhezPqJ2D.A7ud3Xwg06SPqMOu"], ["created_at", "2016-10-03 15:07:36.343247"], ["updated_at", "2016-10-03 15:07:36.343247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$YiUY7W.mfZqV6yIdMML0ceK9lsu2vQ2QN7iiI/ohtGxHf7E1zDlrq"], ["created_at", "2016-10-03 15:07:36.348068"], ["updated_at", "2016-10-03 15:07:36.348068"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$T57oU4IYcfKY10cllHPtuuBJaxddkbLqRAwAvyT8fuVTMiZcrHrFq"], ["created_at", "2016-10-03 15:07:36.353499"], ["updated_at", "2016-10-03 15:07:36.353499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$FKBOixTzb6iCWilW4B.5PObu4BHToCo/WJChJCQqVR/FInCYorEGS"], ["created_at", "2016-10-03 15:07:36.358261"], ["updated_at", "2016-10-03 15:07:36.358261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$UpGRPD5zWVpWMJt29u/si.gHrOTdMvJ5Ya2gse48Dp700hEhAoJNW"], ["created_at", "2016-10-03 15:07:36.364051"], ["updated_at", "2016-10-03 15:07:36.364051"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$qGVgtKLqj/1QnZSeUSVPmuVQu2f51ONSorfgXBaHgdQxI3NTgVV16"], ["created_at", "2016-10-03 15:07:36.369833"], ["updated_at", "2016-10-03 15:07:36.369833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$lwTR9J6sZlgyl/8j17JvyO/epE.wiiDkWsYPH5sajw9Sj/YznTYdK"], ["created_at", "2016-10-03 15:07:36.375097"], ["updated_at", "2016-10-03 15:07:36.375097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$xdDHtRiNVucgx4ogxC3Za.Q9j8SJEUCCl2eGkul53Z.IaEZpiHPiy"], ["created_at", "2016-10-03 15:07:36.380308"], ["updated_at", "2016-10-03 15:07:36.380308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$UPuOW7KUyyV6MGDoJUP.1ePxOhZOW4awtE6i4TsTdUKEd31C3hYAi"], ["created_at", "2016-10-03 15:07:36.385584"], ["updated_at", "2016-10-03 15:07:36.385584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '01972897-255d-4e7a-b65c-4794d0c944f0' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '01972897-255d-4e7a-b65c-4794d0c944f0' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "01972897-255d-4e7a-b65c-4794d0c944f0"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 15:07:36.399673"], ["updated_at", "2016-10-03 15:07:36.399673"]] SQL (11.6ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-03 15:07:36.399673"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 15ms (Views: 12.2ms | ActiveRecord: 0.4ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$BO.YwtG8EEm5N2bHWOSYK.Yv3SulkGV/vwa1Mn/ri6.NGCLA/Xv1."], ["created_at", "2016-10-03 15:07:37.205616"], ["updated_at", "2016-10-03 15:07:37.205616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '01972897-255d-4e7a-b65c-4794d0c944f0' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '01972897-255d-4e7a-b65c-4794d0c944f0' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "01972897-255d-4e7a-b65c-4794d0c944f0"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 15:07:37.209806"], ["updated_at", "2016-10-03 15:07:37.209806"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-03 15:07:37.209806"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 28]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (0.2ms) Completed 200 OK in 12ms (Views: 6.0ms | ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$3uhsLqkM4gG5FCYRjw2KaeVrLlCaAOu7qMgyADMf9eVt4dC7e/aN6"], ["created_at", "2016-10-03 15:07:37.601260"], ["updated_at", "2016-10-03 15:07:37.601260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$sMgyMRMdJG0qcdHmzT4YLeFfWV8KkwgLIrLB/pvAfNMn4BOQ6Fhqu"], ["created_at", "2016-10-03 15:07:37.618517"], ["updated_at", "2016-10-03 15:07:37.618517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '01972897-255d-4e7a-b65c-4794d0c944f0' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '01972897-255d-4e7a-b65c-4794d0c944f0' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "01972897-255d-4e7a-b65c-4794d0c944f0"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 15:07:37.622301"], ["updated_at", "2016-10-03 15:07:37.622301"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-03 15:07:37.622301"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#edit as HTML Parameters: {"id"=>"3"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 30]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$RJYk2RYM.pru5oxKLiZF.eWoeaIHjaVkhCkANhTgQyOj7uVluARXy"], ["created_at", "2016-10-03 15:07:38.107083"], ["updated_at", "2016-10-03 15:07:38.107083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"01972897-255d-4e7a-b65c-4794d0c944f0", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]]  (0.2ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '01972897-255d-4e7a-b65c-4794d0c944f0' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '01972897-255d-4e7a-b65c-4794d0c944f0' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "01972897-255d-4e7a-b65c-4794d0c944f0"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 15:07:38.116858"], ["updated_at", "2016-10-03 15:07:38.116858"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "31"], ["created_at", "2016-10-03 15:07:38.116858"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/4 Completed 302 Found in 375ms (ActiveRecord: 1.3ms)  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$MOHDcaWD8FNvoP4irJLye.map1Kdq3XJjec1xBu8sQrkO8Ver84WC"], ["created_at", "2016-10-03 15:07:38.494771"], ["updated_at", "2016-10-03 15:07:38.494771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"01972897-255d-4e7a-b65c-4794d0c944f0", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '01972897-255d-4e7a-b65c-4794d0c944f0' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '01972897-255d-4e7a-b65c-4794d0c944f0' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "01972897-255d-4e7a-b65c-4794d0c944f0"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 15:07:38.502713"], ["updated_at", "2016-10-03 15:07:38.502713"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "32"], ["created_at", "2016-10-03 15:07:38.502713"], ["item_id", 5], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/5 Completed 302 Found in 546ms (ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$V09oybh4S1KyDJPnzPX1LODWhlPnHGA4Om5DwmGJuO4.3JZ3OYM/O"], ["created_at", "2016-10-03 15:07:39.053454"], ["updated_at", "2016-10-03 15:07:39.053454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"01972897-255d-4e7a-b65c-4794d0c944f0", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '01972897-255d-4e7a-b65c-4794d0c944f0' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '01972897-255d-4e7a-b65c-4794d0c944f0' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "01972897-255d-4e7a-b65c-4794d0c944f0"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 15:07:39.062469"], ["updated_at", "2016-10-03 15:07:39.062469"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "33"], ["created_at", "2016-10-03 15:07:39.062469"], ["item_id", 6], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/6 Completed 302 Found in 367ms (ActiveRecord: 1.3ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$A2ZQWsIPQIaM6tfNJShdK.l0rm3qoa6VIz26rPZCgxcZu79P9PP/W"], ["created_at", "2016-10-03 15:07:39.434380"], ["updated_at", "2016-10-03 15:07:39.434380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"01972897-255d-4e7a-b65c-4794d0c944f0", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '01972897-255d-4e7a-b65c-4794d0c944f0' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.0ms) Completed 200 OK in 13ms (Views: 0.5ms | ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$qPabux36X9l9ShnSUKwD4OZQ2DGGZbuDeyBc.nZzpC05ggSQOBQYC"], ["created_at", "2016-10-03 15:07:39.459371"], ["updated_at", "2016-10-03 15:07:39.459371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"01972897-255d-4e7a-b65c-4794d0c944f0", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '01972897-255d-4e7a-b65c-4794d0c944f0' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.1ms) Completed 200 OK in 5ms (Views: 0.7ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$l9N0dqcdiqOYRkoQXLyexOjCoFnHPHzVZ6qeJQ8EkdVtnFTSk6Ql6"], ["created_at", "2016-10-03 15:07:39.474998"], ["updated_at", "2016-10-03 15:07:39.474998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '01972897-255d-4e7a-b65c-4794d0c944f0' LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '01972897-255d-4e7a-b65c-4794d0c944f0' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "01972897-255d-4e7a-b65c-4794d0c944f0"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 15:07:39.478759"], ["updated_at", "2016-10-03 15:07:39.478759"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-03 15:07:39.478759"], ["item_id", 7], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$q7bnFaOjPLX6TlagrGDapetOT54.ID5j1Opg14ebbSJhsQGPw6N6K"], ["created_at", "2016-10-03 15:07:39.844971"], ["updated_at", "2016-10-03 15:07:39.844971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '01972897-255d-4e7a-b65c-4794d0c944f0' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '01972897-255d-4e7a-b65c-4794d0c944f0' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "01972897-255d-4e7a-b65c-4794d0c944f0"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 15:07:39.848676"], ["updated_at", "2016-10-03 15:07:39.848676"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-03 15:07:39.848676"], ["item_id", 8], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"01972897-255d-4e7a-b65c-4794d0c944f0", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"8"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 37]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 8]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '01972897-255d-4e7a-b65c-4794d0c944f0' AND "tang_plans"."id" != 8) LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '01972897-255d-4e7a-b65c-4794d0c944f0' AND "tang_plans"."id" != 8) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/8 Completed 302 Found in 730ms (ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$67udZYojkvZCm/uEmttD5ODe5.9MwWZjvP5VUaQij9CsWOn/ANKt."], ["created_at", "2016-10-03 15:07:40.981853"], ["updated_at", "2016-10-03 15:07:40.981853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '01972897-255d-4e7a-b65c-4794d0c944f0' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '01972897-255d-4e7a-b65c-4794d0c944f0' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "01972897-255d-4e7a-b65c-4794d0c944f0"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 15:07:40.985778"], ["updated_at", "2016-10-03 15:07:40.985778"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "37"], ["created_at", "2016-10-03 15:07:40.985778"], ["item_id", 9], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"01972897-255d-4e7a-b65c-4794d0c944f0", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"9"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 38]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 9]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '01972897-255d-4e7a-b65c-4794d0c944f0' AND "tang_plans"."id" != 9) LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '01972897-255d-4e7a-b65c-4794d0c944f0' AND "tang_plans"."id" != 9) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/9 Completed 302 Found in 787ms (ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$NMRaiyczgKmhewLVbx2qpuMe6DvV1YStmMZ0w3fsSzwF5pJJrn3uu"], ["created_at", "2016-10-03 15:07:42.149329"], ["updated_at", "2016-10-03 15:07:42.149329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '01972897-255d-4e7a-b65c-4794d0c944f0' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '01972897-255d-4e7a-b65c-4794d0c944f0' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "01972897-255d-4e7a-b65c-4794d0c944f0"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 15:07:42.152898"], ["updated_at", "2016-10-03 15:07:42.152898"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "38"], ["created_at", "2016-10-03 15:07:42.152898"], ["item_id", 10], ["item_type", "Tang::Plan"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"01972897-255d-4e7a-b65c-4794d0c944f0", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"10"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 39]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 10]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '01972897-255d-4e7a-b65c-4794d0c944f0' AND "tang_plans"."id" != 10) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 6ms (Views: 0.7ms | ActiveRecord: 0.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$DmRj31JkzddS8ypQoe4tTeiQBVx0tnjWHoIc7EwQBC5FXSYEJTDMa"], ["created_at", "2016-10-03 15:07:42.532660"], ["updated_at", "2016-10-03 15:07:42.532660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '01972897-255d-4e7a-b65c-4794d0c944f0' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '01972897-255d-4e7a-b65c-4794d0c944f0' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "01972897-255d-4e7a-b65c-4794d0c944f0"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 15:07:42.536010"], ["updated_at", "2016-10-03 15:07:42.536010"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "39"], ["created_at", "2016-10-03 15:07:42.536010"], ["item_id", 11], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"01972897-255d-4e7a-b65c-4794d0c944f0", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"11"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 40]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 11]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '01972897-255d-4e7a-b65c-4794d0c944f0' AND "tang_plans"."id" != 11) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.0ms) Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$/iAXmNTfQrSO02lhAZA3N.j6yot8vu5iwKi9qMmIVLl96xpn8r78K"], ["created_at", "2016-10-03 15:07:42.919444"], ["updated_at", "2016-10-03 15:07:42.919444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '01972897-255d-4e7a-b65c-4794d0c944f0' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '01972897-255d-4e7a-b65c-4794d0c944f0' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "01972897-255d-4e7a-b65c-4794d0c944f0"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 15:07:42.922391"], ["updated_at", "2016-10-03 15:07:42.922391"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "40"], ["created_at", "2016-10-03 15:07:42.922391"], ["item_id", 12], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"12"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 41]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 12]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 12], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 12\nstripe_id: 01972897-255d-4e7a-b65c-4794d0c944f0\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: 0\nhighlight: false\ncreated_at: 2016-10-03 15:07:42.922391000 Z\nupdated_at: 2016-10-03 15:07:42.922391000 Z\n"], ["whodunnit", "41"], ["created_at", "2016-10-03 15:07:43.325044"]] SQL (0.3ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 749ms (ActiveRecord: 1.0ms)  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$ubWsHo7Qo/pGBMfhc.4lFu1kG0ZLrf3.mQXm6MpTUwNe3Fxmg/ViC"], ["created_at", "2016-10-03 15:07:44.076174"], ["updated_at", "2016-10-03 15:07:44.076174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '01972897-255d-4e7a-b65c-4794d0c944f0' LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '01972897-255d-4e7a-b65c-4794d0c944f0' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "01972897-255d-4e7a-b65c-4794d0c944f0"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 15:07:44.080479"], ["updated_at", "2016-10-03 15:07:44.080479"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "41"], ["created_at", "2016-10-03 15:07:44.080479"], ["item_id", 13], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"13"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 42]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 13]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 13], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 13\nstripe_id: 01972897-255d-4e7a-b65c-4794d0c944f0\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: 0\nhighlight: false\ncreated_at: 2016-10-03 15:07:44.080479000 Z\nupdated_at: 2016-10-03 15:07:44.080479000 Z\n"], ["whodunnit", "42"], ["created_at", "2016-10-03 15:07:44.505794"]] SQL (0.3ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 728ms (ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$uCzXrRfcm2wVhyTOX0Hz.O5yrBjdw4xaA2b5c14/Fd8qGpBOM6YDW"], ["created_at", "2016-10-03 15:07:45.237714"], ["updated_at", "2016-10-03 15:07:45.237714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$pmRETbKv6c1PMR7.VVnWJOslITp6Chdeia.WxT.8F4cwAfvqSdPD."], ["created_at", "2016-10-03 15:07:45.243595"], ["updated_at", "2016-10-03 15:07:45.243595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$WPwBLaD2.Yu/1JJ5YOyOEeVsWieOfZOCm88UrPoQC6VFilSwOOqFa"], ["created_at", "2016-10-03 15:07:45.248809"], ["updated_at", "2016-10-03 15:07:45.248809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$x7wiG5P8P0R1PoKs3rPD/./rq5vrs/zf61XiPWk4DTBh6.MJRKnvK"], ["created_at", "2016-10-03 15:07:45.253826"], ["updated_at", "2016-10-03 15:07:45.253826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$PM6fjIKw7Eu5B9Qgtydf4OzKKBanuh9xt2.l/mUdAh7CwCavGpN3K"], ["created_at", "2016-10-03 15:07:45.258515"], ["updated_at", "2016-10-03 15:07:45.258515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$LouaMhUf7NIouMX0uIxP8eQ4sut2Z0rduu5UhtrMqkx824b81PHDm"], ["created_at", "2016-10-03 15:07:45.262863"], ["updated_at", "2016-10-03 15:07:45.262863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$qDl2GqVI9HaNF4YhLP7U4.DU0peB3AYoMGD0qmkOQc7FOYRiWGb8y"], ["created_at", "2016-10-03 15:07:45.267849"], ["updated_at", "2016-10-03 15:07:45.267849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$CsQECrwCOY7MBR.rkyxjouf7Moyjeyrkwik/wU5MQRTibN.2OVX2."], ["created_at", "2016-10-03 15:07:45.272757"], ["updated_at", "2016-10-03 15:07:45.272757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$NRZ/v1uk15JYMowV7wp7v.K044.DWz4.zuWbUIXfqLxLGtubtzu/O"], ["created_at", "2016-10-03 15:07:45.277365"], ["updated_at", "2016-10-03 15:07:45.277365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$RXYd3Ruqh2iakeNgfTI/C.L6ADK6OtWtvi9F6hfAlpRWuYTFyxIOi"], ["created_at", "2016-10-03 15:07:45.281728"], ["updated_at", "2016-10-03 15:07:45.281728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 17ms (Views: 10.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.2ms) BEGIN User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$M8lMlG6Jw8l1FkAKaUKEx.esAcwEu5qzsSqXMvkIpzv/ZxzHQqFP2"], ["created_at", "2016-10-03 15:07:48.525475"], ["updated_at", "2016-10-03 15:07:48.525475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 11:07:48 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.0ms) Rendered devise/sessions/new.html.erb within layouts/application (36.1ms) Completed 200 OK in 302ms (Views: 288.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 11:07:48 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 15:07:48.861219"], ["current_sign_in_at", "2016-10-03 15:07:48.861219"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 15:07:48.861993"], ["id", 53]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-03 11:07:48 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Rendered home/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 11:07:48 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (7.9ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (12.9ms) Completed 200 OK in 49ms (Views: 26.4ms | ActiveRecord: 1.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 11:07:48 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 15:07:48.972311"], ["updated_at", "2016-10-03 15:07:48.972311"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "53"], ["created_at", "2016-10-03 15:07:48.972311"], ["item_id", 14], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/14 Completed 302 Found in 823ms (ActiveRecord: 2.8ms) Started GET "/tang/admin/plans/14" for 127.0.0.1 at 2016-10-03 11:07:49 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"14"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 14]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (8.9ms) Completed 200 OK in 18ms (Views: 13.9ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$FzErCqxozzIzVPQlNX5FN.zB4r/pdVkCFwe8H7ki/vKMUbjb4NzQe"], ["created_at", "2016-10-03 15:07:49.825453"], ["updated_at", "2016-10-03 15:07:49.825453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 11:07:49 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.6ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 11:07:49 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 15:07:49.841363"], ["current_sign_in_at", "2016-10-03 15:07:49.841363"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 15:07:49.842065"], ["id", 54]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-10-03 11:07:49 -0400 Processing by HomeController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]] Rendered home/index.html.erb within layouts/application (0.1ms) Completed 200 OK in 9ms (Views: 2.2ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 11:07:49 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.4ms) Completed 200 OK in 7ms (Views: 4.7ms | ActiveRecord: 0.5ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 11:07:49 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (3.7ms) Completed 200 OK in 10ms (Views: 5.2ms | ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$V4bERL1PxpKClUo6rSb9Fu1QjmkoLo9IbL31CmEaNigyIQTHXwh.."], ["created_at", "2016-10-03 15:07:49.932678"], ["updated_at", "2016-10-03 15:07:49.932678"]]  (8.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 11:07:50 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.5ms) Rendered devise/sessions/new.html.erb within layouts/application (2.9ms) Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-03 11:07:50 -0400 Started GET "/assets/application-ae2f3e9153ab8790e8aa4db3ee24569c31c04e9721cf338869bc8e4f22fac81c.js" for 127.0.0.1 at 2016-10-03 11:07:50 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 11:07:51 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 15:07:51.476759"], ["current_sign_in_at", "2016-10-03 15:07:51.476759"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 15:07:51.477500"], ["id", 55]]  (1.6ms) COMMIT Redirected to http://127.0.0.1:54079/ Completed 302 Found in 10ms (ActiveRecord: 2.8ms) Started GET "/" for 127.0.0.1 at 2016-10-03 11:07:51 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 15:07:51.681889"], ["updated_at", "2016-10-03 15:07:51.681889"]] SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 15:07:51.681889"], ["item_id", 15], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 11:07:51 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (7.6ms) Completed 200 OK in 38ms (Views: 23.0ms | ActiveRecord: 3.4ms) Started GET "/tang/account/subscription/new?plan=15" for 127.0.0.1 at 2016-10-03 11:07:51 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"15"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (3.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (7.1ms) Completed 200 OK in 60ms (Views: 13.1ms | ActiveRecord: 1.9ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 11:07:53 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"15"}, "stripe_token"=>"test_tok_1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 55 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 55) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 55) LIMIT 1 SQL (0.3ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-03 15:07:53.111408"], ["id", 55]]  (6.2ms) COMMIT  (0.1ms) BEGIN Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 55 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 15], ["customer_id", 55], ["stripe_id", "test_su_4"], ["created_at", "2016-10-03 15:07:53.128040"], ["updated_at", "2016-10-03 15:07:53.128040"]] SQL (3.8ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "55"], ["created_at", "2016-10-03 15:07:53.128040"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.5ms) COMMIT Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]]  (0.2ms) BEGIN SQL (0.5ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 55], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 9], ["exp_year", 2018], ["fingerprint", "hrLgWzEscxDirlpO"], ["funding", "credit"], ["last4", "4242"], ["name", "Johnny App"], ["created_at", "2016-10-03 15:07:53.163529"], ["updated_at", "2016-10-03 15:07:53.163529"]]  (0.2ms) COMMIT Redirected to http://127.0.0.1:54079/tang/account/subscription Completed 302 Found in 69ms (ActiveRecord: 16.1ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 11:07:53 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > 0) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.6ms) Completed 200 OK in 10ms (Views: 4.0ms | ActiveRecord: 1.8ms)  (0.5ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.1ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (0.9ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (19.2ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$TP3j37C8VUt9TKdPGpVehO.z3.x3Nho3WVtV/UMLt9zRPu6Byo6SS"], ["created_at", "2016-10-03 15:07:57.149435"], ["updated_at", "2016-10-03 15:07:57.149435"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 11:07:57 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.5ms) Rendered devise/sessions/new.html.erb within layouts/application (4.3ms) Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 11:07:57 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 15:07:57.286137"], ["current_sign_in_at", "2016-10-03 15:07:57.286137"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 15:07:57.286865"], ["id", 1]]  (0.4ms) COMMIT Redirected to http://127.0.0.1:54079/ Completed 302 Found in 7ms (ActiveRecord: 1.6ms) Started GET "/" for 127.0.0.1 at 2016-10-03 11:07:57 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 15:07:57.389178"], ["updated_at", "2016-10-03 15:07:57.389178"]] SQL (0.5ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 15:07:57.389178"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 11:07:57 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.3ms) Completed 200 OK in 7ms (Views: 3.4ms | ActiveRecord: 1.3ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-03 11:07:57 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.1ms) Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 11:07:58 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"test_tok_1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.1ms) Completed 200 OK in 8ms (Views: 2.7ms | ActiveRecord: 0.9ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (24.3ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (24.0ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$7LH0lAEoNUKH1Da79e9DoOHQ2ZY32DOdFbYaL6x8AfnFM/On/f4cW"], ["created_at", "2016-10-03 15:55:44.419785"], ["updated_at", "2016-10-03 15:55:44.419785"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$EzhJmNPa6cNhx7Fqj0W4y.A04r4zVxMS9VHnuHqX64vIyoFLJwUbO"], ["created_at", "2016-10-03 15:55:44.452002"], ["updated_at", "2016-10-03 15:55:44.452002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$LPgSsXK.opQcpRy3w.LT2.JpvmJwEmarKoxUS6ndfkRP65KleNo7e"], ["created_at", "2016-10-03 15:55:44.459056"], ["updated_at", "2016-10-03 15:55:44.459056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 48ms (Views: 27.8ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$wWKsGiSVrY3RhpUj1BOmQOreZ8Kxbv1CYt0.5wDmD.vb2I3zHzlc2"], ["created_at", "2016-10-03 15:55:44.520752"], ["updated_at", "2016-10-03 15:55:44.520752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$MRXJvNix8dJ6AZOvdET.ouwmpxdKr6A4qAT5jGZt8AkBafY1wcWdm"], ["created_at", "2016-10-03 15:55:44.527096"], ["updated_at", "2016-10-03 15:55:44.527096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$ESJYd9MuZ5OdvOKgOEVEieszscUKE2dlpQZoIWgqNRfTJ9141vjAa"], ["created_at", "2016-10-03 15:55:44.536198"], ["updated_at", "2016-10-03 15:55:44.536198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$BysuVmSGimFT13CGw5Bo4uxU/PYCp8JoSgFQHmNq9hfiPknx/LQy."], ["created_at", "2016-10-03 15:55:44.540869"], ["updated_at", "2016-10-03 15:55:44.540869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$d1IYfy5CQnltigzHzqXykOmm.Ogoq3WkMYceoNt.4PEGdfAfm0kcq"], ["created_at", "2016-10-03 15:55:44.545441"], ["updated_at", "2016-10-03 15:55:44.545441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$xDV7Bj2x1mLw8oh2aEIr2e8mu6a3bcDLjEWh1//vGU1DqRGt218GC"], ["created_at", "2016-10-03 15:55:44.550238"], ["updated_at", "2016-10-03 15:55:44.550238"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$M6X3cPgDKKplSnGdJwN/DeVi1qeJwS2uX79bOnDDyiuRKUq0wFkL2"], ["created_at", "2016-10-03 15:55:44.555650"], ["updated_at", "2016-10-03 15:55:44.555650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$y8NxxUc8hp9FPobAq2N45OwdkkvwNONmKd1CkNcZALnrmN.aZQej6"], ["created_at", "2016-10-03 15:55:44.560599"], ["updated_at", "2016-10-03 15:55:44.560599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$nPlLO/rPfKVbUOmHZKGpXuMztRpIXNMA3Exgk.DZGEO.BE6u3QGd."], ["created_at", "2016-10-03 15:55:44.565910"], ["updated_at", "2016-10-03 15:55:44.565910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$1sfLwcgkyIPk40owVxZ2oO.7PCkiLJKNbueR5n.TRjwiq6p9yYxtW"], ["created_at", "2016-10-03 15:55:44.571369"], ["updated_at", "2016-10-03 15:55:44.571369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$lzcuCi1V0eIa4QFwvzssEeV9NwyzYOfwLlT7wvxn/uCvKp9yEVxVe"], ["created_at", "2016-10-03 15:55:44.576683"], ["updated_at", "2016-10-03 15:55:44.576683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$0ZQqrLPy6UqJWNXajedU9.B/YmszTlKByEVavJmZ89Fzh4M9mIXTa"], ["created_at", "2016-10-03 15:55:44.581474"], ["updated_at", "2016-10-03 15:55:44.581474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$gAtRPLRiFPemf1QWPTP/Cu1jw3spXQCmakerdsgayzb5zbnw.jlxO"], ["created_at", "2016-10-03 15:55:44.586576"], ["updated_at", "2016-10-03 15:55:44.586576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$g/xYsNejCum/2XwKSAqjbOtih8xiU4aksNIXEoskjEeEtMUch2K.a"], ["created_at", "2016-10-03 15:55:44.591748"], ["updated_at", "2016-10-03 15:55:44.591748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$kTjx0tNCnWT/5Zkd7gcmt.m98AxY7fjoklxlbtyj3HlCsB3WdUqLu"], ["created_at", "2016-10-03 15:55:44.596547"], ["updated_at", "2016-10-03 15:55:44.596547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$zSltsMfh7nebCgJP.ZNGLeTC0wcPXMqCsEP/Y6F8ug2M5L96UvCrm"], ["created_at", "2016-10-03 15:55:44.601110"], ["updated_at", "2016-10-03 15:55:44.601110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$I.09GHh/lK1jodKAEMH9GejLiDhZPZ5eEZaKn9x8wToQsi1V5kssu"], ["created_at", "2016-10-03 15:55:44.605956"], ["updated_at", "2016-10-03 15:55:44.605956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$oOGc6UGYksSra/cqTszRd.DUCC/CHIPRDna.IsuPtcaDBZTVXBnMu"], ["created_at", "2016-10-03 15:55:44.610779"], ["updated_at", "2016-10-03 15:55:44.610779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$e0.ErZOeTTm5kVicmQT4dujX1fTasT0mOvDzrVQ.PzS87KpCKlkQS"], ["created_at", "2016-10-03 15:55:44.615436"], ["updated_at", "2016-10-03 15:55:44.615436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$NGEIo.odDq9dYzBwJwvmAuudFpAM2h40yTsRBf2khQAL0uh/wZ.Wy"], ["created_at", "2016-10-03 15:55:44.620830"], ["updated_at", "2016-10-03 15:55:44.620830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$6Y7CRz56rsyNEAmo7R3Zne4.1l31LVuYvzuFWf1Dyo31cxi.Ka6b2"], ["created_at", "2016-10-03 15:55:44.626533"], ["updated_at", "2016-10-03 15:55:44.626533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$AlobY8jRN6DfCuv2MN3d2OH.bar0LFW3rmNfrc0k1McG.7AvpW9RC"], ["created_at", "2016-10-03 15:55:44.632545"], ["updated_at", "2016-10-03 15:55:44.632545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$viGb3BA/XgacwUc4UtX55eXTmnX5xdMQg2CH11yxQAOxSfsKvNfHC"], ["created_at", "2016-10-03 15:55:44.637405"], ["updated_at", "2016-10-03 15:55:44.637405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$.wwdZJqQA8SRBwMcb8yAYOH2AEvov/I5KpUij1Wytgc5RYZova27i"], ["created_at", "2016-10-03 15:55:44.642216"], ["updated_at", "2016-10-03 15:55:44.642216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bfb40ac6-e1bd-4b32-8426-43a74cef7871' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bfb40ac6-e1bd-4b32-8426-43a74cef7871' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "bfb40ac6-e1bd-4b32-8426-43a74cef7871"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 15:55:44.654888"], ["updated_at", "2016-10-03 15:55:44.654888"]] SQL (17.4ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-03 15:55:44.654888"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 16ms (Views: 13.7ms | ActiveRecord: 0.3ms) Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans"  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$q0j3rH9mZkmPDjAoxxx44.PedMQpt0WXtXRKP08WYQep2j3eEHhyS"], ["created_at", "2016-10-03 15:55:45.177783"], ["updated_at", "2016-10-03 15:55:45.177783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bfb40ac6-e1bd-4b32-8426-43a74cef7871' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bfb40ac6-e1bd-4b32-8426-43a74cef7871' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "bfb40ac6-e1bd-4b32-8426-43a74cef7871"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 15:55:45.182480"], ["updated_at", "2016-10-03 15:55:45.182480"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-03 15:55:45.182480"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 28]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (0.4ms) Completed 200 OK in 10ms (Views: 5.9ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$XxpV6pWpslprpMBN.RfsvuRoHAKt728jU9WsJDKH9PD0Bqs3iCCra"], ["created_at", "2016-10-03 15:55:45.584392"], ["updated_at", "2016-10-03 15:55:45.584392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.2ms) Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$ev0TQ.FGCrFIqbM0rgCLweTT2ySUwq7dKjLSn4eeXThQh/7HCjX46"], ["created_at", "2016-10-03 15:55:45.601471"], ["updated_at", "2016-10-03 15:55:45.601471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bfb40ac6-e1bd-4b32-8426-43a74cef7871' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bfb40ac6-e1bd-4b32-8426-43a74cef7871' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "bfb40ac6-e1bd-4b32-8426-43a74cef7871"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 15:55:45.605104"], ["updated_at", "2016-10-03 15:55:45.605104"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-03 15:55:45.605104"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#edit as HTML Parameters: {"id"=>"3"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 30]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$B0umkq2tx9TbkNumKlMYDONO3xhQvcv15rolx68NXLOqBh/r3W0Qm"], ["created_at", "2016-10-03 15:55:46.389928"], ["updated_at", "2016-10-03 15:55:46.389928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"bfb40ac6-e1bd-4b32-8426-43a74cef7871", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bfb40ac6-e1bd-4b32-8426-43a74cef7871' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bfb40ac6-e1bd-4b32-8426-43a74cef7871' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "bfb40ac6-e1bd-4b32-8426-43a74cef7871"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 15:55:46.399433"], ["updated_at", "2016-10-03 15:55:46.399433"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "31"], ["created_at", "2016-10-03 15:55:46.399433"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/4 Completed 302 Found in 377ms (ActiveRecord: 1.2ms)  (0.3ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$oGPKhlkvjyCj/fGDWhAQ3OBmnFwFZeo2/0dqGAy1hHXAYuoKCPKVq"], ["created_at", "2016-10-03 15:55:46.779860"], ["updated_at", "2016-10-03 15:55:46.779860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"bfb40ac6-e1bd-4b32-8426-43a74cef7871", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bfb40ac6-e1bd-4b32-8426-43a74cef7871' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bfb40ac6-e1bd-4b32-8426-43a74cef7871' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "bfb40ac6-e1bd-4b32-8426-43a74cef7871"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 15:55:46.788389"], ["updated_at", "2016-10-03 15:55:46.788389"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "32"], ["created_at", "2016-10-03 15:55:46.788389"], ["item_id", 5], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/5 Completed 302 Found in 367ms (ActiveRecord: 1.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$UuJTkuL0OKAk4qfgIs5moetqL.SkPPtBjDk4/yhZ7.ln5JveYPrIy"], ["created_at", "2016-10-03 15:55:47.158387"], ["updated_at", "2016-10-03 15:55:47.158387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"bfb40ac6-e1bd-4b32-8426-43a74cef7871", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bfb40ac6-e1bd-4b32-8426-43a74cef7871' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bfb40ac6-e1bd-4b32-8426-43a74cef7871' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "bfb40ac6-e1bd-4b32-8426-43a74cef7871"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 15:55:47.167161"], ["updated_at", "2016-10-03 15:55:47.167161"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "33"], ["created_at", "2016-10-03 15:55:47.167161"], ["item_id", 6], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/6 Completed 302 Found in 376ms (ActiveRecord: 1.3ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$.dmfiFzpY33RTcZ8RCsisurv3AjAi2ZVHTBWUuNoV/FHR7VNEYc3S"], ["created_at", "2016-10-03 15:55:47.548209"], ["updated_at", "2016-10-03 15:55:47.548209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"bfb40ac6-e1bd-4b32-8426-43a74cef7871", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bfb40ac6-e1bd-4b32-8426-43a74cef7871' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.1ms) Completed 200 OK in 14ms (Views: 0.6ms | ActiveRecord: 0.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$95.po.dwED1.IyUBywUt3e8PdhMxGjxLr/y9dmYbhr6d2xpMLE.ym"], ["created_at", "2016-10-03 15:55:47.572583"], ["updated_at", "2016-10-03 15:55:47.572583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"bfb40ac6-e1bd-4b32-8426-43a74cef7871", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bfb40ac6-e1bd-4b32-8426-43a74cef7871' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.0ms) Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$uF8jAarwj9B3qoSZvJY76OEjtF4BHP2ipA1K8e4haA9MDZqGP7Lgy"], ["created_at", "2016-10-03 15:55:47.587374"], ["updated_at", "2016-10-03 15:55:47.587374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bfb40ac6-e1bd-4b32-8426-43a74cef7871' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bfb40ac6-e1bd-4b32-8426-43a74cef7871' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "bfb40ac6-e1bd-4b32-8426-43a74cef7871"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 15:55:47.590479"], ["updated_at", "2016-10-03 15:55:47.590479"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-03 15:55:47.590479"], ["item_id", 7], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$zzgAnColsTnW4a/ebAsY5eg8PvhkmCi83EG4y5VCDmxvuriYFdNgy"], ["created_at", "2016-10-03 15:55:47.953417"], ["updated_at", "2016-10-03 15:55:47.953417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bfb40ac6-e1bd-4b32-8426-43a74cef7871' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bfb40ac6-e1bd-4b32-8426-43a74cef7871' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "bfb40ac6-e1bd-4b32-8426-43a74cef7871"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 15:55:47.958038"], ["updated_at", "2016-10-03 15:55:47.958038"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-03 15:55:47.958038"], ["item_id", 8], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"bfb40ac6-e1bd-4b32-8426-43a74cef7871", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"8"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 37]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 8]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'bfb40ac6-e1bd-4b32-8426-43a74cef7871' AND "tang_plans"."id" != 8) LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'bfb40ac6-e1bd-4b32-8426-43a74cef7871' AND "tang_plans"."id" != 8) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/8 Completed 302 Found in 722ms (ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$NRYiWN4csJ.s3ht8728RUuSRmNQccVlmHFNr27DwSDKiMckcMEVO2"], ["created_at", "2016-10-03 15:55:49.048232"], ["updated_at", "2016-10-03 15:55:49.048232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bfb40ac6-e1bd-4b32-8426-43a74cef7871' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bfb40ac6-e1bd-4b32-8426-43a74cef7871' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "bfb40ac6-e1bd-4b32-8426-43a74cef7871"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 15:55:49.051698"], ["updated_at", "2016-10-03 15:55:49.051698"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "37"], ["created_at", "2016-10-03 15:55:49.051698"], ["item_id", 9], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"bfb40ac6-e1bd-4b32-8426-43a74cef7871", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"9"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 38]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 9]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'bfb40ac6-e1bd-4b32-8426-43a74cef7871' AND "tang_plans"."id" != 9) LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'bfb40ac6-e1bd-4b32-8426-43a74cef7871' AND "tang_plans"."id" != 9) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/9 Completed 302 Found in 725ms (ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$.F5LNALROIQLcIMcy9IQzeFXjiJJ.fkm.xvfZJZtfiUK.Qspk5UIq"], ["created_at", "2016-10-03 15:55:50.139264"], ["updated_at", "2016-10-03 15:55:50.139264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bfb40ac6-e1bd-4b32-8426-43a74cef7871' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bfb40ac6-e1bd-4b32-8426-43a74cef7871' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "bfb40ac6-e1bd-4b32-8426-43a74cef7871"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 15:55:50.143759"], ["updated_at", "2016-10-03 15:55:50.143759"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "38"], ["created_at", "2016-10-03 15:55:50.143759"], ["item_id", 10], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"bfb40ac6-e1bd-4b32-8426-43a74cef7871", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"10"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 39]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 10]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'bfb40ac6-e1bd-4b32-8426-43a74cef7871' AND "tang_plans"."id" != 10) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.0ms) Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$OvXlwdmji.tMsLBL6ArEfOgMUdDgBbE33zfzbxruTTZHVZmt5//FW"], ["created_at", "2016-10-03 15:55:50.520062"], ["updated_at", "2016-10-03 15:55:50.520062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bfb40ac6-e1bd-4b32-8426-43a74cef7871' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bfb40ac6-e1bd-4b32-8426-43a74cef7871' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "bfb40ac6-e1bd-4b32-8426-43a74cef7871"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 15:55:50.524154"], ["updated_at", "2016-10-03 15:55:50.524154"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "39"], ["created_at", "2016-10-03 15:55:50.524154"], ["item_id", 11], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"bfb40ac6-e1bd-4b32-8426-43a74cef7871", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"11"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 40]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 11]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = 'bfb40ac6-e1bd-4b32-8426-43a74cef7871' AND "tang_plans"."id" != 11) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.0ms) Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$tfkkK0W4csPIB5SBSjZ7BO7jsUyW5dzCZUaLLUNCw2zrnf2vGU6zi"], ["created_at", "2016-10-03 15:55:51.361050"], ["updated_at", "2016-10-03 15:55:51.361050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bfb40ac6-e1bd-4b32-8426-43a74cef7871' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bfb40ac6-e1bd-4b32-8426-43a74cef7871' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "bfb40ac6-e1bd-4b32-8426-43a74cef7871"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 15:55:51.363974"], ["updated_at", "2016-10-03 15:55:51.363974"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "40"], ["created_at", "2016-10-03 15:55:51.363974"], ["item_id", 12], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"12"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 41]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 12]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 12], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 12\nstripe_id: bfb40ac6-e1bd-4b32-8426-43a74cef7871\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: 0\nhighlight: false\ncreated_at: 2016-10-03 15:55:51.363974000 Z\nupdated_at: 2016-10-03 15:55:51.363974000 Z\n"], ["whodunnit", "41"], ["created_at", "2016-10-03 15:55:51.731585"]] SQL (0.3ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 811ms (ActiveRecord: 1.1ms)  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$NOkKQlhV2Q6sKDGA46f1BepaSoRBIe4Zfli0RGT7IUUuN8Nr/Xn4O"], ["created_at", "2016-10-03 15:55:52.544730"], ["updated_at", "2016-10-03 15:55:52.544730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bfb40ac6-e1bd-4b32-8426-43a74cef7871' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'bfb40ac6-e1bd-4b32-8426-43a74cef7871' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "bfb40ac6-e1bd-4b32-8426-43a74cef7871"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 15:55:52.548116"], ["updated_at", "2016-10-03 15:55:52.548116"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "41"], ["created_at", "2016-10-03 15:55:52.548116"], ["item_id", 13], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"13"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 42]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 13]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 13], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 13\nstripe_id: bfb40ac6-e1bd-4b32-8426-43a74cef7871\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: 0\nhighlight: false\ncreated_at: 2016-10-03 15:55:52.548116000 Z\nupdated_at: 2016-10-03 15:55:52.548116000 Z\n"], ["whodunnit", "42"], ["created_at", "2016-10-03 15:55:52.950499"]] SQL (0.3ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 735ms (ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$SymrccIN4xitIsupNllPa.60r.F/0GOHUShna.PEztF6Hbu7gztWG"], ["created_at", "2016-10-03 15:55:53.690487"], ["updated_at", "2016-10-03 15:55:53.690487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$NLoWI9lHEyJvEw2ZKE6xzeAKY1nxPJ7QdKQUYK/4ntnHZbh6A1v4K"], ["created_at", "2016-10-03 15:55:53.696661"], ["updated_at", "2016-10-03 15:55:53.696661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$H4ZOQCzao9cEpQJbMhW2Cu8Ejb/eXZyTtx6q7/6q1HHwAFr.Mol1O"], ["created_at", "2016-10-03 15:55:53.701711"], ["updated_at", "2016-10-03 15:55:53.701711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$NoHaklgMUYNGKMePzzTzPOrchBlgF7ls.O9RiHXLvOzuj91T3/jwW"], ["created_at", "2016-10-03 15:55:53.706559"], ["updated_at", "2016-10-03 15:55:53.706559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$UJmercEtBHdZdRs8M6d8oOJ4hq.UyXYxMrZlKu2abziGTwXNplspO"], ["created_at", "2016-10-03 15:55:53.711235"], ["updated_at", "2016-10-03 15:55:53.711235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$Rdi1xTUO.eKz6nALHmEHH.eu/Fw.oxIiz5aiHSmlGvylnpGfuakWe"], ["created_at", "2016-10-03 15:55:53.715880"], ["updated_at", "2016-10-03 15:55:53.715880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$EIu7g3iI0sGuhRAznyWsje4sQucwFjUZbNnn.9049nKgfLZvTKRCi"], ["created_at", "2016-10-03 15:55:53.720543"], ["updated_at", "2016-10-03 15:55:53.720543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$DoD1l98s9u6R8.JJfse5..4xUWGfDWxt2//sBcbi/Btibtjp0STwy"], ["created_at", "2016-10-03 15:55:53.725692"], ["updated_at", "2016-10-03 15:55:53.725692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$3AVzvorLeJ/O2pcx10QFvOwsAloVXatRTqLFqdD8V/oedmjwfyiUW"], ["created_at", "2016-10-03 15:55:53.730315"], ["updated_at", "2016-10-03 15:55:53.730315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$n1fjCRhrqmtGP5SEgzLo6u/ecbzzEQp8Rb1N7UFaBfRadmIk4mck6"], ["created_at", "2016-10-03 15:55:53.735213"], ["updated_at", "2016-10-03 15:55:53.735213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 19ms (Views: 10.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$Wo.3.kHScJ2wV1fc.KGyee2OtWo/EDETBV8Mju4FhMbUxhDYyOZqC"], ["created_at", "2016-10-03 15:55:56.906458"], ["updated_at", "2016-10-03 15:55:56.906458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 11:55:56 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.4ms) Rendered devise/sessions/new.html.erb within layouts/application (38.1ms) Completed 200 OK in 324ms (Views: 310.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 11:55:57 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 15:55:57.268349"], ["current_sign_in_at", "2016-10-03 15:55:57.268349"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 15:55:57.269103"], ["id", 53]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 22ms (ActiveRecord: 1.0ms) Started GET "/" for 127.0.0.1 at 2016-10-03 11:55:57 -0400 Processing by HomeController#index as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 11ms (Views: 7.8ms | ActiveRecord: 0.4ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 11:55:57 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (9.4ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (13.5ms) Completed 200 OK in 57ms (Views: 27.4ms | ActiveRecord: 1.8ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 11:55:57 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 15:55:57.401915"], ["updated_at", "2016-10-03 15:55:57.401915"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "53"], ["created_at", "2016-10-03 15:55:57.401915"], ["item_id", 14], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/14 Completed 302 Found in 891ms (ActiveRecord: 3.1ms) Started GET "/tang/admin/plans/14" for 127.0.0.1 at 2016-10-03 11:55:58 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"14"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 14]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (11.3ms) Completed 200 OK in 22ms (Views: 17.4ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$jPnrIANxaGRG/plFcYuFr.PsGmDgETj/nwNVFyBaaF7kFlWJ5o3Xi"], ["created_at", "2016-10-03 15:55:58.334023"], ["updated_at", "2016-10-03 15:55:58.334023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 11:55:58 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (3.0ms) Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 11:55:58 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 15:55:58.361382"], ["current_sign_in_at", "2016-10-03 15:55:58.361382"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 15:55:58.362504"], ["id", 54]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-03 11:55:58 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]] Rendered home/index.html.erb within layouts/application (0.1ms) Completed 200 OK in 6ms (Views: 2.1ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 11:55:58 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (5.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (5.8ms) Completed 200 OK in 11ms (Views: 8.4ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 11:55:58 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (5.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (5.7ms) Completed 200 OK in 26ms (Views: 7.8ms | ActiveRecord: 0.8ms)  (0.3ms) ROLLBACK User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$mIoJFujyba/ksjGvJvDst.SUFUQXApMj6vtaJ7Vfs2TE3tfihviNC"], ["created_at", "2016-10-03 15:55:58.494444"], ["updated_at", "2016-10-03 15:55:58.494444"]]  (6.2ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 11:55:59 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (4.2ms) Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-03 11:55:59 -0400 Started GET "/assets/application-ae2f3e9153ab8790e8aa4db3ee24569c31c04e9721cf338869bc8e4f22fac81c.js" for 127.0.0.1 at 2016-10-03 11:55:59 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 11:56:00 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 15:56:00.475323"], ["current_sign_in_at", "2016-10-03 15:56:00.475323"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 15:56:00.476117"], ["id", 55]]  (0.4ms) COMMIT Redirected to http://127.0.0.1:57953/ Completed 302 Found in 9ms (ActiveRecord: 1.4ms) Started GET "/" for 127.0.0.1 at 2016-10-03 11:56:00 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 15:56:00.580978"], ["updated_at", "2016-10-03 15:56:00.580978"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 15:56:00.580978"], ["item_id", 15], ["item_type", "Tang::Plan"]]  (1.5ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 11:56:00 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Subscription Load (0.7ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (3.3ms) Completed 500 Internal Server Error in 40ms (ActiveRecord: 2.8ms)  (0.6ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (1.2ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (0.9ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (48.0ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$fU3gp0XeX9CwyCJKZuBv8eayB9QCtGyiefSQSS3CXPLbRfHvD/rlW"], ["created_at", "2016-10-03 15:56:00.766934"], ["updated_at", "2016-10-03 15:56:00.766934"]]  (0.2ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 11:56:00 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.7ms) Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 11:56:01 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 15:56:01.203698"], ["current_sign_in_at", "2016-10-03 15:56:01.203698"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 15:56:01.204376"], ["id", 1]]  (0.3ms) COMMIT Redirected to http://127.0.0.1:57953/ Completed 302 Found in 7ms (ActiveRecord: 1.4ms) Started GET "/" for 127.0.0.1 at 2016-10-03 11:56:01 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.3ms)  (0.2ms) BEGIN Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 15:56:01.413054"], ["updated_at", "2016-10-03 15:56:01.413054"]] SQL (0.4ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 15:56:01.413054"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 11:56:01 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.3ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (1.3ms) Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.8ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (49.2ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$1ipLFpaPEYdRfBRK47RSfejt9odBYdisGRx6k8JV8nhbA3tJcnSJ2"], ["created_at", "2016-10-03 16:00:16.101342"], ["updated_at", "2016-10-03 16:00:16.101342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$VfBsJNQvEP7wtani4Us14u3djYBwEWgPq3oO6/GiuzDXCfdVoe65i"], ["created_at", "2016-10-03 16:00:16.109609"], ["updated_at", "2016-10-03 16:00:16.109609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$65D5hlXrOdKXQxC1.9/p4uCd.9eLrer2CfjO3hFF2VY.T/zQjXMAi"], ["created_at", "2016-10-03 16:00:16.115645"], ["updated_at", "2016-10-03 16:00:16.115645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 41ms (Views: 24.4ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$E1H3tx.wfWhV99.y2WEgDeDHcRv.IH75jVUS4czQyTuUXJtCutJCa"], ["created_at", "2016-10-03 16:00:16.167789"], ["updated_at", "2016-10-03 16:00:16.167789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$Da15hjDIPKxJ2JiVg4VXgu83uFYmtfd60iwa02xbDnQxchHi3SxB6"], ["created_at", "2016-10-03 16:00:16.174952"], ["updated_at", "2016-10-03 16:00:16.174952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$2QS1EwmQHrIm1Xnd9rUdYeF1yveBu6cezNdoDEkBtx2L5Va96zx2G"], ["created_at", "2016-10-03 16:00:16.184505"], ["updated_at", "2016-10-03 16:00:16.184505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$dxWbGWdpDYgNCwIruocEtux/URj2Jr3gutpCq3.kek9DsSuCFm2Yu"], ["created_at", "2016-10-03 16:00:16.190157"], ["updated_at", "2016-10-03 16:00:16.190157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$/FlvBVHK9m08trhJmhuNWO89AEyakouo5qohVV.um47zc.wC0Ci8m"], ["created_at", "2016-10-03 16:00:16.195309"], ["updated_at", "2016-10-03 16:00:16.195309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$csXwPzsiHgNkoZbZTOXcROLpVXQ7tZgsT.a3vpvGkA7t9RiYBxlSO"], ["created_at", "2016-10-03 16:00:16.199994"], ["updated_at", "2016-10-03 16:00:16.199994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$ywY0x62Yl2Pu3mnQQQbvhO2J5zO3lXoLOqp0pY5/plvYxKjxr.Nju"], ["created_at", "2016-10-03 16:00:16.205049"], ["updated_at", "2016-10-03 16:00:16.205049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$icUFhlSGVB8HBi4kfUmfDODpoxr1Yy/VMIAiN7bjMFNfEtb7DwLXu"], ["created_at", "2016-10-03 16:00:16.209597"], ["updated_at", "2016-10-03 16:00:16.209597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$BovAinhS.t63DlRywWaWcePXiHOv7UVvmM16k1zG5LrzATYy5wSLK"], ["created_at", "2016-10-03 16:00:16.214358"], ["updated_at", "2016-10-03 16:00:16.214358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$pXGzJfEX2TuWuqzUESmdu.iym2geb8zk0EK2tGDS7W7yT8TEmFyhW"], ["created_at", "2016-10-03 16:00:16.219780"], ["updated_at", "2016-10-03 16:00:16.219780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$TrfVFle7t6AURnt6nfDYZujoburRyTXeF7xqpwkBb.3JpYCJjcd/i"], ["created_at", "2016-10-03 16:00:16.224658"], ["updated_at", "2016-10-03 16:00:16.224658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$cqDg2bx3s1Ehnh1G93I84.LaxaQUbJzovWO31st/LEoDnldkj0zPW"], ["created_at", "2016-10-03 16:00:16.229475"], ["updated_at", "2016-10-03 16:00:16.229475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$AwTE5VucpMFbC.2LG9C9G.m3OrCL/RpBm1p0SNkg0Lkz5wCx6vy/2"], ["created_at", "2016-10-03 16:00:16.234208"], ["updated_at", "2016-10-03 16:00:16.234208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$cvVXC0bs2.Z.sQnNznS3KOLRaAwjPC4k36Ug5VdDoQSF87mqgowWm"], ["created_at", "2016-10-03 16:00:16.239104"], ["updated_at", "2016-10-03 16:00:16.239104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$/RwkjDDH5wO5.L8hRl708.G6a9xdELq9VSfbt3pxa8ZXQxw6ySO22"], ["created_at", "2016-10-03 16:00:16.244148"], ["updated_at", "2016-10-03 16:00:16.244148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$OfFSSFgUqwlGwFJckc9fjeoVT0twcvn9jz8U2/HfbPpR6FpU9ej3W"], ["created_at", "2016-10-03 16:00:16.248837"], ["updated_at", "2016-10-03 16:00:16.248837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$efhL/4eJoXEsQESZY5.VR.DsrhZHZWyGqKxU1P68feaHK4ZHPPkRO"], ["created_at", "2016-10-03 16:00:16.253760"], ["updated_at", "2016-10-03 16:00:16.253760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$q7hsb97kFYwUkjHN.qvtpeR0zO0zDuiIxVvnCvp5WUw/PnWuCU9dW"], ["created_at", "2016-10-03 16:00:16.258487"], ["updated_at", "2016-10-03 16:00:16.258487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$3c4stRrgoaQVVtkWQu7gPuAur6lao.1LVE1i8X.jmqEFUfzizfMRO"], ["created_at", "2016-10-03 16:00:16.263046"], ["updated_at", "2016-10-03 16:00:16.263046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$N8O1P3M.wANi6F3njPF0xuMNY.8DN9kWOGtO636.2Jk8DEujjZhSm"], ["created_at", "2016-10-03 16:00:16.268114"], ["updated_at", "2016-10-03 16:00:16.268114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$32aFmISrAJpdbg5DrRt7T.r5jFC/m0LDog3UkjgC8Wa6xVU.FPn3a"], ["created_at", "2016-10-03 16:00:16.273531"], ["updated_at", "2016-10-03 16:00:16.273531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$SctQfFdouPk46WuogS4Q3O8hUYgglfMLtnM.MumE2B6g7bDMBCG4G"], ["created_at", "2016-10-03 16:00:16.279273"], ["updated_at", "2016-10-03 16:00:16.279273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$wNL27Nzb12IIFAXmHui3l.6fgUfGd2TQ9TAac2fCn0cDUPCVYcWMi"], ["created_at", "2016-10-03 16:00:16.284087"], ["updated_at", "2016-10-03 16:00:16.284087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$iO3FAXNI04MgVCjANAuz0O1y03nZ62N/7xy0YENNhq3mLZial19Sq"], ["created_at", "2016-10-03 16:00:16.288815"], ["updated_at", "2016-10-03 16:00:16.288815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '5ff08811-aa2b-4f2c-9935-3b1fc23a07ea' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '5ff08811-aa2b-4f2c-9935-3b1fc23a07ea' LIMIT 1 SQL (0.5ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "5ff08811-aa2b-4f2c-9935-3b1fc23a07ea"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 16:00:16.301384"], ["updated_at", "2016-10-03 16:00:16.301384"]] SQL (0.5ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-03 16:00:16.301384"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.5ms) Completed 200 OK in 14ms (Views: 12.4ms | ActiveRecord: 0.3ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$0ciapV43Ln6i4f/cZJCGyeH.cEOYJf4drlmt2FdDDZdnYK3BNYp3G"], ["created_at", "2016-10-03 16:00:16.770270"], ["updated_at", "2016-10-03 16:00:16.770270"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '5ff08811-aa2b-4f2c-9935-3b1fc23a07ea' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '5ff08811-aa2b-4f2c-9935-3b1fc23a07ea' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "5ff08811-aa2b-4f2c-9935-3b1fc23a07ea"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 16:00:16.775573"], ["updated_at", "2016-10-03 16:00:16.775573"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-03 16:00:16.775573"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"2"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 28]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (0.4ms) Completed 200 OK in 12ms (Views: 6.5ms | ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$c9Wp2Lg.KFg4H5Am.i6Dl./ZDDp5/JxiskhdCCV9nyL3KKsktMsRa"], ["created_at", "2016-10-03 16:00:17.163695"], ["updated_at", "2016-10-03 16:00:17.163695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.4ms) Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$OSFDsvuQtDVXyhNL4C.0a.9II.3bKkKNK/FulS2/GfTguXO9U4Xu2"], ["created_at", "2016-10-03 16:00:17.179064"], ["updated_at", "2016-10-03 16:00:17.179064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '5ff08811-aa2b-4f2c-9935-3b1fc23a07ea' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '5ff08811-aa2b-4f2c-9935-3b1fc23a07ea' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "5ff08811-aa2b-4f2c-9935-3b1fc23a07ea"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 16:00:17.183613"], ["updated_at", "2016-10-03 16:00:17.183613"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-03 16:00:17.183613"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#edit as HTML Parameters: {"id"=>"3"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 30]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.2ms) Completed 200 OK in 8ms (Views: 5.6ms | ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$/h813TxxsyHbm//Qq7/yNuTnH7eQXmQOdsKREud6kqWyAdDm9hdMS"], ["created_at", "2016-10-03 16:00:17.562865"], ["updated_at", "2016-10-03 16:00:17.562865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"5ff08811-aa2b-4f2c-9935-3b1fc23a07ea", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '5ff08811-aa2b-4f2c-9935-3b1fc23a07ea' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '5ff08811-aa2b-4f2c-9935-3b1fc23a07ea' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "5ff08811-aa2b-4f2c-9935-3b1fc23a07ea"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 16:00:17.573099"], ["updated_at", "2016-10-03 16:00:17.573099"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "31"], ["created_at", "2016-10-03 16:00:17.573099"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/4 Completed 302 Found in 470ms (ActiveRecord: 1.3ms)  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$htNOgJXPnaOflACPay9EE.3epj7xBA6WMUe9Rlp3CxCe664tXU0zu"], ["created_at", "2016-10-03 16:00:18.045134"], ["updated_at", "2016-10-03 16:00:18.045134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"5ff08811-aa2b-4f2c-9935-3b1fc23a07ea", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '5ff08811-aa2b-4f2c-9935-3b1fc23a07ea' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '5ff08811-aa2b-4f2c-9935-3b1fc23a07ea' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "5ff08811-aa2b-4f2c-9935-3b1fc23a07ea"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 16:00:18.052942"], ["updated_at", "2016-10-03 16:00:18.052942"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "32"], ["created_at", "2016-10-03 16:00:18.052942"], ["item_id", 5], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/5 Completed 302 Found in 404ms (ActiveRecord: 1.3ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$VnwBpDcXlYZjkyfUKI8LQ.hOJIhMACicghKXKao0d/aKw30uvXNF."], ["created_at", "2016-10-03 16:00:18.460356"], ["updated_at", "2016-10-03 16:00:18.460356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"5ff08811-aa2b-4f2c-9935-3b1fc23a07ea", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '5ff08811-aa2b-4f2c-9935-3b1fc23a07ea' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '5ff08811-aa2b-4f2c-9935-3b1fc23a07ea' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "5ff08811-aa2b-4f2c-9935-3b1fc23a07ea"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 16:00:18.470049"], ["updated_at", "2016-10-03 16:00:18.470049"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "33"], ["created_at", "2016-10-03 16:00:18.470049"], ["item_id", 6], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/6 Completed 302 Found in 384ms (ActiveRecord: 1.3ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$7X8vTNEUuplSg8/ZS7lIZOzxdEPydQ5YqkoqXQ5IF4eInKY6EeMry"], ["created_at", "2016-10-03 16:00:18.859225"], ["updated_at", "2016-10-03 16:00:18.859225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"5ff08811-aa2b-4f2c-9935-3b1fc23a07ea", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '5ff08811-aa2b-4f2c-9935-3b1fc23a07ea' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.1ms) Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 SQL (1.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$2Gn0ce0nMlZqqynDLS/hxujDLwjob1rYwsfynxUB1JoIHMKYIDdde"], ["created_at", "2016-10-03 16:00:18.879732"], ["updated_at", "2016-10-03 16:00:18.879732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"5ff08811-aa2b-4f2c-9935-3b1fc23a07ea", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '5ff08811-aa2b-4f2c-9935-3b1fc23a07ea' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.0ms) Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$B18S6UBwVLeBHhc8zBvVcuO.E3cZEV7hj4cbiJGngPCesJ28B8Z4e"], ["created_at", "2016-10-03 16:00:18.896349"], ["updated_at", "2016-10-03 16:00:18.896349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '5ff08811-aa2b-4f2c-9935-3b1fc23a07ea' LIMIT 1 Tang::Plan Exists (1.0ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '5ff08811-aa2b-4f2c-9935-3b1fc23a07ea' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "5ff08811-aa2b-4f2c-9935-3b1fc23a07ea"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 16:00:18.899861"], ["updated_at", "2016-10-03 16:00:18.899861"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-03 16:00:18.899861"], ["item_id", 7], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$7vXZqlEWi45nkCl6yfEKrOVaphrZM8jIJabUM0MUK4n/P9Rz0bchK"], ["created_at", "2016-10-03 16:00:19.313904"], ["updated_at", "2016-10-03 16:00:19.313904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '5ff08811-aa2b-4f2c-9935-3b1fc23a07ea' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '5ff08811-aa2b-4f2c-9935-3b1fc23a07ea' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "5ff08811-aa2b-4f2c-9935-3b1fc23a07ea"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 16:00:19.318162"], ["updated_at", "2016-10-03 16:00:19.318162"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-03 16:00:19.318162"], ["item_id", 8], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"5ff08811-aa2b-4f2c-9935-3b1fc23a07ea", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"8"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 37]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 8]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '5ff08811-aa2b-4f2c-9935-3b1fc23a07ea' AND "tang_plans"."id" != 8) LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '5ff08811-aa2b-4f2c-9935-3b1fc23a07ea' AND "tang_plans"."id" != 8) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/8 Completed 302 Found in 730ms (ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$a8Hg9M/55k9PdFi2IlFy8etJza4vFiVU2fDxFtvzudk1vKZJP13k2"], ["created_at", "2016-10-03 16:00:20.447352"], ["updated_at", "2016-10-03 16:00:20.447352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '5ff08811-aa2b-4f2c-9935-3b1fc23a07ea' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '5ff08811-aa2b-4f2c-9935-3b1fc23a07ea' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "5ff08811-aa2b-4f2c-9935-3b1fc23a07ea"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 16:00:20.451225"], ["updated_at", "2016-10-03 16:00:20.451225"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "37"], ["created_at", "2016-10-03 16:00:20.451225"], ["item_id", 9], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"5ff08811-aa2b-4f2c-9935-3b1fc23a07ea", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"9"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 38]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 9]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '5ff08811-aa2b-4f2c-9935-3b1fc23a07ea' AND "tang_plans"."id" != 9) LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '5ff08811-aa2b-4f2c-9935-3b1fc23a07ea' AND "tang_plans"."id" != 9) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/9 Completed 302 Found in 721ms (ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$GHB9Pe6WyEhrkq225ouYL.F51603px6LQyKwFzAzm5XPjgy5ssRhe"], ["created_at", "2016-10-03 16:00:21.580351"], ["updated_at", "2016-10-03 16:00:21.580351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '5ff08811-aa2b-4f2c-9935-3b1fc23a07ea' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '5ff08811-aa2b-4f2c-9935-3b1fc23a07ea' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "5ff08811-aa2b-4f2c-9935-3b1fc23a07ea"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 16:00:21.584037"], ["updated_at", "2016-10-03 16:00:21.584037"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "38"], ["created_at", "2016-10-03 16:00:21.584037"], ["item_id", 10], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"5ff08811-aa2b-4f2c-9935-3b1fc23a07ea", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"10"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 39]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 10]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '5ff08811-aa2b-4f2c-9935-3b1fc23a07ea' AND "tang_plans"."id" != 10) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 6ms (Views: 0.8ms | ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$LkOBgyXxGE.FScAlImA1jOfXKnhGCI/D6oI4aDxwcUnpzR76vUARi"], ["created_at", "2016-10-03 16:00:21.982437"], ["updated_at", "2016-10-03 16:00:21.982437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '5ff08811-aa2b-4f2c-9935-3b1fc23a07ea' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '5ff08811-aa2b-4f2c-9935-3b1fc23a07ea' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "5ff08811-aa2b-4f2c-9935-3b1fc23a07ea"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 16:00:21.986345"], ["updated_at", "2016-10-03 16:00:21.986345"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "39"], ["created_at", "2016-10-03 16:00:21.986345"], ["item_id", 11], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"5ff08811-aa2b-4f2c-9935-3b1fc23a07ea", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"11"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 40]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 11]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '5ff08811-aa2b-4f2c-9935-3b1fc23a07ea' AND "tang_plans"."id" != 11) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.0ms) Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$C8vq1s4cSxbLXvHSPei6SuijVPMVxg2pzXuGjLauGjh4GJ15CcUy."], ["created_at", "2016-10-03 16:00:22.406303"], ["updated_at", "2016-10-03 16:00:22.406303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '5ff08811-aa2b-4f2c-9935-3b1fc23a07ea' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '5ff08811-aa2b-4f2c-9935-3b1fc23a07ea' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "5ff08811-aa2b-4f2c-9935-3b1fc23a07ea"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 16:00:22.409411"], ["updated_at", "2016-10-03 16:00:22.409411"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "40"], ["created_at", "2016-10-03 16:00:22.409411"], ["item_id", 12], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"12"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 41]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 12]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 12], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 12\nstripe_id: 5ff08811-aa2b-4f2c-9935-3b1fc23a07ea\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: 0\nhighlight: false\ncreated_at: 2016-10-03 16:00:22.409411000 Z\nupdated_at: 2016-10-03 16:00:22.409411000 Z\n"], ["whodunnit", "41"], ["created_at", "2016-10-03 16:00:22.786423"]] SQL (0.2ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 787ms (ActiveRecord: 1.2ms)  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$Bu87rjQavM7tZAP29wALoeSJjH6TL6kcVLeGfniPHpZ6nLWAb0b7i"], ["created_at", "2016-10-03 16:00:23.572493"], ["updated_at", "2016-10-03 16:00:23.572493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '5ff08811-aa2b-4f2c-9935-3b1fc23a07ea' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '5ff08811-aa2b-4f2c-9935-3b1fc23a07ea' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "5ff08811-aa2b-4f2c-9935-3b1fc23a07ea"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 16:00:23.576532"], ["updated_at", "2016-10-03 16:00:23.576532"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "41"], ["created_at", "2016-10-03 16:00:23.576532"], ["item_id", 13], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"13"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 42]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 13]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 13], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 13\nstripe_id: 5ff08811-aa2b-4f2c-9935-3b1fc23a07ea\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: 0\nhighlight: false\ncreated_at: 2016-10-03 16:00:23.576532000 Z\nupdated_at: 2016-10-03 16:00:23.576532000 Z\n"], ["whodunnit", "42"], ["created_at", "2016-10-03 16:00:24.018147"]] SQL (0.3ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 736ms (ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$WPokQuMV9YlU3ZbL1F9PI.Zymyen5Gk3wNGGrjjwFsyFaKNCruwIO"], ["created_at", "2016-10-03 16:00:24.757131"], ["updated_at", "2016-10-03 16:00:24.757131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$pP5o40ve/v7D.ae7cL4Ol.qwYp.WbEFmqbViq3Ww5wx/dyvnF6ZDO"], ["created_at", "2016-10-03 16:00:24.762691"], ["updated_at", "2016-10-03 16:00:24.762691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$wuShWQNAevJX.yL285YTbuMumTiYKscK6h0PoVLsAK0pY0urca2Yy"], ["created_at", "2016-10-03 16:00:24.767726"], ["updated_at", "2016-10-03 16:00:24.767726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$3M.rgP3kZ4cwWceUBX.TKOOtoZ1GmzQVyFh8skF72YIzdmyI20nXu"], ["created_at", "2016-10-03 16:00:24.772166"], ["updated_at", "2016-10-03 16:00:24.772166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$ZtbJlRrCUZ5B209p3j9Xa.Xlbl/oOe3HkuoPoBUuQN2py5/MJQiNC"], ["created_at", "2016-10-03 16:00:24.776554"], ["updated_at", "2016-10-03 16:00:24.776554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$BdOA7uowebASKp96eExbPOP0VaJXtbnkyehzwNgftk7ZEarHHICSG"], ["created_at", "2016-10-03 16:00:24.780959"], ["updated_at", "2016-10-03 16:00:24.780959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$Ujjsj/OnqfFNZ0LRcaqwyedDxaoNhl6FwqskFCggGLAt4HVt86GTC"], ["created_at", "2016-10-03 16:00:24.785409"], ["updated_at", "2016-10-03 16:00:24.785409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$4vuOqoCmVK8/VxjyzbvIIOD4oKQrh67f0ruQ5NZXctV20canbn0AO"], ["created_at", "2016-10-03 16:00:24.790192"], ["updated_at", "2016-10-03 16:00:24.790192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$39z1wo/FYMWAcTL.4B8LROEB7doETFHG2UtuQWiXrll4El977hvca"], ["created_at", "2016-10-03 16:00:24.795058"], ["updated_at", "2016-10-03 16:00:24.795058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$9pDcMFbbGyZQU9XrwuYqnegYRXIMPbqHhR7GoUss1KHIpqjBQf8.."], ["created_at", "2016-10-03 16:00:24.801388"], ["updated_at", "2016-10-03 16:00:24.801388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 13ms (Views: 7.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$TYo9iaGFE7xFPO8q7yrpfO64Rr09VBO.Aayc2Aq8eJWJTIJ3M/cN6"], ["created_at", "2016-10-03 16:00:27.889478"], ["updated_at", "2016-10-03 16:00:27.889478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 12:00:27 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.1ms) Rendered devise/sessions/new.html.erb within layouts/application (24.8ms) Completed 200 OK in 234ms (Views: 221.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 12:00:28 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 16:00:28.154651"], ["current_sign_in_at", "2016-10-03 16:00:28.154651"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 16:00:28.155385"], ["id", 53]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 17ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-03 12:00:28 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 12:00:28 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (30.2ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (36.1ms) Completed 200 OK in 73ms (Views: 48.7ms | ActiveRecord: 1.2ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 12:00:28 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (6.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 16:00:28.293222"], ["updated_at", "2016-10-03 16:00:28.293222"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "53"], ["created_at", "2016-10-03 16:00:28.293222"], ["item_id", 14], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/14 Completed 302 Found in 817ms (ActiveRecord: 8.8ms) Started GET "/tang/admin/plans/14" for 127.0.0.1 at 2016-10-03 12:00:29 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"14"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 14]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (10.1ms) Completed 200 OK in 21ms (Views: 15.3ms | ActiveRecord: 0.5ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$qbnJ.LTQLR3J24y/ePBQUueBOCGLiRPiUPQL9HsfX2P0DmtOBIfBe"], ["created_at", "2016-10-03 16:00:29.153197"], ["updated_at", "2016-10-03 16:00:29.153197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 12:00:29 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (9.6ms) Completed 200 OK in 14ms (Views: 13.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 12:00:29 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 16:00:29.188032"], ["current_sign_in_at", "2016-10-03 16:00:29.188032"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 16:00:29.190832"], ["id", 54]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2016-10-03 12:00:29 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 12:00:29 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (6.9ms) Completed 200 OK in 12ms (Views: 9.4ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 12:00:29 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.5ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (6.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (7.3ms) Completed 200 OK in 24ms (Views: 9.7ms | ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$y5l0COpp8cFgRgXhKdvzS.lRygwMPcOjwICPMDeep9CCWppfuxpC."], ["created_at", "2016-10-03 16:00:29.331026"], ["updated_at", "2016-10-03 16:00:29.331026"]]  (6.1ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 12:00:30 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-03 12:00:30 -0400 Started GET "/assets/application-ae2f3e9153ab8790e8aa4db3ee24569c31c04e9721cf338869bc8e4f22fac81c.js" for 127.0.0.1 at 2016-10-03 12:00:30 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 12:00:31 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 16:00:31.116986"], ["current_sign_in_at", "2016-10-03 16:00:31.116986"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 16:00:31.117744"], ["id", 55]]  (0.4ms) COMMIT Redirected to http://127.0.0.1:58297/ Completed 302 Found in 9ms (ActiveRecord: 1.6ms) Started GET "/" for 127.0.0.1 at 2016-10-03 12:00:31 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 16:00:31.220285"], ["updated_at", "2016-10-03 16:00:31.220285"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 16:00:31.220285"], ["item_id", 15], ["item_type", "Tang::Plan"]]  (1.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 12:00:31 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Subscription Load (12.7ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.5ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (13.4ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.4ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (23.4ms) Completed 200 OK in 71ms (Views: 21.2ms | ActiveRecord: 29.5ms) Started GET "/tang/account/subscription/new?plan=15" for 127.0.0.1 at 2016-10-03 12:00:31 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"15"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (7.3ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (15.0ms) Completed 200 OK in 34ms (Views: 19.7ms | ActiveRecord: 1.9ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 12:00:32 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"15"}, "stripe_token"=>"test_tok_1"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Tang::Subscription Exists (0.4ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 55 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 55) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 55) LIMIT 1 SQL (0.2ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-03 16:00:32.821788"], ["id", 55]]  (14.8ms) COMMIT  (0.1ms) BEGIN Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 55 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (8.6ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 15], ["customer_id", 55], ["stripe_id", "test_su_4"], ["created_at", "2016-10-03 16:00:32.843973"], ["updated_at", "2016-10-03 16:00:32.843973"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "55"], ["created_at", "2016-10-03 16:00:32.843973"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.3ms) COMMIT Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]]  (0.1ms) BEGIN SQL (0.8ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 55], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 9], ["exp_year", 2018], ["fingerprint", "hrLgWzEscxDirlpO"], ["funding", "credit"], ["last4", "4242"], ["name", "Johnny App"], ["created_at", "2016-10-03 16:00:32.878817"], ["updated_at", "2016-10-03 16:00:32.878817"]]  (0.3ms) COMMIT Redirected to http://127.0.0.1:58297/tang/account/subscription Completed 302 Found in 73ms (ActiveRecord: 29.8ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 12:00:32 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Subscription Load (0.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > 0) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.4ms) Completed 200 OK in 9ms (Views: 3.5ms | ActiveRecord: 1.9ms)  (2.3ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (5.5ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (4.2ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (48.6ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$krKtnywKtzvZgMaGnz099uXqZUb3lodEjBdPqvuBbfJVrbQEbjXf2"], ["created_at", "2016-10-03 16:00:36.851262"], ["updated_at", "2016-10-03 16:00:36.851262"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 12:00:36 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 12:00:36 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 16:00:36.988540"], ["current_sign_in_at", "2016-10-03 16:00:36.988540"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 16:00:36.989207"], ["id", 1]]  (0.3ms) COMMIT Redirected to http://127.0.0.1:58297/ Completed 302 Found in 7ms (ActiveRecord: 1.2ms) Started GET "/" for 127.0.0.1 at 2016-10-03 12:00:36 -0400 Processing by HomeController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.2ms) BEGIN Tang::Plan Exists (0.7ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.4ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 16:00:37.093151"], ["updated_at", "2016-10-03 16:00:37.093151"]] SQL (0.5ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 16:00:37.093151"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (2.1ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 12:00:37 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.4ms) Completed 200 OK in 7ms (Views: 3.4ms | ActiveRecord: 1.3ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-03 12:00:37 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.1ms) Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 12:00:37 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"test_tok_1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.2ms) Completed 200 OK in 7ms (Views: 2.6ms | ActiveRecord: 0.8ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (28.1ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (23.9ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$eYvX1MW8bMXmttLvMa4BBeUeDN6qH2JMKcApm2dfXE1QEbq3.35na"], ["created_at", "2016-10-03 16:04:20.745076"], ["updated_at", "2016-10-03 16:04:20.745076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$SHBF6VdTI3jhO8LSqtaz7.ZHZ4AFGXQWxBgWWPYOgEi3rEoMDmLES"], ["created_at", "2016-10-03 16:04:20.776915"], ["updated_at", "2016-10-03 16:04:20.776915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$wcWQqNqh7bPQwglF84PT3.WvuMhVBjdcDpzP1oAlsMVZjbVFL1syO"], ["created_at", "2016-10-03 16:04:20.783289"], ["updated_at", "2016-10-03 16:04:20.783289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::CouponsController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/coupons/new.html.erb within layouts/application (0.3ms) Completed 200 OK in 45ms (Views: 26.8ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$fuFlg5tTNOmVaumMsiBk0u0xisRe3GVIWMXK.RwRy5iXeZdmZ2APW"], ["created_at", "2016-10-03 16:04:20.839659"], ["updated_at", "2016-10-03 16:04:20.839659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person5@example.com"], ["encrypted_password", "$2a$04$Hy.vjibyaenEJTZgHeE7zuKIx1ylWrQ3KSFDtB4PCMWOVcDp3Kvke"], ["created_at", "2016-10-03 16:04:20.844442"], ["updated_at", "2016-10-03 16:04:20.844442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "tang_coupons"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person6@example.com"], ["encrypted_password", "$2a$04$2kIzMgADNyY0sbiWVnSuEecxm/r/tdHLiF4bvM9CtKDKd1D4921o."], ["created_at", "2016-10-03 16:04:20.854835"], ["updated_at", "2016-10-03 16:04:20.854835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person7@example.com"], ["encrypted_password", "$2a$04$vpsii4TEVrgBHOy4hgS2aOek1v4FAHtpqmDgMiXKHEz7UAjR6Bib."], ["created_at", "2016-10-03 16:04:20.860460"], ["updated_at", "2016-10-03 16:04:20.860460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person8@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person8@example.com"], ["encrypted_password", "$2a$04$Ztc3qhGbMrgPCbvgopCsUevAcNhmrJ2ESoytPX0HlWcnLCtttVlDa"], ["created_at", "2016-10-03 16:04:20.865670"], ["updated_at", "2016-10-03 16:04:20.865670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person9@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person9@example.com"], ["encrypted_password", "$2a$04$7WjHcPIpscyFrfOuEBKF9.B9am5rRG54IPsTWxj990GslDtJ8Y6E6"], ["created_at", "2016-10-03 16:04:20.870855"], ["updated_at", "2016-10-03 16:04:20.870855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person10@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person10@example.com"], ["encrypted_password", "$2a$04$4KIM9O76ddEEd.Ht.V4PLufbLAN53mfLlL5HQWQX.60Y1A6uuqtlq"], ["created_at", "2016-10-03 16:04:20.875812"], ["updated_at", "2016-10-03 16:04:20.875812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person11@example.com"], ["encrypted_password", "$2a$04$tC/MoB.dFW5MrDItJTFGd.ytdfpul1RoiDL/t4w/qmziTFQxHsVCK"], ["created_at", "2016-10-03 16:04:20.880073"], ["updated_at", "2016-10-03 16:04:20.880073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person12@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person12@example.com"], ["encrypted_password", "$2a$04$PlW3S6BdAFv3Yq6Pq55Mm.uoOvIWZh5ol9P3FH2UOFWu1uhaHz/Qy"], ["created_at", "2016-10-03 16:04:20.884855"], ["updated_at", "2016-10-03 16:04:20.884855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person13@example.com"], ["encrypted_password", "$2a$04$ShgwwRjz.iT6hqImaU9Vm.cV/HBvUyNOxANXGL3wnr8QKUd/vpWWq"], ["created_at", "2016-10-03 16:04:20.889612"], ["updated_at", "2016-10-03 16:04:20.889612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person14@example.com"], ["encrypted_password", "$2a$04$gTnVq5P5fhDKu.iHlTkqsehCjaCDs0mSLaGeNFmc8LPhNPM61AzG."], ["created_at", "2016-10-03 16:04:20.894821"], ["updated_at", "2016-10-03 16:04:20.894821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person15@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person15@example.com"], ["encrypted_password", "$2a$04$h.yyOJHeyKZjB4AxnBPyQuqS/ipO3CArhgng9ZMhD07s8bvMAA/P2"], ["created_at", "2016-10-03 16:04:20.899525"], ["updated_at", "2016-10-03 16:04:20.899525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person16@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person16@example.com"], ["encrypted_password", "$2a$04$NRliCxi9H.1tBrm1sQPIWe9qWYphgfhmTvujLQ4KLlO29q72vgRGu"], ["created_at", "2016-10-03 16:04:20.903858"], ["updated_at", "2016-10-03 16:04:20.903858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person17@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person17@example.com"], ["encrypted_password", "$2a$04$4QbhVy8b6R8vEjuI5uYlru2ZsRmRAqP/E1l6diBT8U6mLi6mOARci"], ["created_at", "2016-10-03 16:04:20.908900"], ["updated_at", "2016-10-03 16:04:20.908900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person18@example.com"], ["encrypted_password", "$2a$04$2nXCogZ8dn2ZYvhTkTb7IeSkPV85YrtA451pyCnzChYFFhobIvjA."], ["created_at", "2016-10-03 16:04:20.914407"], ["updated_at", "2016-10-03 16:04:20.914407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person19@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person19@example.com"], ["encrypted_password", "$2a$04$0eXJucVfSWO7ifnm5xmJp.frVx8zV5zJZr0gp5/5fyNqeMLu3ZYka"], ["created_at", "2016-10-03 16:04:20.920467"], ["updated_at", "2016-10-03 16:04:20.920467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person20@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person20@example.com"], ["encrypted_password", "$2a$04$tO7MJi71iJMPFvf8SJ06MenMMmiV29JTU1BcXItDuXQ0qEk1hzj9G"], ["created_at", "2016-10-03 16:04:20.926197"], ["updated_at", "2016-10-03 16:04:20.926197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person21@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person21@example.com"], ["encrypted_password", "$2a$04$t9My3sHIYh34/G/LqtfzAOYpxf1v5VY48peqMeIPabxneqbFxYeRK"], ["created_at", "2016-10-03 16:04:20.930888"], ["updated_at", "2016-10-03 16:04:20.930888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person22@example.com"], ["encrypted_password", "$2a$04$OLLr3655VE2NQoF1qpXKyut9RqYtSKovqAD6D/CEH5nxSTNRgddUi"], ["created_at", "2016-10-03 16:04:20.936337"], ["updated_at", "2016-10-03 16:04:20.936337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person23@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person23@example.com"], ["encrypted_password", "$2a$04$sbWGNfLJma4sQH.OjASBReXX/KIj6cR/l8fypwi6Dh/GSXRQcNe6O"], ["created_at", "2016-10-03 16:04:20.941992"], ["updated_at", "2016-10-03 16:04:20.941992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person24@example.com"], ["encrypted_password", "$2a$04$dhGjroqkeO6ONU0RzhHKqeF0BZY7NA5y0Snzte7R8mV3Yvx5OZ7xS"], ["created_at", "2016-10-03 16:04:20.946764"], ["updated_at", "2016-10-03 16:04:20.946764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person25@example.com"], ["encrypted_password", "$2a$04$BA.xNLdiFgzQLpmZ3iwb2uwjMM7c.r5qZYHu2fFDJ6T3HguN7aQJG"], ["created_at", "2016-10-03 16:04:20.952075"], ["updated_at", "2016-10-03 16:04:20.952075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person26@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person26@example.com"], ["encrypted_password", "$2a$04$fEYZihGlN/E.MdcOemDAsO7ehjXaLvPPn9zQgnKBgsvxQZS2Qrfoy"], ["created_at", "2016-10-03 16:04:20.957013"], ["updated_at", "2016-10-03 16:04:20.957013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person27@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person27@example.com"], ["encrypted_password", "$2a$04$fQeCvlGT3xpugrA2yh5vw.scx9LmJ/bRzJKcd/VZ4ltz9n5ldbV4y"], ["created_at", "2016-10-03 16:04:20.962028"], ["updated_at", "2016-10-03 16:04:20.962028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6839195e-db26-4358-8d87-071761490966' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6839195e-db26-4358-8d87-071761490966' LIMIT 1 SQL (1.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "6839195e-db26-4358-8d87-071761490966"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 16:04:20.973956"], ["updated_at", "2016-10-03 16:04:20.973956"]] SQL (12.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "3"], ["created_at", "2016-10-03 16:04:20.973956"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#index as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 13ms (Views: 10.8ms | ActiveRecord: 0.3ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person28@example.com"], ["encrypted_password", "$2a$04$EP0HQ.NvOZcjmbAYMLUo0OBXXm3cGRZ5eW5.5d8MCXBpSFbeXRx6m"], ["created_at", "2016-10-03 16:04:21.956607"], ["updated_at", "2016-10-03 16:04:21.956607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6839195e-db26-4358-8d87-071761490966' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6839195e-db26-4358-8d87-071761490966' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "6839195e-db26-4358-8d87-071761490966"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 16:04:21.960631"], ["updated_at", "2016-10-03 16:04:21.960631"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "27"], ["created_at", "2016-10-03 16:04:21.960631"], ["item_id", 2], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"2"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 28]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 2]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (0.2ms) Completed 200 OK in 10ms (Views: 5.3ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person29@example.com"], ["encrypted_password", "$2a$04$ye3s/sKX7eqquoevePWgV.x6VkDfFpr7f.Bo9asjYdDC8nRvM8F/u"], ["created_at", "2016-10-03 16:04:22.335118"], ["updated_at", "2016-10-03 16:04:22.335118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#new as HTML Parameters: {"params"=>{}, "session"=>{}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 29]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.4ms) Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person30@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person30@example.com"], ["encrypted_password", "$2a$04$uQfuCvPUdDmOYdcNX.geM.bozYNa/sPoqPK8LovTX2KTHFZkm1aAO"], ["created_at", "2016-10-03 16:04:22.350785"], ["updated_at", "2016-10-03 16:04:22.350785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6839195e-db26-4358-8d87-071761490966' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6839195e-db26-4358-8d87-071761490966' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "6839195e-db26-4358-8d87-071761490966"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 16:04:22.354481"], ["updated_at", "2016-10-03 16:04:22.354481"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "29"], ["created_at", "2016-10-03 16:04:22.354481"], ["item_id", 3], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#edit as HTML Parameters: {"id"=>"3"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 30]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 3]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.2ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person31@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person31@example.com"], ["encrypted_password", "$2a$04$QgiYxxAjp2dtYxd6f8BQ..SVdkwV5W78aBjjkQg8WvyeYTX4qXH0i"], ["created_at", "2016-10-03 16:04:22.802998"], ["updated_at", "2016-10-03 16:04:22.802998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"6839195e-db26-4358-8d87-071761490966", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 31]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6839195e-db26-4358-8d87-071761490966' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6839195e-db26-4358-8d87-071761490966' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "6839195e-db26-4358-8d87-071761490966"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 16:04:22.811606"], ["updated_at", "2016-10-03 16:04:22.811606"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "31"], ["created_at", "2016-10-03 16:04:22.811606"], ["item_id", 4], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/4 Completed 302 Found in 370ms (ActiveRecord: 1.3ms)  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person32@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person32@example.com"], ["encrypted_password", "$2a$04$JkHxNZzqKYt3NXg0BFigLOp9XtFrCOUbZ/UM5yEdRqrKGMmGyHa.K"], ["created_at", "2016-10-03 16:04:23.184229"], ["updated_at", "2016-10-03 16:04:23.184229"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"6839195e-db26-4358-8d87-071761490966", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 32]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6839195e-db26-4358-8d87-071761490966' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6839195e-db26-4358-8d87-071761490966' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "6839195e-db26-4358-8d87-071761490966"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 16:04:23.193208"], ["updated_at", "2016-10-03 16:04:23.193208"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "32"], ["created_at", "2016-10-03 16:04:23.193208"], ["item_id", 5], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/5 Completed 302 Found in 369ms (ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person33@example.com"], ["encrypted_password", "$2a$04$tqpc.na1AGCc6wPt9jX52OwZW2CxQ9Ha2aDR8ZhW7IhW6hLSvdGBq"], ["created_at", "2016-10-03 16:04:23.565207"], ["updated_at", "2016-10-03 16:04:23.565207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"6839195e-db26-4358-8d87-071761490966", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 33]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6839195e-db26-4358-8d87-071761490966' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6839195e-db26-4358-8d87-071761490966' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "6839195e-db26-4358-8d87-071761490966"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["order", 0], ["created_at", "2016-10-03 16:04:23.572768"], ["updated_at", "2016-10-03 16:04:23.572768"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "33"], ["created_at", "2016-10-03 16:04:23.572768"], ["item_id", 6], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/6 Completed 302 Found in 453ms (ActiveRecord: 1.1ms) Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person34@example.com"], ["encrypted_password", "$2a$04$hOXtizGjTVetVLPkf91.FerYV5nBCijt00OajwUd6AvWCd8eYJVvS"], ["created_at", "2016-10-03 16:04:24.031941"], ["updated_at", "2016-10-03 16:04:24.031941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"6839195e-db26-4358-8d87-071761490966", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 34]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6839195e-db26-4358-8d87-071761490966' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.0ms) Completed 200 OK in 15ms (Views: 0.6ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person35@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person35@example.com"], ["encrypted_password", "$2a$04$5JdcBikgFZM1vdLsHC6CPOSBeIXDvBhRzBuK0oz91ayiw/kiT2Nkq"], ["created_at", "2016-10-03 16:04:24.056175"], ["updated_at", "2016-10-03 16:04:24.056175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"plan"=>{"stripe_id"=>"6839195e-db26-4358-8d87-071761490966", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 35]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6839195e-db26-4358-8d87-071761490966' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (0.0ms) Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person36@example.com"], ["encrypted_password", "$2a$04$ToczNOQ2M4f17DjCW1cGe.lxvdv5FU/Sc0/SpQP5pIbwT8uCivnEK"], ["created_at", "2016-10-03 16:04:24.070071"], ["updated_at", "2016-10-03 16:04:24.070071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6839195e-db26-4358-8d87-071761490966' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6839195e-db26-4358-8d87-071761490966' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "6839195e-db26-4358-8d87-071761490966"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 16:04:24.073100"], ["updated_at", "2016-10-03 16:04:24.073100"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-03 16:04:24.073100"], ["item_id", 7], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person37@example.com"], ["encrypted_password", "$2a$04$.uhrUgUQgKmgx6LLA/G8auC.rwtoQfBs.49Bq5840YpBVcZHuJg1O"], ["created_at", "2016-10-03 16:04:24.515557"], ["updated_at", "2016-10-03 16:04:24.515557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6839195e-db26-4358-8d87-071761490966' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6839195e-db26-4358-8d87-071761490966' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "6839195e-db26-4358-8d87-071761490966"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 16:04:24.519029"], ["updated_at", "2016-10-03 16:04:24.519029"]] SQL (0.2ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "35"], ["created_at", "2016-10-03 16:04:24.519029"], ["item_id", 8], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"6839195e-db26-4358-8d87-071761490966", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"8"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 37]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 8]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '6839195e-db26-4358-8d87-071761490966' AND "tang_plans"."id" != 8) LIMIT 1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '6839195e-db26-4358-8d87-071761490966' AND "tang_plans"."id" != 8) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/8 Completed 302 Found in 723ms (ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person38@example.com"], ["encrypted_password", "$2a$04$q2smPUsq1ujHdHP3NUfs4O7LN2qK9Uk90/nFueo.kZw5VuHCEA93S"], ["created_at", "2016-10-03 16:04:25.621190"], ["updated_at", "2016-10-03 16:04:25.621190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6839195e-db26-4358-8d87-071761490966' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6839195e-db26-4358-8d87-071761490966' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "6839195e-db26-4358-8d87-071761490966"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 16:04:25.625523"], ["updated_at", "2016-10-03 16:04:25.625523"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "37"], ["created_at", "2016-10-03 16:04:25.625523"], ["item_id", 9], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"6839195e-db26-4358-8d87-071761490966", "name"=>"Amazing Gold Plan", "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"9"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 38]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 9]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '6839195e-db26-4358-8d87-071761490966' AND "tang_plans"."id" != 9) LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '6839195e-db26-4358-8d87-071761490966' AND "tang_plans"."id" != 9) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans/9 Completed 302 Found in 841ms (ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person39@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person39@example.com"], ["encrypted_password", "$2a$04$fVE1TYJmAFKoq.fpwDZIX.l6UbwsUzHCkqK3/0NBfJhtW6gMJoU0i"], ["created_at", "2016-10-03 16:04:26.850023"], ["updated_at", "2016-10-03 16:04:26.850023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6839195e-db26-4358-8d87-071761490966' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6839195e-db26-4358-8d87-071761490966' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "6839195e-db26-4358-8d87-071761490966"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 16:04:26.854341"], ["updated_at", "2016-10-03 16:04:26.854341"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "38"], ["created_at", "2016-10-03 16:04:26.854341"], ["item_id", 10], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"6839195e-db26-4358-8d87-071761490966", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"10"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 39]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 10]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '6839195e-db26-4358-8d87-071761490966' AND "tang_plans"."id" != 10) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person40@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person40@example.com"], ["encrypted_password", "$2a$04$aos4Jeqv60L7JofBamiZLuBXtQeGOmX4QWCkUVaaIUqj/lE28pOH2"], ["created_at", "2016-10-03 16:04:27.281295"], ["updated_at", "2016-10-03 16:04:27.281295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6839195e-db26-4358-8d87-071761490966' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6839195e-db26-4358-8d87-071761490966' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "6839195e-db26-4358-8d87-071761490966"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 16:04:27.293620"], ["updated_at", "2016-10-03 16:04:27.293620"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "39"], ["created_at", "2016-10-03 16:04:27.293620"], ["item_id", 11], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#update as HTML Parameters: {"plan"=>{"stripe_id"=>"6839195e-db26-4358-8d87-071761490966", "name"=>nil, "amount"=>"2000", "currency"=>"usd", "interval"=>"month"}, "id"=>"11"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 40]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 11]] Unpermitted parameters: stripe_id, amount, currency, interval  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE ("tang_plans"."stripe_id" = '6839195e-db26-4358-8d87-071761490966' AND "tang_plans"."id" != 11) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/edit.html.erb within layouts/application (0.0ms) Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person41@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person41@example.com"], ["encrypted_password", "$2a$04$jF9OHGSGLRewndZJovCkn.ZBUQjZSkKt5dL8KgJid0g1gsWj0Mt16"], ["created_at", "2016-10-03 16:04:27.690409"], ["updated_at", "2016-10-03 16:04:27.690409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6839195e-db26-4358-8d87-071761490966' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6839195e-db26-4358-8d87-071761490966' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "6839195e-db26-4358-8d87-071761490966"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 16:04:27.693893"], ["updated_at", "2016-10-03 16:04:27.693893"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "40"], ["created_at", "2016-10-03 16:04:27.693893"], ["item_id", 12], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "tang_plans" Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"12"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 41]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 12]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 12], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 12\nstripe_id: 6839195e-db26-4358-8d87-071761490966\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: 0\nhighlight: false\ncreated_at: 2016-10-03 16:04:27.693893000 Z\nupdated_at: 2016-10-03 16:04:27.693893000 Z\n"], ["whodunnit", "41"], ["created_at", "2016-10-03 16:04:28.057611"]] SQL (0.2ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 750ms (ActiveRecord: 0.9ms)  (0.2ms) SELECT COUNT(*) FROM "tang_plans"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person42@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person42@example.com"], ["encrypted_password", "$2a$04$jzWWvxKjuhkXAx47BIob9.YB.ok0iT3/hvGeAviBuhDX68SYBu.4."], ["created_at", "2016-10-03 16:04:28.809170"], ["updated_at", "2016-10-03 16:04:28.809170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6839195e-db26-4358-8d87-071761490966' LIMIT 1 Tang::Plan Exists (0.1ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = '6839195e-db26-4358-8d87-071761490966' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "name", "amount", "currency", "interval", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["stripe_id", "6839195e-db26-4358-8d87-071761490966"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["order", 0], ["created_at", "2016-10-03 16:04:28.813280"], ["updated_at", "2016-10-03 16:04:28.813280"]] SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "41"], ["created_at", "2016-10-03 16:04:28.813280"], ["item_id", 13], ["item_type", "Tang::Plan"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Tang::Admin::PlansController#destroy as HTML Parameters: {"id"=>"13"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 42]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 13]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "versions" ("item_id", "item_type", "event", "object", "whodunnit", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["item_id", 13], ["item_type", "Tang::Plan"], ["event", "destroy"], ["object", "---\nid: 13\nstripe_id: 6839195e-db26-4358-8d87-071761490966\namount: 2000\ncurrency: usd\ninterval: month\ninterval_count: \nname: Amazing Gold Plan\nstatement_descriptor: \ntrial_period_days: \norder: 0\nhighlight: false\ncreated_at: 2016-10-03 16:04:28.813280000 Z\nupdated_at: 2016-10-03 16:04:28.813280000 Z\n"], ["whodunnit", "42"], ["created_at", "2016-10-03 16:04:29.219234"]] SQL (0.3ms) DELETE FROM "tang_plans" WHERE "tang_plans"."id" = $1 [["id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/tang/admin/plans Completed 302 Found in 739ms (ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person43@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person43@example.com"], ["encrypted_password", "$2a$04$wyZEcEcsrB5NUzSQEmYuZOaNzmLgCtU7TOBLFT.8ERSSLpqIP9te2"], ["created_at", "2016-10-03 16:04:29.961567"], ["updated_at", "2016-10-03 16:04:29.961567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person44@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person44@example.com"], ["encrypted_password", "$2a$04$9jn/GAz1AVO6YP8Nv9h86ujOR9AH45y7zIK8mz8M0dAq91foi35Qm"], ["created_at", "2016-10-03 16:04:29.966840"], ["updated_at", "2016-10-03 16:04:29.966840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person45@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person45@example.com"], ["encrypted_password", "$2a$04$QiRvS.m6tdbuT5YiHFQHJuX/tuhfyb40raNQtWcIhWBhuyfY0jkP2"], ["created_at", "2016-10-03 16:04:29.971618"], ["updated_at", "2016-10-03 16:04:29.971618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person46@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person46@example.com"], ["encrypted_password", "$2a$04$WflQEo4tZTjHFpB3IYJpPeQam2qfBHwXCzky9J7tiEAZEu18N25t2"], ["created_at", "2016-10-03 16:04:29.977437"], ["updated_at", "2016-10-03 16:04:29.977437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person47@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person47@example.com"], ["encrypted_password", "$2a$04$UYpRXpoJ4H93iGWaomdT7OhxYgCQAq9NNupF9wB9jrksFBmKfH8iu"], ["created_at", "2016-10-03 16:04:29.983426"], ["updated_at", "2016-10-03 16:04:29.983426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person48@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person48@example.com"], ["encrypted_password", "$2a$04$jI8yvbrT9amM1KxRBxxXLO1P7Fw6MHyjTN1oZpJc/9daGg91sH8/u"], ["created_at", "2016-10-03 16:04:29.989681"], ["updated_at", "2016-10-03 16:04:29.989681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person49@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person49@example.com"], ["encrypted_password", "$2a$04$Duyh216xVjm7q/5Cxvt2OObtGwUo6Nmb/S1x8os60Ot1jWLe4beEW"], ["created_at", "2016-10-03 16:04:29.994876"], ["updated_at", "2016-10-03 16:04:29.994876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person50@example.com' LIMIT 1 SQL (0.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person50@example.com"], ["encrypted_password", "$2a$04$mNus/q8z4CLeKRRoXhbFHuikfd2gvi0..cbpbtFsxmMTlyZYYtEmq"], ["created_at", "2016-10-03 16:04:29.999470"], ["updated_at", "2016-10-03 16:04:29.999470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person51@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person51@example.com"], ["encrypted_password", "$2a$04$uGxyTIKru88eImoOqDsY0.2T3klU5Rxs9moW/8Cr81TdvQ1sYMCGi"], ["created_at", "2016-10-03 16:04:30.004547"], ["updated_at", "2016-10-03 16:04:30.004547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person52@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person52@example.com"], ["encrypted_password", "$2a$04$ktPQddl3ZHHz.JZi8XL2/umDDOqHG7xF6Y/WNjSHyUadIE3WwFW1G"], ["created_at", "2016-10-03 16:04:30.011113"], ["updated_at", "2016-10-03 16:04:30.011113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 15ms (Views: 8.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person1@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person1@example.com"], ["encrypted_password", "$2a$04$wZVc9DvcoEHI1ZPLFeMCPOG4I2kke4w8LF2ilqku9C/gL4GgYUHo2"], ["created_at", "2016-10-03 16:04:34.157022"], ["updated_at", "2016-10-03 16:04:34.157022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 12:04:34 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (1.2ms) Rendered devise/sessions/new.html.erb within layouts/application (34.1ms) Completed 200 OK in 327ms (Views: 313.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 12:04:34 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person1@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 16:04:34.520524"], ["current_sign_in_at", "2016-10-03 16:04:34.520524"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 16:04:34.521465"], ["id", 53]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 21ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-10-03 12:04:34 -0400 Processing by HomeController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Rendered home/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.2ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 12:04:34 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (15.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (19.6ms) Completed 200 OK in 65ms (Views: 35.5ms | ActiveRecord: 1.5ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 12:04:34 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"Amazing Gold Plan", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1 SQL (0.3ms) INSERT INTO "tang_plans" ("stripe_id", "amount", "currency", "interval", "name", "statement_descriptor", "order", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["stripe_id", "gold"], ["amount", 2000], ["currency", "usd"], ["interval", "month"], ["name", "Amazing Gold Plan"], ["statement_descriptor", ""], ["order", 0], ["created_at", "2016-10-03 16:04:34.672151"], ["updated_at", "2016-10-03 16:04:34.672151"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "53"], ["created_at", "2016-10-03 16:04:34.672151"], ["item_id", 14], ["item_type", "Tang::Plan"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/tang/admin/plans/14 Completed 302 Found in 856ms (ActiveRecord: 3.1ms) Started GET "/tang/admin/plans/14" for 127.0.0.1 at 2016-10-03 12:04:35 -0400 Processing by Tang::Admin::PlansController#show as HTML Parameters: {"id"=>"14"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 14]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/show.html.erb within layouts/application (10.0ms) Completed 200 OK in 20ms (Views: 14.5ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person2@example.com"], ["encrypted_password", "$2a$04$zSr3szqeLXwQv2Hk58J77OHMrYTDAz1xlME24BacW9327kiD582GG"], ["created_at", "2016-10-03 16:04:35.566054"], ["updated_at", "2016-10-03 16:04:35.566054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 12:04:35 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.4ms) Rendered devise/sessions/new.html.erb within layouts/application (2.9ms) Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 12:04:35 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (6.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person2@example.com"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 16:04:35.597068"], ["current_sign_in_at", "2016-10-03 16:04:35.597068"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 16:04:35.597822"], ["id", 54]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://www.example.com/ Completed 302 Found in 13ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2016-10-03 12:04:35 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]] Rendered home/index.html.erb within layouts/application (0.1ms) Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.3ms) Started GET "/tang/admin/plans/new" for 127.0.0.1 at 2016-10-03 12:04:35 -0400 Processing by Tang::Admin::PlansController#new as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]] Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (4.0ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.5ms) Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.3ms) Started POST "/tang/admin/plans" for 127.0.0.1 at 2016-10-03 12:04:35 -0400 Processing by Tang::Admin::PlansController#create as HTML Parameters: {"utf8"=>"✓", "plan"=>{"stripe_id"=>"gold", "name"=>"", "currency"=>"usd", "amount"=>"2000", "interval"=>"month", "interval_count"=>"", "trial_period_days"=>"", "statement_descriptor"=>""}, "commit"=>"Create Plan"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 54]]  (0.1ms) SAVEPOINT active_record_1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'gold' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/_form.html.erb (3.8ms) Rendered /Users/craigphares/Development/tang/app/views/tang/admin/plans/new.html.erb within layouts/application (4.1ms) Completed 200 OK in 10ms (Views: 5.7ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person3@example.com"], ["encrypted_password", "$2a$04$bUJJk.bO/5wnTT4OCg7WS.cAxFmCbO9XOHubkLy/Ky4DbfxCc0DRq"], ["created_at", "2016-10-03 16:04:35.696633"], ["updated_at", "2016-10-03 16:04:35.696633"]]  (5.8ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 12:04:36 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.3ms) Rendered devise/sessions/new.html.erb within layouts/application (3.5ms) Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.0ms) Started GET "/assets/application-db63e11ff696abe10db41f0691e643ec373941fad3657442abeb19ea40079175.css" for 127.0.0.1 at 2016-10-03 12:04:36 -0400 Started GET "/assets/application-ae2f3e9153ab8790e8aa4db3ee24569c31c04e9721cf338869bc8e4f22fac81c.js" for 127.0.0.1 at 2016-10-03 12:04:36 -0400 Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 12:04:37 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person3@example.com"]]  (0.1ms) BEGIN SQL (0.3ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 16:04:37.576705"], ["current_sign_in_at", "2016-10-03 16:04:37.576705"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 16:04:37.577515"], ["id", 55]]  (0.4ms) COMMIT Redirected to http://127.0.0.1:58634/ Completed 302 Found in 12ms (ActiveRecord: 1.6ms) Started GET "/" for 127.0.0.1 at 2016-10-03 12:04:37 -0400 Processing by HomeController#index as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.3ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (0.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 16:04:37.677887"], ["updated_at", "2016-10-03 16:04:37.677887"]] SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 16:04:37.677887"], ["item_id", 15], ["item_type", "Tang::Plan"]]  (0.4ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 12:04:37 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Subscription Load (18.5ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.6ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (8.5ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (18.4ms) Completed 200 OK in 76ms (Views: 21.7ms | ActiveRecord: 30.1ms) Started GET "/tang/account/subscription/new?plan=15" for 127.0.0.1 at 2016-10-03 12:04:37 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"15"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (10.5ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (13.9ms) Completed 200 OK in 32ms (Views: 18.1ms | ActiveRecord: 2.0ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 12:04:39 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"15"}, "stripe_token"=>"test_tok_1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 55 LIMIT 1 Tang::Subscription Exists (0.1ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 55) LIMIT 1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE ("users"."stripe_id" = 'test_cus_3' AND "users"."id" != 55) LIMIT 1 SQL (0.3ms) UPDATE "users" SET "stripe_id" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["stripe_id", "test_cus_3"], ["updated_at", "2016-10-03 16:04:39.245828"], ["id", 55]]  (6.0ms) COMMIT  (0.1ms) BEGIN Tang::Subscription Exists (0.3ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 55 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" = 'test_su_4' LIMIT 1 SQL (6.4ms) INSERT INTO "tang_subscriptions" ("plan_id", "customer_id", "stripe_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["plan_id", 15], ["customer_id", 55], ["stripe_id", "test_su_4"], ["created_at", "2016-10-03 16:04:39.260219"], ["updated_at", "2016-10-03 16:04:39.260219"]] SQL (0.3ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["event", "create"], ["whodunnit", "55"], ["created_at", "2016-10-03 16:04:39.260219"], ["item_id", 1], ["item_type", "Tang::Subscription"]]  (0.4ms) COMMIT Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]]  (0.1ms) BEGIN SQL (6.3ms) INSERT INTO "tang_cards" ("customer_id", "stripe_id", "brand", "country", "exp_month", "exp_year", "fingerprint", "funding", "last4", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["customer_id", 55], ["stripe_id", "test_cc_2"], ["brand", "Visa"], ["country", "US"], ["exp_month", 9], ["exp_year", 2018], ["fingerprint", "hrLgWzEscxDirlpO"], ["funding", "credit"], ["last4", "4242"], ["name", "Johnny App"], ["created_at", "2016-10-03 16:04:39.305797"], ["updated_at", "2016-10-03 16:04:39.305797"]]  (0.4ms) COMMIT Redirected to http://127.0.0.1:58634/tang/account/subscription Completed 302 Found in 81ms (ActiveRecord: 26.7ms) Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 12:04:39 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 55]] Tang::Subscription Load (0.2ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.1ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 15]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE (tang_plans.order > 0) ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.2ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 55]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.1ms) Completed 200 OK in 8ms (Views: 3.2ms | ActiveRecord: 1.7ms)  (1.0ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL  (5.8ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (13.0ms) select table_name from information_schema.views where table_schema = 'tang_app_test'  (23.3ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'person4@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "person4@example.com"], ["encrypted_password", "$2a$04$AM37eOYS9Mdwl4F8RAoLpe.Vws2nwUC3kXJdJfRZ.iYVF8QfHBcii"], ["created_at", "2016-10-03 16:04:43.269912"], ["updated_at", "2016-10-03 16:04:43.269912"]]  (0.3ms) COMMIT Started GET "/users/sign_in" for 127.0.0.1 at 2016-10-03 12:04:43 -0400 Processing by Devise::SessionsController#new as HTML Rendered devise/shared/_links.html.erb (0.2ms) Rendered devise/sessions/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-10-03 12:04:43 -0400 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"person4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["email", "person4@example.com"]]  (0.1ms) BEGIN SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "last_sign_in_ip" = $3, "current_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7 [["last_sign_in_at", "2016-10-03 16:04:43.409126"], ["current_sign_in_at", "2016-10-03 16:04:43.409126"], ["last_sign_in_ip", "127.0.0.1/32"], ["current_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2016-10-03 16:04:43.409806"], ["id", 1]]  (0.4ms) COMMIT Redirected to http://127.0.0.1:58634/ Completed 302 Found in 7ms (ActiveRecord: 1.3ms) Started GET "/" for 127.0.0.1 at 2016-10-03 12:04:43 -0400 Processing by HomeController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Rendered home/index.html.erb within layouts/application (0.0ms) Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.3ms)  (0.1ms) BEGIN Tang::Plan Exists (0.4ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 Tang::Plan Exists (0.2ms) SELECT 1 AS one FROM "tang_plans" WHERE "tang_plans"."stripe_id" = 'stripe_mock_default_plan_id' LIMIT 1 SQL (1.2ms) INSERT INTO "tang_plans" ("currency", "order", "stripe_id", "name", "amount", "interval", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["currency", "usd"], ["order", 0], ["stripe_id", "stripe_mock_default_plan_id"], ["name", "Amazing Gold Plan"], ["amount", 2000], ["interval", "month"], ["created_at", "2016-10-03 16:04:43.514311"], ["updated_at", "2016-10-03 16:04:43.514311"]] SQL (0.5ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["created_at", "2016-10-03 16:04:43.514311"], ["item_id", 1], ["item_type", "Tang::Plan"]]  (0.3ms) COMMIT Started GET "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 12:04:43 -0400 Processing by Tang::Account::SubscriptionsController#show as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Subscription Load (0.4ms) SELECT "tang_subscriptions".* FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.3ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC LIMIT 1 Tang::Card Load (0.3ms) SELECT "tang_cards".* FROM "tang_cards" WHERE "tang_cards"."customer_id" = $1 LIMIT 1 [["customer_id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" ORDER BY "tang_plans"."order" ASC Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/show.html.erb within layouts/application (2.2ms) Completed 200 OK in 7ms (Views: 3.1ms | ActiveRecord: 1.3ms) Started GET "/tang/account/subscription/new?plan=1" for 127.0.0.1 at 2016-10-03 12:04:43 -0400 Processing by Tang::Account::SubscriptionsController#new as HTML Parameters: {"plan"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.6ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.4ms) Started POST "/tang/account/subscription" for 127.0.0.1 at 2016-10-03 12:04:44 -0400 Processing by Tang::Account::SubscriptionsController#create as HTML Parameters: {"utf8"=>"✓", "subscription"=>{"plan"=>"1"}, "stripe_token"=>"test_tok_1"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Tang::Plan Load (0.2ms) SELECT "tang_plans".* FROM "tang_plans" WHERE "tang_plans"."id" = $1 LIMIT 1 [["id", 1]] Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."customer_id" = 1 LIMIT 1 Tang::Subscription Exists (0.2ms) SELECT 1 AS one FROM "tang_subscriptions" WHERE "tang_subscriptions"."stripe_id" IS NULL LIMIT 1 Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/_form.html.erb (0.7ms) Rendered /Users/craigphares/Development/tang/app/views/tang/account/subscriptions/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 7ms (Views: 2.4ms | ActiveRecord: 0.9ms)  (0.2ms) ALTER TABLE "tang_cards" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "tang_coupons" DISABLE TRIGGER ALL;ALTER TABLE "tang_plans" DISABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" DISABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "versions" DISABLE TRIGGER ALL  (36.0ms) TRUNCATE TABLE "public"."tang_cards", "public"."tang_coupons", "public"."tang_plans", "public"."tang_stripe_webhooks", "public"."tang_subscriptions", "public"."users", "public"."versions" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "tang_cards" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "tang_coupons" ENABLE TRIGGER ALL;ALTER TABLE "tang_plans" ENABLE TRIGGER ALL;ALTER TABLE "tang_stripe_webhooks" ENABLE TRIGGER ALL;ALTER TABLE "tang_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "versions" ENABLE TRIGGER ALL