devise_sessionable 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +109 -0
  4. data/Rakefile +26 -0
  5. data/app/assets/config/devise_sessionable_manifest.js +2 -0
  6. data/app/assets/javascripts/devise_sessionable/application.js +13 -0
  7. data/app/assets/stylesheets/devise_sessionable/application.css +15 -0
  8. data/app/controllers/devise_sessionable/application_controller.rb +5 -0
  9. data/app/helpers/devise_sessionable/application_helper.rb +4 -0
  10. data/app/jobs/devise_sessionable/application_job.rb +4 -0
  11. data/app/mailers/devise_sessionable/application_mailer.rb +6 -0
  12. data/app/models/devise_sessionable/application_record.rb +5 -0
  13. data/app/models/devise_sessionable/session.rb +11 -0
  14. data/app/views/layouts/devise_sessionable/application.html.erb +14 -0
  15. data/config/initializers/simple_token_authentication.rb +31 -0
  16. data/config/routes.rb +3 -0
  17. data/lib/devise_sessionable.rb +15 -0
  18. data/lib/devise_sessionable/acts_as_sessionable.rb +17 -0
  19. data/lib/devise_sessionable/engine.rb +12 -0
  20. data/lib/devise_sessionable/version.rb +3 -0
  21. data/lib/generators/devise_sessionable/install/install_generator.rb +24 -0
  22. data/lib/generators/devise_sessionable/install/templates/migration.rb +16 -0
  23. data/lib/tasks/devise_sessionable_tasks.rake +4 -0
  24. data/spec/factories/sessions.rb +5 -0
  25. data/spec/factories/users.rb +4 -0
  26. data/spec/models/session_spec.rb +18 -0
  27. data/spec/rails_helper.rb +28 -0
  28. data/spec/spec_helper.rb +13 -0
  29. data/spec/test_app/Rakefile +6 -0
  30. data/spec/test_app/app/assets/config/manifest.js +5 -0
  31. data/spec/test_app/app/assets/javascripts/application.js +13 -0
  32. data/spec/test_app/app/assets/javascripts/cable.js +13 -0
  33. data/spec/test_app/app/assets/stylesheets/application.css +15 -0
  34. data/spec/test_app/app/channels/application_cable/channel.rb +4 -0
  35. data/spec/test_app/app/channels/application_cable/connection.rb +4 -0
  36. data/spec/test_app/app/controllers/application_controller.rb +3 -0
  37. data/spec/test_app/app/helpers/application_helper.rb +2 -0
  38. data/spec/test_app/app/jobs/application_job.rb +2 -0
  39. data/spec/test_app/app/mailers/application_mailer.rb +4 -0
  40. data/spec/test_app/app/models/application_record.rb +3 -0
  41. data/spec/test_app/app/models/user.rb +2 -0
  42. data/spec/test_app/app/views/layouts/application.html.erb +14 -0
  43. data/spec/test_app/app/views/layouts/mailer.html.erb +13 -0
  44. data/spec/test_app/app/views/layouts/mailer.text.erb +1 -0
  45. data/spec/test_app/bin/bundle +3 -0
  46. data/spec/test_app/bin/rails +4 -0
  47. data/spec/test_app/bin/rake +4 -0
  48. data/spec/test_app/bin/setup +38 -0
  49. data/spec/test_app/bin/update +29 -0
  50. data/spec/test_app/bin/yarn +11 -0
  51. data/spec/test_app/config.ru +5 -0
  52. data/spec/test_app/config/application.rb +25 -0
  53. data/spec/test_app/config/boot.rb +5 -0
  54. data/spec/test_app/config/cable.yml +10 -0
  55. data/spec/test_app/config/database.yml +85 -0
  56. data/spec/test_app/config/environment.rb +5 -0
  57. data/spec/test_app/config/environments/development.rb +54 -0
  58. data/spec/test_app/config/environments/production.rb +91 -0
  59. data/spec/test_app/config/environments/test.rb +42 -0
  60. data/spec/test_app/config/initializers/application_controller_renderer.rb +6 -0
  61. data/spec/test_app/config/initializers/assets.rb +14 -0
  62. data/spec/test_app/config/initializers/backtrace_silencers.rb +7 -0
  63. data/spec/test_app/config/initializers/cookies_serializer.rb +5 -0
  64. data/spec/test_app/config/initializers/filter_parameter_logging.rb +4 -0
  65. data/spec/test_app/config/initializers/inflections.rb +16 -0
  66. data/spec/test_app/config/initializers/mime_types.rb +4 -0
  67. data/spec/test_app/config/initializers/wrap_parameters.rb +14 -0
  68. data/spec/test_app/config/locales/en.yml +33 -0
  69. data/spec/test_app/config/puma.rb +56 -0
  70. data/spec/test_app/config/routes.rb +3 -0
  71. data/spec/test_app/config/secrets.yml +32 -0
  72. data/spec/test_app/config/spring.rb +6 -0
  73. data/spec/test_app/db/migrate/20170803015911_devise_sessionable_create_sessions.rb +16 -0
  74. data/spec/test_app/db/migrate/20170803015941_create_users.rb +8 -0
  75. data/spec/test_app/db/schema.rb +33 -0
  76. data/spec/test_app/log/development.log +274 -0
  77. data/spec/test_app/log/test.log +595 -0
  78. data/spec/test_app/package.json +5 -0
  79. data/spec/test_app/public/404.html +67 -0
  80. data/spec/test_app/public/422.html +67 -0
  81. data/spec/test_app/public/500.html +66 -0
  82. data/spec/test_app/public/apple-touch-icon-precomposed.png +0 -0
  83. data/spec/test_app/public/apple-touch-icon.png +0 -0
  84. data/spec/test_app/public/favicon.ico +0 -0
  85. metadata +312 -0
@@ -0,0 +1,91 @@
1
+ Rails.application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # Code is not reloaded between requests.
5
+ config.cache_classes = true
6
+
7
+ # Eager load code on boot. This eager loads most of Rails and
8
+ # your application in memory, allowing both threaded web servers
9
+ # and those relying on copy on write to perform better.
10
+ # Rake tasks automatically ignore this option for performance.
11
+ config.eager_load = true
12
+
13
+ # Full error reports are disabled and caching is turned on.
14
+ config.consider_all_requests_local = false
15
+ config.action_controller.perform_caching = true
16
+
17
+ # Attempt to read encrypted secrets from `config/secrets.yml.enc`.
18
+ # Requires an encryption key in `ENV["RAILS_MASTER_KEY"]` or
19
+ # `config/secrets.yml.key`.
20
+ config.read_encrypted_secrets = true
21
+
22
+ # Disable serving static files from the `/public` folder by default since
23
+ # Apache or NGINX already handles this.
24
+ config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
25
+
26
+ # Compress JavaScripts and CSS.
27
+ config.assets.js_compressor = :uglifier
28
+ # config.assets.css_compressor = :sass
29
+
30
+ # Do not fallback to assets pipeline if a precompiled asset is missed.
31
+ config.assets.compile = false
32
+
33
+ # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
34
+
35
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server.
36
+ # config.action_controller.asset_host = 'http://assets.example.com'
37
+
38
+ # Specifies the header that your server uses for sending files.
39
+ # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
40
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
41
+
42
+ # Mount Action Cable outside main process or domain
43
+ # config.action_cable.mount_path = nil
44
+ # config.action_cable.url = 'wss://example.com/cable'
45
+ # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]
46
+
47
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
48
+ # config.force_ssl = true
49
+
50
+ # Use the lowest log level to ensure availability of diagnostic information
51
+ # when problems arise.
52
+ config.log_level = :debug
53
+
54
+ # Prepend all log lines with the following tags.
55
+ config.log_tags = [ :request_id ]
56
+
57
+ # Use a different cache store in production.
58
+ # config.cache_store = :mem_cache_store
59
+
60
+ # Use a real queuing backend for Active Job (and separate queues per environment)
61
+ # config.active_job.queue_adapter = :resque
62
+ # config.active_job.queue_name_prefix = "test_app_#{Rails.env}"
63
+ config.action_mailer.perform_caching = false
64
+
65
+ # Ignore bad email addresses and do not raise email delivery errors.
66
+ # Set this to true and configure the email server for immediate delivery to raise delivery errors.
67
+ # config.action_mailer.raise_delivery_errors = false
68
+
69
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
70
+ # the I18n.default_locale when a translation cannot be found).
71
+ config.i18n.fallbacks = true
72
+
73
+ # Send deprecation notices to registered listeners.
74
+ config.active_support.deprecation = :notify
75
+
76
+ # Use default logging formatter so that PID and timestamp are not suppressed.
77
+ config.log_formatter = ::Logger::Formatter.new
78
+
79
+ # Use a different logger for distributed setups.
80
+ # require 'syslog/logger'
81
+ # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
82
+
83
+ if ENV["RAILS_LOG_TO_STDOUT"].present?
84
+ logger = ActiveSupport::Logger.new(STDOUT)
85
+ logger.formatter = config.log_formatter
86
+ config.logger = ActiveSupport::TaggedLogging.new(logger)
87
+ end
88
+
89
+ # Do not dump schema after migrations.
90
+ config.active_record.dump_schema_after_migration = false
91
+ end
@@ -0,0 +1,42 @@
1
+ TestApp::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Do not eager load code on boot. This avoids loading your whole application
11
+ # just for the purpose of running a single test. If you are using a tool that
12
+ # preloads Rails for running tests, you may have to set it to true.
13
+ config.eager_load = false
14
+
15
+ # Configure static file server for tests with Cache-Control for performance.
16
+ config.serve_static_files = true
17
+ config.static_cache_control = 'public, max-age=3600'
18
+
19
+ # Show full error reports and disable caching.
20
+ config.consider_all_requests_local = true
21
+ config.action_controller.perform_caching = false
22
+
23
+ # Raise exceptions instead of rendering exception templates.
24
+ config.action_dispatch.show_exceptions = false
25
+
26
+ # Disable request forgery protection in test environment.
27
+ config.action_controller.allow_forgery_protection = false
28
+
29
+ # Tell Action Mailer not to deliver emails to the real world.
30
+ # The :test delivery method accumulates sent emails in the
31
+ # ActionMailer::Base.deliveries array.
32
+ config.action_mailer.delivery_method = :test
33
+
34
+ # Randomize the order test cases are executed.
35
+ config.active_support.test_order = :random
36
+
37
+ # Print deprecation notices to the stderr.
38
+ config.active_support.deprecation = :stderr
39
+
40
+ # Raises error for missing translations
41
+ # config.action_view.raise_on_missing_translations = true
42
+ end
@@ -0,0 +1,6 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # ApplicationController.renderer.defaults.merge!(
4
+ # http_host: 'example.org',
5
+ # https: false
6
+ # )
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Version of your assets, change this if you want to expire all your assets.
4
+ Rails.application.config.assets.version = '1.0'
5
+
6
+ # Add additional assets to the asset load path.
7
+ # Rails.application.config.assets.paths << Emoji.images_path
8
+ # Add Yarn node_modules folder to the asset load path.
9
+ Rails.application.config.assets.paths << Rails.root.join('node_modules')
10
+
11
+ # Precompile additional assets.
12
+ # application.js, application.css, and all non-JS/CSS in the app/assets
13
+ # folder are already added.
14
+ # Rails.application.config.assets.precompile += %w( admin.js admin.css )
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Specify a serializer for the signed and encrypted cookie jars.
4
+ # Valid options are :json, :marshal, and :hybrid.
5
+ Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -0,0 +1,16 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
+ # inflect.plural /^(ox)$/i, '\1en'
8
+ # inflect.singular /^(ox)en/i, '\1'
9
+ # inflect.irregular 'person', 'people'
10
+ # inflect.uncountable %w( fish sheep )
11
+ # end
12
+
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+ # inflect.acronym 'RESTful'
16
+ # end
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json]
9
+ end
10
+
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -0,0 +1,33 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # The following keys must be escaped otherwise they will not be retrieved by
20
+ # the default I18n backend:
21
+ #
22
+ # true, false, on, off, yes, no
23
+ #
24
+ # Instead, surround them with single quotes.
25
+ #
26
+ # en:
27
+ # 'true': 'foo'
28
+ #
29
+ # To learn more, please read the Rails Internationalization guide
30
+ # available at http://guides.rubyonrails.org/i18n.html.
31
+
32
+ en:
33
+ hello: "Hello world"
@@ -0,0 +1,56 @@
1
+ # Puma can serve each request in a thread from an internal thread pool.
2
+ # The `threads` method setting takes two numbers: a minimum and maximum.
3
+ # Any libraries that use thread pools should be configured to match
4
+ # the maximum value specified for Puma. Default is set to 5 threads for minimum
5
+ # and maximum; this matches the default thread size of Active Record.
6
+ #
7
+ threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
8
+ threads threads_count, threads_count
9
+
10
+ # Specifies the `port` that Puma will listen on to receive requests; default is 3000.
11
+ #
12
+ port ENV.fetch("PORT") { 3000 }
13
+
14
+ # Specifies the `environment` that Puma will run in.
15
+ #
16
+ environment ENV.fetch("RAILS_ENV") { "development" }
17
+
18
+ # Specifies the number of `workers` to boot in clustered mode.
19
+ # Workers are forked webserver processes. If using threads and workers together
20
+ # the concurrency of the application would be max `threads` * `workers`.
21
+ # Workers do not work on JRuby or Windows (both of which do not support
22
+ # processes).
23
+ #
24
+ # workers ENV.fetch("WEB_CONCURRENCY") { 2 }
25
+
26
+ # Use the `preload_app!` method when specifying a `workers` number.
27
+ # This directive tells Puma to first boot the application and load code
28
+ # before forking the application. This takes advantage of Copy On Write
29
+ # process behavior so workers use less memory. If you use this option
30
+ # you need to make sure to reconnect any threads in the `on_worker_boot`
31
+ # block.
32
+ #
33
+ # preload_app!
34
+
35
+ # If you are preloading your application and using Active Record, it's
36
+ # recommended that you close any connections to the database before workers
37
+ # are forked to prevent connection leakage.
38
+ #
39
+ # before_fork do
40
+ # ActiveRecord::Base.connection_pool.disconnect! if defined?(ActiveRecord)
41
+ # end
42
+
43
+ # The code in the `on_worker_boot` will be called if you are using
44
+ # clustered mode by specifying a number of `workers`. After each worker
45
+ # process is booted, this block will be run. If you are using the `preload_app!`
46
+ # option, you will want to use this block to reconnect to any threads
47
+ # or connections that may have been created at application boot, as Ruby
48
+ # cannot share connections between processes.
49
+ #
50
+ # on_worker_boot do
51
+ # ActiveRecord::Base.establish_connection if defined?(ActiveRecord)
52
+ # end
53
+ #
54
+
55
+ # Allow puma to be restarted by `rails restart` command.
56
+ plugin :tmp_restart
@@ -0,0 +1,3 @@
1
+ Rails.application.routes.draw do
2
+ mount DeviseSessionable::Engine => "/devise_sessionable"
3
+ end
@@ -0,0 +1,32 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rails secret` to generate a secure secret key.
9
+
10
+ # Make sure the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ # Shared secrets are available across all environments.
14
+
15
+ # shared:
16
+ # api_key: a1B2c3D4e5F6
17
+
18
+ # Environmental secrets are only available for that specific environment.
19
+
20
+ development:
21
+ secret_key_base: fe89126b4591b3d69cdd2d3a1d8938f631905851aefcdf7d1ad31d1ab3c4ba7e180143be4333743a1aefd24f3263f3043c808cbf47a2f1c0e76fb5d8c9329605
22
+
23
+ test:
24
+ secret_key_base: bbe888e129e010fa75bd7121907c9ebf0f481d5ab7f31a4d6d8bfda8e5477726069275baf291de0e9425c66c596d719e5e9db021bcb1d7dde4edff2b001f3656
25
+
26
+ # Do not keep production secrets in the unencrypted secrets file.
27
+ # Instead, either read values from the environment.
28
+ # Or, use `bin/rails secrets:setup` to configure encrypted secrets
29
+ # and move the `production:` environment over there.
30
+
31
+ production:
32
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -0,0 +1,6 @@
1
+ %w(
2
+ .ruby-version
3
+ .rbenv-vars
4
+ tmp/restart.txt
5
+ tmp/caching-dev.txt
6
+ ).each { |path| Spring.watch(path) }
@@ -0,0 +1,16 @@
1
+ class DeviseSessionableCreateSessions < ActiveRecord::Migration[5.1]
2
+ def change
3
+ create_table :devise_sessionable_sessions do |t|
4
+ t.string :authentication_token
5
+ t.integer :authable_id, null: false
6
+ t.string :authable_type, null: false
7
+
8
+ t.timestamps
9
+ end
10
+
11
+ add_index :devise_sessionable_sessions,
12
+ [:authable_id, :authable_type],
13
+ name: 'index_devise_sessionable_sessions_on_authable'
14
+ add_index :devise_sessionable_sessions, :authentication_token, unique: true
15
+ end
16
+ end
@@ -0,0 +1,8 @@
1
+ class CreateUsers < ActiveRecord::Migration[5.1]
2
+ def change
3
+ create_table :users do |t|
4
+
5
+ t.timestamps
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,33 @@
1
+ # This file is auto-generated from the current state of the database. Instead
2
+ # of editing this file, please use the migrations feature of Active Record to
3
+ # incrementally modify your database, and then regenerate this schema definition.
4
+ #
5
+ # Note that this schema.rb definition is the authoritative source for your
6
+ # database schema. If you need to create the application database on another
7
+ # system, you should be using db:schema:load, not running all the migrations
8
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
9
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
10
+ #
11
+ # It's strongly recommended that you check this file into your version control system.
12
+
13
+ ActiveRecord::Schema.define(version: 20170803015941) do
14
+
15
+ # These are extensions that must be enabled in order to support this database
16
+ enable_extension "plpgsql"
17
+
18
+ create_table "devise_sessionable_sessions", force: :cascade do |t|
19
+ t.string "authentication_token"
20
+ t.integer "authable_id", null: false
21
+ t.string "authable_type", null: false
22
+ t.datetime "created_at", null: false
23
+ t.datetime "updated_at", null: false
24
+ t.index ["authable_id", "authable_type"], name: "index_devise_sessionable_sessions_on_authable"
25
+ t.index ["authentication_token"], name: "index_devise_sessionable_sessions_on_authentication_token", unique: true
26
+ end
27
+
28
+ create_table "users", force: :cascade do |t|
29
+ t.datetime "created_at", null: false
30
+ t.datetime "updated_at", null: false
31
+ end
32
+
33
+ end
@@ -0,0 +1,274 @@
1
+  (46.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
2
+  (25.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
3
+  (2.4ms) SELECT pg_try_advisory_lock(7992348028875656775);
4
+  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
5
+ Migrating to DeviseSessionableCreateSessions (20170803015911)
6
+  (0.4ms) SELECT pg_advisory_unlock(7992348028875656775)
7
+  (0.3ms) SELECT pg_try_advisory_lock(7992348028875656775);
8
+  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
9
+ Migrating to DeviseSessionableCreateSessions (20170803015911)
10
+  (0.3ms) SELECT pg_advisory_unlock(7992348028875656775)
11
+  (0.2ms) SELECT pg_try_advisory_lock(7992348028875656775);
12
+  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
13
+ Migrating to DeviseSessionableCreateSessions (20170803015911)
14
+  (0.2ms) BEGIN
15
+  (43.4ms) CREATE TABLE "devise_sessionable_sessions" ("id" bigserial primary key, "authentication_token" character varying, "authable_id" uuid NOT NULL, "authable_type" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
16
+  (1.7ms) ROLLBACK
17
+  (0.3ms) SELECT pg_advisory_unlock(7992348028875656775)
18
+  (0.2ms) SELECT pg_try_advisory_lock(7992348028875656775);
19
+  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
20
+ Migrating to DeviseSessionableCreateSessions (20170803015911)
21
+  (0.3ms) BEGIN
22
+  (29.9ms) CREATE TABLE "devise_sessionable_sessions" ("id" bigserial primary key, "authentication_token" character varying, "authable_id" uuid NOT NULL, "authable_type" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
23
+  (5.2ms) CREATE INDEX "index_devise_sessionable_sessions_on_authable" ON "devise_sessionable_sessions" ("authable_id", "authable_type")
24
+  (1.9ms) CREATE UNIQUE INDEX "index_devise_sessionable_sessions_on_authentication_token" ON "devise_sessionable_sessions" ("authentication_token")
25
+ SQL (3.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170803015911"]]
26
+  (2.2ms) COMMIT
27
+ Migrating to CreateUsers (20170803015941)
28
+  (6.5ms) BEGIN
29
+  (14.8ms) CREATE TABLE "users" ("id" bigserial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
30
+ SQL (1.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170803015941"]]
31
+  (1.5ms) COMMIT
32
+ ActiveRecord::InternalMetadata Load (6.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
33
+  (0.2ms) BEGIN
34
+ SQL (2.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-08-03 03:26:29.933715"], ["updated_at", "2017-08-03 03:26:29.933715"]]
35
+  (2.6ms) COMMIT
36
+  (0.3ms) SELECT pg_advisory_unlock(7992348028875656775)
37
+  (6.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
38
+  (0.2ms) SELECT pg_try_advisory_lock(7992348028875656775);
39
+  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
40
+ ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
41
+  (0.2ms) BEGIN
42
+  (0.1ms) COMMIT
43
+  (0.2ms) SELECT pg_advisory_unlock(7992348028875656775)
44
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
45
+  (0.3ms) BEGIN
46
+ SQL (13.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2017-08-03 04:35:47.830460"], ["updated_at", "2017-08-03 04:35:47.830460"]]
47
+  (12.6ms) COMMIT
48
+  (6.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
49
+  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
50
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
51
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
52
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
53
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
54
+  (207.3ms) DROP DATABASE IF EXISTS "test_app_development"
55
+  (203.0ms) DROP DATABASE IF EXISTS "test_app_test"
56
+  (463.5ms) CREATE DATABASE "test_app_development" ENCODING = 'unicode'
57
+  (391.9ms) CREATE DATABASE "test_app_test" ENCODING = 'unicode'
58
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
59
+  (1.1ms) DROP TABLE IF EXISTS "devise_sessionable_sessions" CASCADE
60
+  (16.7ms) CREATE TABLE "devise_sessionable_sessions" ("id" bigserial primary key, "authentication_token" character varying, "authable_id" uuid NOT NULL, "authable_type" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
61
+  (3.7ms) CREATE INDEX "index_devise_sessionable_sessions_on_authable" ON "devise_sessionable_sessions" ("authable_id", "authable_type")
62
+  (2.4ms) CREATE UNIQUE INDEX "index_devise_sessionable_sessions_on_authentication_token" ON "devise_sessionable_sessions" ("authentication_token")
63
+  (0.5ms) DROP TABLE IF EXISTS "users" CASCADE
64
+  (8.9ms) CREATE TABLE "users" ("id" bigserial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
65
+  (4.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
66
+  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
67
+  (3.5ms) INSERT INTO "schema_migrations" (version) VALUES (20170803015941)
68
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES
69
+ (20170803015911);
70
+
71
+ 
72
+  (5.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
73
+ ActiveRecord::InternalMetadata Load (1.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
74
+  (0.2ms) BEGIN
75
+ SQL (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-08-03 04:36:58.072503"], ["updated_at", "2017-08-03 04:36:58.072503"]]
76
+  (1.0ms) COMMIT
77
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
78
+  (0.3ms) BEGIN
79
+  (0.2ms) COMMIT
80
+ SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
81
+  (0.2ms) DROP TABLE IF EXISTS "devise_sessionable_sessions" CASCADE
82
+  (11.0ms) CREATE TABLE "devise_sessionable_sessions" ("id" bigserial primary key, "authentication_token" character varying, "authable_id" uuid NOT NULL, "authable_type" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
83
+  (2.6ms) CREATE INDEX "index_devise_sessionable_sessions_on_authable" ON "devise_sessionable_sessions" ("authable_id", "authable_type")
84
+  (1.9ms) CREATE UNIQUE INDEX "index_devise_sessionable_sessions_on_authentication_token" ON "devise_sessionable_sessions" ("authentication_token")
85
+  (0.2ms) DROP TABLE IF EXISTS "users" CASCADE
86
+  (6.4ms) CREATE TABLE "users" ("id" bigserial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
87
+  (8.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
88
+  (3.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
89
+  (6.2ms) INSERT INTO "schema_migrations" (version) VALUES (20170803015941)
90
+  (5.9ms) INSERT INTO "schema_migrations" (version) VALUES
91
+ (20170803015911);
92
+
93
+ 
94
+  (13.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
95
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
96
+  (0.1ms) BEGIN
97
+ SQL (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-08-03 04:36:58.201720"], ["updated_at", "2017-08-03 04:36:58.201720"]]
98
+  (1.2ms) COMMIT
99
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
100
+  (0.1ms) BEGIN
101
+  (0.1ms) COMMIT
102
+  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
103
+ User Load (0.4ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT $1 [["LIMIT", 1]]
104
+  (0.2ms) BEGIN
105
+ SQL (1.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2017-08-03 04:37:30.832922"], ["updated_at", "2017-08-03 04:37:30.832922"]]
106
+  (1.7ms) COMMIT
107
+  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
108
+  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
109
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
110
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
111
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
112
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
113
+  (195.1ms) DROP DATABASE IF EXISTS "test_app_development"
114
+  (168.8ms) DROP DATABASE IF EXISTS "test_app_test"
115
+  (424.0ms) CREATE DATABASE "test_app_development" ENCODING = 'unicode'
116
+  (333.1ms) CREATE DATABASE "test_app_test" ENCODING = 'unicode'
117
+ SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
118
+  (0.3ms) DROP TABLE IF EXISTS "devise_sessionable_sessions" CASCADE
119
+  (8.8ms) CREATE TABLE "devise_sessionable_sessions" ("id" bigserial primary key, "authentication_token" character varying, "authable_id" uuid NOT NULL, "authable_type" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
120
+  (2.5ms) CREATE INDEX "index_devise_sessionable_sessions_on_authable" ON "devise_sessionable_sessions" ("authable_id", "authable_type")
121
+  (1.8ms) CREATE UNIQUE INDEX "index_devise_sessionable_sessions_on_authentication_token" ON "devise_sessionable_sessions" ("authentication_token")
122
+  (0.2ms) DROP TABLE IF EXISTS "users" CASCADE
123
+  (6.3ms) CREATE TABLE "users" ("id" bigserial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
124
+  (4.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
125
+  (1.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
126
+  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES (20170803015941)
127
+  (2.4ms) INSERT INTO "schema_migrations" (version) VALUES
128
+ (20170803015911);
129
+
130
+ 
131
+  (4.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
132
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
133
+  (0.2ms) BEGIN
134
+ SQL (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-08-03 04:38:14.354236"], ["updated_at", "2017-08-03 04:38:14.354236"]]
135
+  (1.2ms) COMMIT
136
+ ActiveRecord::InternalMetadata Load (1.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
137
+  (0.5ms) BEGIN
138
+  (0.5ms) COMMIT
139
+ SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
140
+  (2.1ms) DROP TABLE IF EXISTS "devise_sessionable_sessions" CASCADE
141
+  (10.3ms) CREATE TABLE "devise_sessionable_sessions" ("id" bigserial primary key, "authentication_token" character varying, "authable_id" uuid NOT NULL, "authable_type" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
142
+  (2.6ms) CREATE INDEX "index_devise_sessionable_sessions_on_authable" ON "devise_sessionable_sessions" ("authable_id", "authable_type")
143
+  (1.9ms) CREATE UNIQUE INDEX "index_devise_sessionable_sessions_on_authentication_token" ON "devise_sessionable_sessions" ("authentication_token")
144
+  (0.2ms) DROP TABLE IF EXISTS "users" CASCADE
145
+  (7.3ms) CREATE TABLE "users" ("id" bigserial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
146
+  (7.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
147
+  (3.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
148
+  (2.5ms) INSERT INTO "schema_migrations" (version) VALUES (20170803015941)
149
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES
150
+ (20170803015911);
151
+
152
+ 
153
+  (4.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
154
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
155
+  (0.1ms) BEGIN
156
+ SQL (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-08-03 04:38:14.480937"], ["updated_at", "2017-08-03 04:38:14.480937"]]
157
+  (1.4ms) COMMIT
158
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
159
+  (0.1ms) BEGIN
160
+  (0.1ms) COMMIT
161
+  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
162
+  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
163
+  (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
164
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
165
+  (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
166
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
167
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
168
+  (196.2ms) DROP DATABASE IF EXISTS "test_app_development"
169
+  (188.8ms) DROP DATABASE IF EXISTS "test_app_test"
170
+  (386.6ms) CREATE DATABASE "test_app_development" ENCODING = 'unicode'
171
+  (396.8ms) CREATE DATABASE "test_app_test" ENCODING = 'unicode'
172
+ SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
173
+  (0.2ms) DROP TABLE IF EXISTS "devise_sessionable_sessions" CASCADE
174
+  (7.8ms) CREATE TABLE "devise_sessionable_sessions" ("id" bigserial primary key, "authentication_token" character varying, "authable_id" uuid NOT NULL, "authable_type" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
175
+  (5.6ms) CREATE INDEX "index_devise_sessionable_sessions_on_authable" ON "devise_sessionable_sessions" ("authable_id", "authable_type")
176
+  (2.1ms) CREATE UNIQUE INDEX "index_devise_sessionable_sessions_on_authentication_token" ON "devise_sessionable_sessions" ("authentication_token")
177
+  (0.2ms) DROP TABLE IF EXISTS "users" CASCADE
178
+  (3.5ms) CREATE TABLE "users" ("id" bigserial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
179
+  (5.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
180
+  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
181
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20170803015941)
182
+  (3.0ms) INSERT INTO "schema_migrations" (version) VALUES
183
+ (20170803015911);
184
+
185
+ 
186
+  (7.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
187
+ ActiveRecord::InternalMetadata Load (1.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
188
+  (0.2ms) BEGIN
189
+ SQL (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-08-03 04:39:30.719065"], ["updated_at", "2017-08-03 04:39:30.719065"]]
190
+  (1.1ms) COMMIT
191
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
192
+  (0.2ms) BEGIN
193
+  (0.2ms) COMMIT
194
+ SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
195
+  (0.3ms) DROP TABLE IF EXISTS "devise_sessionable_sessions" CASCADE
196
+  (10.0ms) CREATE TABLE "devise_sessionable_sessions" ("id" bigserial primary key, "authentication_token" character varying, "authable_id" uuid NOT NULL, "authable_type" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
197
+  (4.0ms) CREATE INDEX "index_devise_sessionable_sessions_on_authable" ON "devise_sessionable_sessions" ("authable_id", "authable_type")
198
+  (2.3ms) CREATE UNIQUE INDEX "index_devise_sessionable_sessions_on_authentication_token" ON "devise_sessionable_sessions" ("authentication_token")
199
+  (0.3ms) DROP TABLE IF EXISTS "users" CASCADE
200
+  (8.1ms) CREATE TABLE "users" ("id" bigserial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
201
+  (6.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
202
+  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
203
+  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES (20170803015941)
204
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES
205
+ (20170803015911);
206
+
207
+ 
208
+  (7.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
209
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
210
+  (0.1ms) BEGIN
211
+ SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-08-03 04:39:30.820409"], ["updated_at", "2017-08-03 04:39:30.820409"]]
212
+  (2.0ms) COMMIT
213
+ ActiveRecord::InternalMetadata Load (1.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
214
+  (0.1ms) BEGIN
215
+  (0.1ms) COMMIT
216
+  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
217
+  (192.4ms) DROP DATABASE IF EXISTS "test_app_test"
218
+  (396.4ms) CREATE DATABASE "test_app_test" ENCODING = 'unicode'
219
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
220
+  (0.2ms) DROP TABLE IF EXISTS "devise_sessionable_sessions" CASCADE
221
+  (8.3ms) CREATE TABLE "devise_sessionable_sessions" ("id" bigserial primary key, "authentication_token" character varying, "authable_id" uuid NOT NULL, "authable_type" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
222
+  (2.7ms) CREATE INDEX "index_devise_sessionable_sessions_on_authable" ON "devise_sessionable_sessions" ("authable_id", "authable_type")
223
+  (2.1ms) CREATE UNIQUE INDEX "index_devise_sessionable_sessions_on_authentication_token" ON "devise_sessionable_sessions" ("authentication_token")
224
+  (0.2ms) DROP TABLE IF EXISTS "users" CASCADE
225
+  (3.8ms) CREATE TABLE "users" ("id" bigserial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
226
+  (4.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
227
+  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
228
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES (20170803015941)
229
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES
230
+ (20170803015911);
231
+
232
+ 
233
+  (4.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
234
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
235
+  (0.1ms) BEGIN
236
+ SQL (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-08-03 04:39:31.520632"], ["updated_at", "2017-08-03 04:39:31.520632"]]
237
+  (1.3ms) COMMIT
238
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
239
+  (0.1ms) BEGIN
240
+  (0.1ms) COMMIT
241
+  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
242
+  (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
243
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
244
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
245
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
246
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
247
+  (198.3ms) DROP DATABASE IF EXISTS "test_app_development"
248
+  (189.0ms) DROP DATABASE IF EXISTS "test_app_test"
249
+  (195.5ms) DROP DATABASE IF EXISTS "test_app_development"
250
+  (199.2ms) DROP DATABASE IF EXISTS "test_app_test"
251
+  (431.2ms) CREATE DATABASE "test_app_development" ENCODING = 'unicode'
252
+  (388.5ms) CREATE DATABASE "test_app_test" ENCODING = 'unicode'
253
+  (7.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
254
+  (20.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
255
+  (0.3ms) SELECT pg_try_advisory_lock(7992348028875656775);
256
+  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
257
+ Migrating to DeviseSessionableCreateSessions (20170803015911)
258
+  (0.2ms) BEGIN
259
+  (16.5ms) CREATE TABLE "devise_sessionable_sessions" ("id" bigserial primary key, "authentication_token" character varying, "authable_id" integer NOT NULL, "authable_type" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
260
+  (4.2ms) CREATE INDEX "index_devise_sessionable_sessions_on_authable" ON "devise_sessionable_sessions" ("authable_id", "authable_type")
261
+  (1.7ms) CREATE UNIQUE INDEX "index_devise_sessionable_sessions_on_authentication_token" ON "devise_sessionable_sessions" ("authentication_token")
262
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170803015911"]]
263
+  (1.4ms) COMMIT
264
+ Migrating to CreateUsers (20170803015941)
265
+  (6.2ms) BEGIN
266
+  (10.6ms) CREATE TABLE "users" ("id" bigserial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
267
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170803015941"]]
268
+  (7.0ms) COMMIT
269
+ ActiveRecord::InternalMetadata Load (3.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
270
+  (0.2ms) BEGIN
271
+ SQL (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-08-03 04:41:31.799443"], ["updated_at", "2017-08-03 04:41:31.799443"]]
272
+  (1.1ms) COMMIT
273
+  (0.3ms) SELECT pg_advisory_unlock(7992348028875656775)
274
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC