approval 0.2.0 → 0.2.2

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 (115) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -1
  3. data/lib/approval/models/approval/item.rb +2 -2
  4. data/lib/approval/version.rb +1 -1
  5. data/lib/generators/approval/USAGE +2 -0
  6. metadata +1 -219
  7. data/spec/rails/rails-4.2.9/README.rdoc +0 -28
  8. data/spec/rails/rails-4.2.9/Rakefile +0 -6
  9. data/spec/rails/rails-4.2.9/app/assets/javascripts/application.js +0 -16
  10. data/spec/rails/rails-4.2.9/app/assets/stylesheets/application.css +0 -15
  11. data/spec/rails/rails-4.2.9/app/controllers/application_controller.rb +0 -5
  12. data/spec/rails/rails-4.2.9/app/helpers/application_helper.rb +0 -2
  13. data/spec/rails/rails-4.2.9/app/models/book.rb +0 -3
  14. data/spec/rails/rails-4.2.9/app/models/user.rb +0 -3
  15. data/spec/rails/rails-4.2.9/app/views/layouts/application.html.erb +0 -14
  16. data/spec/rails/rails-4.2.9/bin/bundle +0 -3
  17. data/spec/rails/rails-4.2.9/bin/rails +0 -4
  18. data/spec/rails/rails-4.2.9/bin/rake +0 -4
  19. data/spec/rails/rails-4.2.9/bin/setup +0 -29
  20. data/spec/rails/rails-4.2.9/config/application.rb +0 -35
  21. data/spec/rails/rails-4.2.9/config/boot.rb +0 -3
  22. data/spec/rails/rails-4.2.9/config/database.yml +0 -25
  23. data/spec/rails/rails-4.2.9/config/environment.rb +0 -8
  24. data/spec/rails/rails-4.2.9/config/environments/development.rb +0 -28
  25. data/spec/rails/rails-4.2.9/config/environments/production.rb +0 -67
  26. data/spec/rails/rails-4.2.9/config/environments/test.rb +0 -42
  27. data/spec/rails/rails-4.2.9/config/initializers/approval.rb +0 -4
  28. data/spec/rails/rails-4.2.9/config/initializers/backtrace_silencers.rb +0 -7
  29. data/spec/rails/rails-4.2.9/config/initializers/cookies_serializer.rb +0 -3
  30. data/spec/rails/rails-4.2.9/config/initializers/filter_parameter_logging.rb +0 -4
  31. data/spec/rails/rails-4.2.9/config/initializers/inflections.rb +0 -16
  32. data/spec/rails/rails-4.2.9/config/initializers/mime_types.rb +0 -4
  33. data/spec/rails/rails-4.2.9/config/initializers/session_store.rb +0 -3
  34. data/spec/rails/rails-4.2.9/config/initializers/to_time_preserves_timezone.rb +0 -10
  35. data/spec/rails/rails-4.2.9/config/initializers/wrap_parameters.rb +0 -14
  36. data/spec/rails/rails-4.2.9/config/locales/en.yml +0 -23
  37. data/spec/rails/rails-4.2.9/config/routes.rb +0 -56
  38. data/spec/rails/rails-4.2.9/config/secrets.yml +0 -22
  39. data/spec/rails/rails-4.2.9/config.ru +0 -4
  40. data/spec/rails/rails-4.2.9/db/migrate/20170731151146_create_approval_requests.rb +0 -19
  41. data/spec/rails/rails-4.2.9/db/migrate/20170731151147_create_approval_comments.rb +0 -14
  42. data/spec/rails/rails-4.2.9/db/migrate/20170731151148_create_approval_items.rb +0 -17
  43. data/spec/rails/rails-4.2.9/db/migrate/20170731151149_create_users.rb +0 -9
  44. data/spec/rails/rails-4.2.9/db/migrate/20170731151150_create_books.rb +0 -9
  45. data/spec/rails/rails-4.2.9/db/schema.rb +0 -68
  46. data/spec/rails/rails-4.2.9/db/seeds.rb +0 -7
  47. data/spec/rails/rails-4.2.9/db/test.sqlite3 +0 -0
  48. data/spec/rails/rails-4.2.9/log/test.log +0 -133
  49. data/spec/rails/rails-4.2.9/public/404.html +0 -67
  50. data/spec/rails/rails-4.2.9/public/422.html +0 -67
  51. data/spec/rails/rails-4.2.9/public/500.html +0 -66
  52. data/spec/rails/rails-4.2.9/public/favicon.ico +0 -0
  53. data/spec/rails/rails-4.2.9/public/robots.txt +0 -5
  54. data/spec/rails/rails-5.1.2/README.md +0 -24
  55. data/spec/rails/rails-5.1.2/Rakefile +0 -6
  56. data/spec/rails/rails-5.1.2/app/assets/config/manifest.js +0 -3
  57. data/spec/rails/rails-5.1.2/app/assets/javascripts/application.js +0 -15
  58. data/spec/rails/rails-5.1.2/app/assets/javascripts/cable.js +0 -13
  59. data/spec/rails/rails-5.1.2/app/assets/stylesheets/application.css +0 -15
  60. data/spec/rails/rails-5.1.2/app/channels/application_cable/channel.rb +0 -4
  61. data/spec/rails/rails-5.1.2/app/channels/application_cable/connection.rb +0 -4
  62. data/spec/rails/rails-5.1.2/app/controllers/application_controller.rb +0 -3
  63. data/spec/rails/rails-5.1.2/app/helpers/application_helper.rb +0 -2
  64. data/spec/rails/rails-5.1.2/app/jobs/application_job.rb +0 -2
  65. data/spec/rails/rails-5.1.2/app/mailers/application_mailer.rb +0 -4
  66. data/spec/rails/rails-5.1.2/app/models/application_record.rb +0 -3
  67. data/spec/rails/rails-5.1.2/app/models/book.rb +0 -3
  68. data/spec/rails/rails-5.1.2/app/models/user.rb +0 -3
  69. data/spec/rails/rails-5.1.2/app/views/layouts/application.html.erb +0 -14
  70. data/spec/rails/rails-5.1.2/app/views/layouts/mailer.html.erb +0 -13
  71. data/spec/rails/rails-5.1.2/app/views/layouts/mailer.text.erb +0 -1
  72. data/spec/rails/rails-5.1.2/bin/bundle +0 -3
  73. data/spec/rails/rails-5.1.2/bin/rails +0 -4
  74. data/spec/rails/rails-5.1.2/bin/rake +0 -4
  75. data/spec/rails/rails-5.1.2/bin/setup +0 -38
  76. data/spec/rails/rails-5.1.2/bin/update +0 -29
  77. data/spec/rails/rails-5.1.2/bin/yarn +0 -11
  78. data/spec/rails/rails-5.1.2/config/application.rb +0 -31
  79. data/spec/rails/rails-5.1.2/config/boot.rb +0 -3
  80. data/spec/rails/rails-5.1.2/config/cable.yml +0 -10
  81. data/spec/rails/rails-5.1.2/config/database.yml +0 -25
  82. data/spec/rails/rails-5.1.2/config/environment.rb +0 -8
  83. data/spec/rails/rails-5.1.2/config/environments/development.rb +0 -47
  84. data/spec/rails/rails-5.1.2/config/environments/production.rb +0 -83
  85. data/spec/rails/rails-5.1.2/config/environments/test.rb +0 -42
  86. data/spec/rails/rails-5.1.2/config/initializers/application_controller_renderer.rb +0 -6
  87. data/spec/rails/rails-5.1.2/config/initializers/approval.rb +0 -4
  88. data/spec/rails/rails-5.1.2/config/initializers/backtrace_silencers.rb +0 -7
  89. data/spec/rails/rails-5.1.2/config/initializers/cookies_serializer.rb +0 -5
  90. data/spec/rails/rails-5.1.2/config/initializers/filter_parameter_logging.rb +0 -4
  91. data/spec/rails/rails-5.1.2/config/initializers/inflections.rb +0 -16
  92. data/spec/rails/rails-5.1.2/config/initializers/mime_types.rb +0 -4
  93. data/spec/rails/rails-5.1.2/config/initializers/wrap_parameters.rb +0 -14
  94. data/spec/rails/rails-5.1.2/config/locales/en.yml +0 -33
  95. data/spec/rails/rails-5.1.2/config/puma.rb +0 -56
  96. data/spec/rails/rails-5.1.2/config/routes.rb +0 -3
  97. data/spec/rails/rails-5.1.2/config/secrets.yml +0 -32
  98. data/spec/rails/rails-5.1.2/config.ru +0 -5
  99. data/spec/rails/rails-5.1.2/db/migrate/20170731101409_create_approval_requests.rb +0 -19
  100. data/spec/rails/rails-5.1.2/db/migrate/20170731101410_create_approval_comments.rb +0 -14
  101. data/spec/rails/rails-5.1.2/db/migrate/20170731101411_create_approval_items.rb +0 -17
  102. data/spec/rails/rails-5.1.2/db/migrate/20170731101412_create_users.rb +0 -9
  103. data/spec/rails/rails-5.1.2/db/migrate/20170731101413_create_books.rb +0 -9
  104. data/spec/rails/rails-5.1.2/db/schema.rb +0 -64
  105. data/spec/rails/rails-5.1.2/db/seeds.rb +0 -7
  106. data/spec/rails/rails-5.1.2/db/test.sqlite3 +0 -0
  107. data/spec/rails/rails-5.1.2/log/test.log +0 -3485
  108. data/spec/rails/rails-5.1.2/package.json +0 -5
  109. data/spec/rails/rails-5.1.2/public/404.html +0 -67
  110. data/spec/rails/rails-5.1.2/public/422.html +0 -67
  111. data/spec/rails/rails-5.1.2/public/500.html +0 -66
  112. data/spec/rails/rails-5.1.2/public/apple-touch-icon-precomposed.png +0 -0
  113. data/spec/rails/rails-5.1.2/public/apple-touch-icon.png +0 -0
  114. data/spec/rails/rails-5.1.2/public/favicon.ico +0 -0
  115. data/spec/rails/rails-5.1.2/public/robots.txt +0 -1
@@ -1,42 +0,0 @@
1
- Rails.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
@@ -1,4 +0,0 @@
1
- Approval.configure do |config|
2
- config.user_class_name = "User"
3
- config.comment_maximum = 2000
4
- end
@@ -1,7 +0,0 @@
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!
@@ -1,3 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -1,4 +0,0 @@
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]
@@ -1,16 +0,0 @@
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
@@ -1,4 +0,0 @@
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
@@ -1,3 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Rails.application.config.session_store :cookie_store, key: '_rails-4_2_9_session'
@@ -1,10 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Preserve the timezone of the receiver when calling to `to_time`.
4
- # Ruby 2.4 will change the behavior of `to_time` to preserve the timezone
5
- # when converting to an instance of `Time` instead of the previous behavior
6
- # of converting to the local system timezone.
7
- #
8
- # Rails 5.0 introduced this config option so that apps made with earlier
9
- # versions of Rails are not affected when upgrading.
10
- ActiveSupport.to_time_preserves_timezone = true
@@ -1,14 +0,0 @@
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] if respond_to?(:wrap_parameters)
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
@@ -1,23 +0,0 @@
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
- # To learn more, please read the Rails Internationalization guide
20
- # available at http://guides.rubyonrails.org/i18n.html.
21
-
22
- en:
23
- hello: "Hello world"
@@ -1,56 +0,0 @@
1
- Rails.application.routes.draw do
2
- # The priority is based upon order of creation: first created -> highest priority.
3
- # See how all your routes lay out with "rake routes".
4
-
5
- # You can have the root of your site routed with "root"
6
- # root 'welcome#index'
7
-
8
- # Example of regular route:
9
- # get 'products/:id' => 'catalog#view'
10
-
11
- # Example of named route that can be invoked with purchase_url(id: product.id)
12
- # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
13
-
14
- # Example resource route (maps HTTP verbs to controller actions automatically):
15
- # resources :products
16
-
17
- # Example resource route with options:
18
- # resources :products do
19
- # member do
20
- # get 'short'
21
- # post 'toggle'
22
- # end
23
- #
24
- # collection do
25
- # get 'sold'
26
- # end
27
- # end
28
-
29
- # Example resource route with sub-resources:
30
- # resources :products do
31
- # resources :comments, :sales
32
- # resource :seller
33
- # end
34
-
35
- # Example resource route with more complex sub-resources:
36
- # resources :products do
37
- # resources :comments
38
- # resources :sales do
39
- # get 'recent', on: :collection
40
- # end
41
- # end
42
-
43
- # Example resource route with concerns:
44
- # concern :toggleable do
45
- # post 'toggle'
46
- # end
47
- # resources :posts, concerns: :toggleable
48
- # resources :photos, concerns: :toggleable
49
-
50
- # Example resource route within a namespace:
51
- # namespace :admin do
52
- # # Directs /admin/products/* to Admin::ProductsController
53
- # # (app/controllers/admin/products_controller.rb)
54
- # resources :products
55
- # end
56
- end
@@ -1,22 +0,0 @@
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 `rake 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
- development:
14
- secret_key_base: 65ea7d54c187c142b786bcdda079ad25ed4136c706a97dec2e97eb39c286557de3fc59c35f5c6b680d2299d814e6d286b7eef334387e082620eaa9b01b8ab460
15
-
16
- test:
17
- secret_key_base: 090c9ff9f7c002ded87d1502a876cdc157ed9cbc38c3f620c7549a6c2a7cda86f18aec19f9e6a2fb52ee7e87660ef7864fecdccf2bd287d1b7f74e1d636202a4
18
-
19
- # Do not keep production secrets in the repository,
20
- # instead read values from the environment.
21
- production:
22
- secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -1,4 +0,0 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
- require ::File.expand_path('../config/environment', __FILE__)
4
- run Rails.application
@@ -1,19 +0,0 @@
1
- class CreateApprovalRequests < ActiveRecord::Migration
2
- def change
3
- create_table :approval_requests do |t|
4
- t.integer :request_user_id, null: false
5
- t.integer :respond_user_id
6
- t.integer :state, null: false, limit: 1, default: 0
7
- t.datetime :requested_at, null: false
8
- t.datetime :cancelled_at
9
- t.datetime :approved_at
10
- t.datetime :rejected_at
11
-
12
- t.timestamps
13
-
14
- t.index :request_user_id
15
- t.index :respond_user_id
16
- t.index :state
17
- end
18
- end
19
- end
@@ -1,14 +0,0 @@
1
- class CreateApprovalComments < ActiveRecord::Migration
2
- def change
3
- create_table :approval_comments do |t|
4
- t.integer :request_id, null: false
5
- t.integer :user_id, null: false
6
- t.text :content, null: false
7
-
8
- t.timestamps
9
-
10
- t.index :request_id
11
- t.index :user_id
12
- end
13
- end
14
- end
@@ -1,17 +0,0 @@
1
- class CreateApprovalItems < ActiveRecord::Migration
2
- def change
3
- create_table :approval_items do |t|
4
- t.integer :request_id, null: false
5
- t.integer :resource_id
6
- t.string :resource_type, null: false
7
- t.string :event, null: false
8
- t.text :params
9
-
10
- t.timestamps
11
-
12
- t.index :request_id
13
- end
14
-
15
- add_index :approval_items, [:resource_id, :resource_type]
16
- end
17
- end
@@ -1,9 +0,0 @@
1
- class CreateUsers < ActiveRecord::Migration
2
- def change
3
- create_table :users do |t|
4
- t.string :name
5
-
6
- t.timestamps null: false
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- class CreateBooks < ActiveRecord::Migration
2
- def change
3
- create_table :books do |t|
4
- t.string :name
5
-
6
- t.timestamps null: false
7
- end
8
- end
9
- end
@@ -1,68 +0,0 @@
1
- # encoding: UTF-8
2
- # This file is auto-generated from the current state of the database. Instead
3
- # of editing this file, please use the migrations feature of Active Record to
4
- # incrementally modify your database, and then regenerate this schema definition.
5
- #
6
- # Note that this schema.rb definition is the authoritative source for your
7
- # database schema. If you need to create the application database on another
8
- # system, you should be using db:schema:load, not running all the migrations
9
- # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
- # you'll amass, the slower it'll run and the greater likelihood for issues).
11
- #
12
- # It's strongly recommended that you check this file into your version control system.
13
-
14
- ActiveRecord::Schema.define(version: 20170731151150) do
15
-
16
- create_table "approval_comments", force: :cascade do |t|
17
- t.integer "request_id", null: false
18
- t.integer "user_id", null: false
19
- t.text "content", null: false
20
- t.datetime "created_at"
21
- t.datetime "updated_at"
22
- end
23
-
24
- add_index "approval_comments", ["request_id"], name: "index_approval_comments_on_request_id"
25
- add_index "approval_comments", ["user_id"], name: "index_approval_comments_on_user_id"
26
-
27
- create_table "approval_items", force: :cascade do |t|
28
- t.integer "request_id", null: false
29
- t.integer "resource_id"
30
- t.string "resource_type", null: false
31
- t.string "event", null: false
32
- t.text "params"
33
- t.datetime "created_at"
34
- t.datetime "updated_at"
35
- end
36
-
37
- add_index "approval_items", ["request_id"], name: "index_approval_items_on_request_id"
38
- add_index "approval_items", ["resource_id", "resource_type"], name: "index_approval_items_on_resource_id_and_resource_type"
39
-
40
- create_table "approval_requests", force: :cascade do |t|
41
- t.integer "request_user_id", null: false
42
- t.integer "respond_user_id"
43
- t.integer "state", limit: 1, default: 0, null: false
44
- t.datetime "requested_at", null: false
45
- t.datetime "cancelled_at"
46
- t.datetime "approved_at"
47
- t.datetime "rejected_at"
48
- t.datetime "created_at"
49
- t.datetime "updated_at"
50
- end
51
-
52
- add_index "approval_requests", ["request_user_id"], name: "index_approval_requests_on_request_user_id"
53
- add_index "approval_requests", ["respond_user_id"], name: "index_approval_requests_on_respond_user_id"
54
- add_index "approval_requests", ["state"], name: "index_approval_requests_on_state"
55
-
56
- create_table "books", force: :cascade do |t|
57
- t.string "name"
58
- t.datetime "created_at", null: false
59
- t.datetime "updated_at", null: false
60
- end
61
-
62
- create_table "users", force: :cascade do |t|
63
- t.string "name"
64
- t.datetime "created_at", null: false
65
- t.datetime "updated_at", null: false
66
- end
67
-
68
- end
@@ -1,7 +0,0 @@
1
- # This file should contain all the record creation needed to seed the database with its default values.
2
- # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
3
- #
4
- # Examples:
5
- #
6
- # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
7
- # Mayor.create(name: 'Emanuel', city: cities.first)
Binary file
@@ -1,133 +0,0 @@
1
-  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
2
-  (0.3ms) select sqlite_version(*)
3
-  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
- Migrating to CreateApprovalRequests (20170731151146)
6
-  (0.1ms) begin transaction
7
-  (0.4ms) CREATE TABLE "approval_requests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "request_user_id" integer NOT NULL, "respond_user_id" integer, "state" integer(1) DEFAULT 0 NOT NULL, "requested_at" datetime NOT NULL, "cancelled_at" datetime, "approved_at" datetime, "rejected_at" datetime, "created_at" datetime, "updated_at" datetime)
8
-  (0.1ms) CREATE INDEX "index_approval_requests_on_request_user_id" ON "approval_requests" ("request_user_id")
9
-  (0.1ms) SELECT sql
10
- FROM sqlite_master
11
- WHERE name='index_approval_requests_on_request_user_id' AND type='index'
12
- UNION ALL
13
- SELECT sql
14
- FROM sqlite_temp_master
15
- WHERE name='index_approval_requests_on_request_user_id' AND type='index'
16
-
17
-  (0.1ms) CREATE INDEX "index_approval_requests_on_respond_user_id" ON "approval_requests" ("respond_user_id")
18
-  (0.1ms) SELECT sql
19
- FROM sqlite_master
20
- WHERE name='index_approval_requests_on_respond_user_id' AND type='index'
21
- UNION ALL
22
- SELECT sql
23
- FROM sqlite_temp_master
24
- WHERE name='index_approval_requests_on_respond_user_id' AND type='index'
25
-
26
-  (0.0ms)  SELECT sql
27
- FROM sqlite_master
28
- WHERE name='index_approval_requests_on_request_user_id' AND type='index'
29
- UNION ALL
30
- SELECT sql
31
- FROM sqlite_temp_master
32
- WHERE name='index_approval_requests_on_request_user_id' AND type='index'
33
- 
34
-  (0.1ms) CREATE INDEX "index_approval_requests_on_state" ON "approval_requests" ("state")
35
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170731151146"]]
36
-  (0.5ms) commit transaction
37
- Migrating to CreateApprovalComments (20170731151147)
38
-  (0.0ms) begin transaction
39
-  (0.3ms) CREATE TABLE "approval_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "request_id" integer NOT NULL, "user_id" integer NOT NULL, "content" text NOT NULL, "created_at" datetime, "updated_at" datetime)
40
-  (0.1ms) CREATE INDEX "index_approval_comments_on_request_id" ON "approval_comments" ("request_id")
41
-  (0.0ms) SELECT sql
42
- FROM sqlite_master
43
- WHERE name='index_approval_comments_on_request_id' AND type='index'
44
- UNION ALL
45
- SELECT sql
46
- FROM sqlite_temp_master
47
- WHERE name='index_approval_comments_on_request_id' AND type='index'
48
-
49
-  (0.1ms) CREATE INDEX "index_approval_comments_on_user_id" ON "approval_comments" ("user_id")
50
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170731151147"]]
51
-  (0.5ms) commit transaction
52
- Migrating to CreateApprovalItems (20170731151148)
53
-  (0.0ms) begin transaction
54
-  (0.3ms) CREATE TABLE "approval_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "request_id" integer NOT NULL, "resource_id" integer, "resource_type" varchar NOT NULL, "event" varchar NOT NULL, "params" text, "created_at" datetime, "updated_at" datetime) 
55
-  (0.1ms) CREATE INDEX "index_approval_items_on_request_id" ON "approval_items" ("request_id")
56
-  (0.0ms)  SELECT sql
57
- FROM sqlite_master
58
- WHERE name='index_approval_items_on_request_id' AND type='index'
59
- UNION ALL
60
- SELECT sql
61
- FROM sqlite_temp_master
62
- WHERE name='index_approval_items_on_request_id' AND type='index'
63
- 
64
-  (0.1ms) CREATE INDEX "index_approval_items_on_resource_id_and_resource_type" ON "approval_items" ("resource_id", "resource_type")
65
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170731151148"]]
66
-  (0.5ms) commit transaction
67
- Migrating to CreateUsers (20170731151149)
68
-  (0.0ms) begin transaction
69
-  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
70
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170731151149"]]
71
-  (0.5ms) commit transaction
72
- Migrating to CreateBooks (20170731151150)
73
-  (0.0ms) begin transaction
74
-  (0.2ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
75
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170731151150"]]
76
-  (0.5ms) commit transaction
77
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
78
-  (0.1ms) SELECT sql
79
- FROM sqlite_master
80
- WHERE name='index_approval_comments_on_user_id' AND type='index'
81
- UNION ALL
82
- SELECT sql
83
- FROM sqlite_temp_master
84
- WHERE name='index_approval_comments_on_user_id' AND type='index'
85
-
86
-  (0.1ms)  SELECT sql
87
- FROM sqlite_master
88
- WHERE name='index_approval_comments_on_request_id' AND type='index'
89
- UNION ALL
90
- SELECT sql
91
- FROM sqlite_temp_master
92
- WHERE name='index_approval_comments_on_request_id' AND type='index'
93
- 
94
-  (0.1ms) SELECT sql
95
- FROM sqlite_master
96
- WHERE name='index_approval_items_on_resource_id_and_resource_type' AND type='index'
97
- UNION ALL
98
- SELECT sql
99
- FROM sqlite_temp_master
100
- WHERE name='index_approval_items_on_resource_id_and_resource_type' AND type='index'
101
-
102
-  (0.1ms)  SELECT sql
103
- FROM sqlite_master
104
- WHERE name='index_approval_items_on_request_id' AND type='index'
105
- UNION ALL
106
- SELECT sql
107
- FROM sqlite_temp_master
108
- WHERE name='index_approval_items_on_request_id' AND type='index'
109
- 
110
-  (0.1ms) SELECT sql
111
- FROM sqlite_master
112
- WHERE name='index_approval_requests_on_state' AND type='index'
113
- UNION ALL
114
- SELECT sql
115
- FROM sqlite_temp_master
116
- WHERE name='index_approval_requests_on_state' AND type='index'
117
-
118
-  (0.1ms)  SELECT sql
119
- FROM sqlite_master
120
- WHERE name='index_approval_requests_on_respond_user_id' AND type='index'
121
- UNION ALL
122
- SELECT sql
123
- FROM sqlite_temp_master
124
- WHERE name='index_approval_requests_on_respond_user_id' AND type='index'
125
- 
126
-  (0.1ms) SELECT sql
127
- FROM sqlite_master
128
- WHERE name='index_approval_requests_on_request_user_id' AND type='index'
129
- UNION ALL
130
- SELECT sql
131
- FROM sqlite_temp_master
132
- WHERE name='index_approval_requests_on_request_user_id' AND type='index'
133
-
@@ -1,67 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The page you were looking for doesn't exist (404)</title>
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <style>
7
- body {
8
- background-color: #EFEFEF;
9
- color: #2E2F30;
10
- text-align: center;
11
- font-family: arial, sans-serif;
12
- margin: 0;
13
- }
14
-
15
- div.dialog {
16
- width: 95%;
17
- max-width: 33em;
18
- margin: 4em auto 0;
19
- }
20
-
21
- div.dialog > div {
22
- border: 1px solid #CCC;
23
- border-right-color: #999;
24
- border-left-color: #999;
25
- border-bottom-color: #BBB;
26
- border-top: #B00100 solid 4px;
27
- border-top-left-radius: 9px;
28
- border-top-right-radius: 9px;
29
- background-color: white;
30
- padding: 7px 12% 0;
31
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
- }
33
-
34
- h1 {
35
- font-size: 100%;
36
- color: #730E15;
37
- line-height: 1.5em;
38
- }
39
-
40
- div.dialog > p {
41
- margin: 0 0 1em;
42
- padding: 1em;
43
- background-color: #F7F7F7;
44
- border: 1px solid #CCC;
45
- border-right-color: #999;
46
- border-left-color: #999;
47
- border-bottom-color: #999;
48
- border-bottom-left-radius: 4px;
49
- border-bottom-right-radius: 4px;
50
- border-top-color: #DADADA;
51
- color: #666;
52
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
- }
54
- </style>
55
- </head>
56
-
57
- <body>
58
- <!-- This file lives in public/404.html -->
59
- <div class="dialog">
60
- <div>
61
- <h1>The page you were looking for doesn't exist.</h1>
62
- <p>You may have mistyped the address or the page may have moved.</p>
63
- </div>
64
- <p>If you are the application owner check the logs for more information.</p>
65
- </div>
66
- </body>
67
- </html>
@@ -1,67 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The change you wanted was rejected (422)</title>
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <style>
7
- body {
8
- background-color: #EFEFEF;
9
- color: #2E2F30;
10
- text-align: center;
11
- font-family: arial, sans-serif;
12
- margin: 0;
13
- }
14
-
15
- div.dialog {
16
- width: 95%;
17
- max-width: 33em;
18
- margin: 4em auto 0;
19
- }
20
-
21
- div.dialog > div {
22
- border: 1px solid #CCC;
23
- border-right-color: #999;
24
- border-left-color: #999;
25
- border-bottom-color: #BBB;
26
- border-top: #B00100 solid 4px;
27
- border-top-left-radius: 9px;
28
- border-top-right-radius: 9px;
29
- background-color: white;
30
- padding: 7px 12% 0;
31
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
- }
33
-
34
- h1 {
35
- font-size: 100%;
36
- color: #730E15;
37
- line-height: 1.5em;
38
- }
39
-
40
- div.dialog > p {
41
- margin: 0 0 1em;
42
- padding: 1em;
43
- background-color: #F7F7F7;
44
- border: 1px solid #CCC;
45
- border-right-color: #999;
46
- border-left-color: #999;
47
- border-bottom-color: #999;
48
- border-bottom-left-radius: 4px;
49
- border-bottom-right-radius: 4px;
50
- border-top-color: #DADADA;
51
- color: #666;
52
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
- }
54
- </style>
55
- </head>
56
-
57
- <body>
58
- <!-- This file lives in public/422.html -->
59
- <div class="dialog">
60
- <div>
61
- <h1>The change you wanted was rejected.</h1>
62
- <p>Maybe you tried to change something you didn't have access to.</p>
63
- </div>
64
- <p>If you are the application owner check the logs for more information.</p>
65
- </div>
66
- </body>
67
- </html>