reviewable 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +23 -0
- data/app/assets/javascripts/reviewable/application.js +13 -0
- data/app/assets/stylesheets/reviewable/application.css +15 -0
- data/app/controllers/reviewable/questions_controller.rb +58 -0
- data/app/controllers/reviewable/reviewable_controller.rb +5 -0
- data/app/controllers/reviewable/reviews_controller.rb +58 -0
- data/app/helpers/reviewable/application_helper.rb +4 -0
- data/app/models/reviewable/question.rb +37 -0
- data/app/models/reviewable/review.rb +24 -0
- data/app/views/layouts/reviewable/application.html.erb +14 -0
- data/app/views/reviewable/questions/_form.html.erb +28 -0
- data/app/views/reviewable/questions/_question.html.erb +10 -0
- data/app/views/reviewable/questions/_question.json.jbuilder +10 -0
- data/app/views/reviewable/questions/edit.html.erb +3 -0
- data/app/views/reviewable/questions/index.html.erb +21 -0
- data/app/views/reviewable/questions/index.json.jbuilder +5 -0
- data/app/views/reviewable/questions/new.html.erb +3 -0
- data/config/routes.rb +3 -0
- data/db/migrate/20141013142401_enable_uuid_ossp_extension.rb +7 -0
- data/db/migrate/20141013142552_create_reviewable_reviews.rb +15 -0
- data/db/migrate/20141013145632_create_reviewable_questions.rb +15 -0
- data/lib/reviewable.rb +4 -0
- data/lib/reviewable/acts_as_reviewable.rb +25 -0
- data/lib/reviewable/engine.rb +22 -0
- data/lib/reviewable/version.rb +3 -0
- data/lib/tasks/reviewable_tasks.rake +4 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/models/product.rb +4 -0
- data/spec/dummy/app/models/user.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +23 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +85 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +78 -0
- data/spec/dummy/config/environments/test.rb +39 -0
- data/spec/dummy/config/initializers/assets.rb +8 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +4 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20141013173317_create_products.rb +9 -0
- data/spec/dummy/db/migrate/20141013174327_create_users.rb +9 -0
- data/spec/dummy/db/schema.rb +56 -0
- data/spec/dummy/log/development.log +256 -0
- data/spec/dummy/log/test.log +41431 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/dummy/tmp/capybara/capybara-201410141638119443873212.html +24 -0
- data/spec/dummy/tmp/capybara/capybara-201410141807209663577120.html +34 -0
- data/spec/dummy/tmp/capybara/capybara-201410141808528516645046.html +34 -0
- data/spec/dummy/tmp/capybara/capybara-201410141809478831156886.html +34 -0
- data/spec/dummy/tmp/capybara/capybara-201410141811022811314427.html +34 -0
- data/spec/dummy/tmp/capybara/capybara-201410141813201391325985.html +34 -0
- data/spec/dummy/tmp/capybara/capybara-201410141855296114330585.html +86 -0
- data/spec/dummy/tmp/capybara/capybara-201410141857326053813040.html +34 -0
- data/spec/dummy/tmp/capybara/capybara-201410141857482438637842.html +35 -0
- data/spec/dummy/tmp/capybara/capybara-201410141858304336368395.html +35 -0
- data/spec/dummy/tmp/capybara/capybara-20141014185925908498887.html +86 -0
- data/spec/dummy/tmp/capybara/capybara-201410141904184954015862.html +35 -0
- data/spec/dummy/tmp/capybara/capybara-201410141905062396116920.html +46 -0
- data/spec/dummy/tmp/capybara/capybara-201410141905261123020644.html +46 -0
- data/spec/factories/product.rb +7 -0
- data/spec/factories/question.rb +25 -0
- data/spec/factories/review.rb +22 -0
- data/spec/factories/user.rb +7 -0
- data/spec/features/questions/question_create_spec.rb +43 -0
- data/spec/features/questions/question_delete_spec.rb +30 -0
- data/spec/features/questions/question_edit_spec.rb +106 -0
- data/spec/features/questions/question_index_spec.rb +23 -0
- data/spec/models/acts_as_reviewable_spec.rb +12 -0
- data/spec/models/reviewable/question_spec.rb +27 -0
- data/spec/models/reviewable/review_spec.rb +61 -0
- data/spec/rails_helper.rb +60 -0
- data/spec/spec_helper.rb +78 -0
- metadata +263 -0
@@ -0,0 +1,8 @@
|
|
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
|
+
# Precompile additional assets.
|
7
|
+
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
8
|
+
# Rails.application.config.assets.precompile += %w( search.js )
|
@@ -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,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,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] 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
|
@@ -0,0 +1,23 @@
|
|
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"
|
@@ -0,0 +1,22 @@
|
|
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: f547d0516335732c4562fdb933a7903cb16d21059cf689614e218a444e3128d873afb778f033cb0d86f0a5e5f125cafbdf7caaf5c27b9b95435a024534095d6b
|
15
|
+
|
16
|
+
test:
|
17
|
+
secret_key_base: 92b0b2ab4d6bd7d86faf2a5e4941d2248b5a911126ca1415b319d634f374b940aba802516fb15c74eb82e610c91cbab6328231d2b16a1c1dc2408346e8eac0ca
|
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"] %>
|
Binary file
|
@@ -0,0 +1,56 @@
|
|
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: 20141013174327) do
|
15
|
+
|
16
|
+
# These are extensions that must be enabled in order to support this database
|
17
|
+
enable_extension "plpgsql"
|
18
|
+
enable_extension "uuid-ossp"
|
19
|
+
|
20
|
+
create_table "products", force: true do |t|
|
21
|
+
t.string "title"
|
22
|
+
t.datetime "created_at"
|
23
|
+
t.datetime "updated_at"
|
24
|
+
end
|
25
|
+
|
26
|
+
create_table "reviewable_questions", force: true do |t|
|
27
|
+
t.string "question_text"
|
28
|
+
t.string "question_type"
|
29
|
+
t.string "slug"
|
30
|
+
t.string "answer_options_string"
|
31
|
+
t.integer "answer_min"
|
32
|
+
t.integer "answer_max"
|
33
|
+
t.boolean "enabled"
|
34
|
+
t.datetime "created_at"
|
35
|
+
t.datetime "updated_at"
|
36
|
+
end
|
37
|
+
|
38
|
+
create_table "reviewable_reviews", force: true do |t|
|
39
|
+
t.integer "reviewable_object_id"
|
40
|
+
t.string "reviewable_object_type"
|
41
|
+
t.integer "reviewer_id"
|
42
|
+
t.string "reviewer_type"
|
43
|
+
t.uuid "uuid", default: "uuid_generate_v4()"
|
44
|
+
t.json "results"
|
45
|
+
t.datetime "submitted_at"
|
46
|
+
t.datetime "created_at"
|
47
|
+
t.datetime "updated_at"
|
48
|
+
end
|
49
|
+
|
50
|
+
create_table "users", force: true do |t|
|
51
|
+
t.string "name"
|
52
|
+
t.datetime "created_at"
|
53
|
+
t.datetime "updated_at"
|
54
|
+
end
|
55
|
+
|
56
|
+
end
|
@@ -0,0 +1,256 @@
|
|
1
|
+
[1m[36m (21.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
2
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
3
|
+
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
4
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
5
|
+
Migrating to CreateReviewableReviews (20141013142552)
|
6
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
7
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
9
|
+
Migrating to CreateReviewableReviews (20141013142552)
|
10
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13
|
+
Migrating to EnableUuidOsspExtension (20141013142401)
|
14
|
+
[1m[35m (0.1ms)[0m begin transaction
|
15
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141013142401"]]
|
16
|
+
[1m[35m (33.5ms)[0m commit transaction
|
17
|
+
Migrating to CreateReviewableReviews (20141013142552)
|
18
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
19
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
20
|
+
[1m[36m (19.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
21
|
+
[1m[35m (16.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
22
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
23
|
+
Migrating to EnableUuidOsspExtension (20141013142401)
|
24
|
+
[1m[35m (0.5ms)[0m BEGIN
|
25
|
+
[1m[36mSQL (15.7ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20141013142401"]]
|
26
|
+
[1m[35m (16.5ms)[0m COMMIT
|
27
|
+
Migrating to CreateReviewableReviews (20141013142552)
|
28
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29
|
+
[1m[35mSQL (280.8ms)[0m CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
|
30
|
+
[1m[36m (13.5ms)[0m [1mCREATE TABLE "reviewable_reviews" ("id" serial primary key, "reviewable_id" integer, "reviewable_type" character varying(255), "reviewer_id" integer, "reviewer_type" character varying(255), "uuid" uuid DEFAULT uuid_generate_v4(), "results" json, "submitted_at" timestamp, "created_at" timestamp, "updated_at" timestamp) [0m
|
31
|
+
[1m[35mSQL (1.8ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141013142552"]]
|
32
|
+
[1m[36m (1.4ms)[0m [1mCOMMIT[0m
|
33
|
+
[1m[35mActiveRecord::SchemaMigration Load (6.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
34
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
35
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
36
|
+
Migrating to CreateReviewableReviews (20141013142552)
|
37
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
38
|
+
[1m[35m (26.9ms)[0m DROP TABLE "reviewable_reviews"
|
39
|
+
[1m[36mSQL (7.4ms)[0m [1mDROP EXTENSION IF EXISTS "uuid-ossp" CASCADE[0m
|
40
|
+
[1m[35mSQL (31.8ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20141013142552'
|
41
|
+
[1m[36m (27.3ms)[0m [1mCOMMIT[0m
|
42
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
43
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
44
|
+
Migrating to CreateReviewableReviews (20141013142552)
|
45
|
+
[1m[35m (0.2ms)[0m BEGIN
|
46
|
+
[1m[36mSQL (71.7ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "uuid-ossp"[0m
|
47
|
+
[1m[35m (95.7ms)[0m CREATE TABLE "reviewable_reviews" ("id" serial primary key, "reviewable_object_id" integer, "reviewable_object_type" character varying(255), "reviewer_id" integer, "reviewer_type" character varying(255), "uuid" uuid DEFAULT uuid_generate_v4(), "results" json, "submitted_at" timestamp, "created_at" timestamp, "updated_at" timestamp)
|
48
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20141013142552"]]
|
49
|
+
[1m[35m (25.6ms)[0m COMMIT
|
50
|
+
Migrating to CreateReviewableQuestions (20141013145632)
|
51
|
+
[1m[36m (38.1ms)[0m [1mBEGIN[0m
|
52
|
+
[1m[35m (67.0ms)[0m CREATE TABLE "reviewable_questions" ("id" serial primary key, "text" character varying(255), "enabled" boolean, "created_at" timestamp, "updated_at" timestamp)
|
53
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20141013145632"]]
|
54
|
+
[1m[35m (16.0ms)[0m COMMIT
|
55
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
56
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
57
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
58
|
+
Migrating to CreateReviewableQuestions (20141013145632)
|
59
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
60
|
+
[1m[35m (1.4ms)[0m DROP TABLE "reviewable_questions"
|
61
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20141013145632'[0m
|
62
|
+
[1m[35m (54.1ms)[0m COMMIT
|
63
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
64
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
65
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
66
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
67
|
+
Migrating to CreateProducts (20141013173317)
|
68
|
+
[1m[35m (0.2ms)[0m BEGIN
|
69
|
+
[1m[36m (39.6ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "title" character varying(255), "created_at" timestamp, "updated_at" timestamp) [0m
|
70
|
+
[1m[35mSQL (29.9ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141013173317"]]
|
71
|
+
[1m[36m (26.9ms)[0m [1mCOMMIT[0m
|
72
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
73
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
74
|
+
Migrating to CreateUsers (20141013174327)
|
75
|
+
[1m[35m (0.2ms)[0m BEGIN
|
76
|
+
[1m[36m (19.9ms)[0m [1mCREATE TABLE "users" ("id" serial primary key, "name" character varying(255), "created_at" timestamp, "updated_at" timestamp) [0m
|
77
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141013174327"]]
|
78
|
+
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
|
79
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.6ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
80
|
+
[1m[36m (2.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
81
|
+
[1m[35m (2.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
82
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
83
|
+
Migrating to EnableUuidOsspExtension (20141013142401)
|
84
|
+
[1m[35m (0.2ms)[0m BEGIN
|
85
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20141013142401"]]
|
86
|
+
[1m[35m (0.4ms)[0m COMMIT
|
87
|
+
Migrating to CreateReviewableReviews (20141013142552)
|
88
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
89
|
+
[1m[35mSQL (31.4ms)[0m CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
|
90
|
+
[1m[36m (20.6ms)[0m [1mCREATE TABLE "reviewable_reviews" ("id" serial primary key, "reviewable_object_id" integer, "reviewable_object_type" character varying(255), "reviewer_id" integer, "reviewer_type" character varying(255), "uuid" uuid DEFAULT uuid_generate_v4(), "results" json DEFAULT '{}', "submitted_at" timestamp, "created_at" timestamp, "updated_at" timestamp) [0m
|
91
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141013142552"]]
|
92
|
+
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
|
93
|
+
Migrating to CreateReviewableQuestions (20141013145632)
|
94
|
+
[1m[35m (0.3ms)[0m BEGIN
|
95
|
+
[1m[36m (3.7ms)[0m [1mCREATE TABLE "reviewable_questions" ("id" serial primary key, "question_text" character varying(255), "question_type" character varying(255), "slug" character varying(255), "answer_options" character varying(255)[], "answer_min" integer, "answer_max" integer, "enabled" boolean, "created_at" timestamp, "updated_at" timestamp) [0m
|
96
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141013145632"]]
|
97
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
98
|
+
Migrating to CreateProducts (20141013173317)
|
99
|
+
[1m[35m (0.2ms)[0m BEGIN
|
100
|
+
[1m[36m (2.0ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "title" character varying(255), "created_at" timestamp, "updated_at" timestamp) [0m
|
101
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141013173317"]]
|
102
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
103
|
+
Migrating to CreateUsers (20141013174327)
|
104
|
+
[1m[35m (0.3ms)[0m BEGIN
|
105
|
+
[1m[36m (2.8ms)[0m [1mCREATE TABLE "users" ("id" serial primary key, "name" character varying(255), "created_at" timestamp, "updated_at" timestamp) [0m
|
106
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141013174327"]]
|
107
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
108
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
109
|
+
[1m[36m (122.4ms)[0m [1mDROP DATABASE IF EXISTS "reviewable_dummy_development"[0m
|
110
|
+
[1m[35m (269.1ms)[0m CREATE DATABASE "reviewable_dummy_development" ENCODING = 'unicode'
|
111
|
+
[1m[36mSQL (0.5ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
112
|
+
[1m[35mSQL (3.9ms)[0m CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
|
113
|
+
[1m[36m (4.7ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "title" character varying(255), "created_at" timestamp, "updated_at" timestamp) [0m
|
114
|
+
[1m[35m (4.0ms)[0m CREATE TABLE "reviewable_questions" ("id" serial primary key, "question_text" character varying(255), "question_type" character varying(255), "slug" character varying(255), "answer_options" character varying(255)[], "answer_min" integer, "answer_max" integer, "enabled" boolean, "created_at" timestamp, "updated_at" timestamp)
|
115
|
+
[1m[36m (4.5ms)[0m [1mCREATE TABLE "reviewable_reviews" ("id" serial primary key, "reviewable_object_id" integer, "reviewable_object_type" character varying(255), "reviewer_id" integer, "reviewer_type" character varying(255), "uuid" uuid DEFAULT uuid_generate_v4(), "results" json DEFAULT '{}', "submitted_at" timestamp, "created_at" timestamp, "updated_at" timestamp) [0m
|
116
|
+
[1m[35m (2.3ms)[0m CREATE TABLE "users" ("id" serial primary key, "name" character varying(255), "created_at" timestamp, "updated_at" timestamp)
|
117
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
118
|
+
[1m[35m (1.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
119
|
+
[1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
120
|
+
[1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141013174327')
|
121
|
+
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141013173317')[0m
|
122
|
+
[1m[36m (32.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
123
|
+
[1m[35m (80.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
124
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
125
|
+
Migrating to EnableUuidOsspExtension (20141013142401)
|
126
|
+
[1m[35m (0.2ms)[0m BEGIN
|
127
|
+
[1m[36mSQL (15.5ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20141013142401"]]
|
128
|
+
[1m[35m (15.6ms)[0m COMMIT
|
129
|
+
Migrating to CreateReviewableReviews (20141013142552)
|
130
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
131
|
+
[1m[35mSQL (50.9ms)[0m CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
|
132
|
+
[1m[36m (17.2ms)[0m [1mCREATE TABLE "reviewable_reviews" ("id" serial primary key, "reviewable_object_id" integer, "reviewable_object_type" character varying(255), "reviewer_id" integer, "reviewer_type" character varying(255), "uuid" uuid DEFAULT uuid_generate_v4(), "results" json, "submitted_at" timestamp, "created_at" timestamp, "updated_at" timestamp) [0m
|
133
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141013142552"]]
|
134
|
+
[1m[36m (16.2ms)[0m [1mCOMMIT[0m
|
135
|
+
Migrating to CreateReviewableQuestions (20141013145632)
|
136
|
+
[1m[35m (15.5ms)[0m BEGIN
|
137
|
+
[1m[36m (59.1ms)[0m [1mCREATE TABLE "reviewable_questions" ("id" serial primary key, "question_text" character varying(255), "question_type" character varying(255), "slug" character varying(255), "answer_options" character varying(255)[], "answer_min" integer, "answer_max" integer, "enabled" boolean, "created_at" timestamp, "updated_at" timestamp) [0m
|
138
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141013145632"]]
|
139
|
+
[1m[36m (20.1ms)[0m [1mCOMMIT[0m
|
140
|
+
Migrating to CreateProducts (20141013173317)
|
141
|
+
[1m[35m (15.7ms)[0m BEGIN
|
142
|
+
[1m[36m (18.7ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "title" character varying(255), "created_at" timestamp, "updated_at" timestamp) [0m
|
143
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141013173317"]]
|
144
|
+
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
|
145
|
+
Migrating to CreateUsers (20141013174327)
|
146
|
+
[1m[35m (14.6ms)[0m BEGIN
|
147
|
+
[1m[36m (2.8ms)[0m [1mCREATE TABLE "users" ("id" serial primary key, "name" character varying(255), "created_at" timestamp, "updated_at" timestamp) [0m
|
148
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141013174327"]]
|
149
|
+
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
|
150
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.6ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
151
|
+
[1m[36m (122.6ms)[0m [1mDROP DATABASE IF EXISTS "reviewable_dummy_development"[0m
|
152
|
+
[1m[35m (248.9ms)[0m CREATE DATABASE "reviewable_dummy_development" ENCODING = 'unicode'
|
153
|
+
[1m[36mSQL (0.6ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
154
|
+
[1m[35mSQL (3.8ms)[0m CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
|
155
|
+
[1m[36m (4.4ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "title" character varying(255), "created_at" timestamp, "updated_at" timestamp) [0m
|
156
|
+
[1m[35m (3.6ms)[0m CREATE TABLE "reviewable_questions" ("id" serial primary key, "question_text" character varying(255), "question_type" character varying(255), "slug" character varying(255), "answer_options" character varying(255)[], "answer_min" integer, "answer_max" integer, "enabled" boolean, "created_at" timestamp, "updated_at" timestamp)
|
157
|
+
[1m[36m (4.3ms)[0m [1mCREATE TABLE "reviewable_reviews" ("id" serial primary key, "reviewable_object_id" integer, "reviewable_object_type" character varying(255), "reviewer_id" integer, "reviewer_type" character varying(255), "uuid" uuid DEFAULT uuid_generate_v4(), "results" json, "submitted_at" timestamp, "created_at" timestamp, "updated_at" timestamp) [0m
|
158
|
+
[1m[35m (2.2ms)[0m CREATE TABLE "users" ("id" serial primary key, "name" character varying(255), "created_at" timestamp, "updated_at" timestamp)
|
159
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
160
|
+
[1m[35m (1.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
161
|
+
[1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
162
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141013174327')
|
163
|
+
[1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141013173317')[0m
|
164
|
+
[1m[36m (0.5ms)[0m [1mSELECT "reviewable_questions"."id" FROM "reviewable_questions" WHERE "reviewable_questions"."enabled" = 't'[0m
|
165
|
+
[1m[35m (0.1ms)[0m BEGIN
|
166
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "reviewable_reviews" ("created_at", "results", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-10-14 10:34:26.308776"], ["results", "{}"], ["updated_at", "2014-10-14 10:34:26.308776"]]
|
167
|
+
[1m[35m (0.5ms)[0m COMMIT
|
168
|
+
[1m[36mReviewable::Review Load (41.7ms)[0m [1mSELECT "reviewable_reviews".* FROM "reviewable_reviews" WHERE "reviewable_reviews"."id" = $1 LIMIT 1[0m [["id", 5]]
|
169
|
+
[1m[36m (704.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
170
|
+
[1m[35m (125.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
171
|
+
[1m[36mActiveRecord::SchemaMigration Load (16.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
172
|
+
Migrating to EnableUuidOsspExtension (20141013142401)
|
173
|
+
[1m[35m (0.4ms)[0m BEGIN
|
174
|
+
[1m[36mSQL (38.7ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20141013142401"]]
|
175
|
+
[1m[35m (62.4ms)[0m COMMIT
|
176
|
+
Migrating to CreateReviewableReviews (20141013142552)
|
177
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
178
|
+
[1m[35mSQL (688.3ms)[0m CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
|
179
|
+
[1m[36m (278.0ms)[0m [1mCREATE TABLE "reviewable_reviews" ("id" serial primary key, "reviewable_object_id" integer, "reviewable_object_type" character varying(255), "reviewer_id" integer, "reviewer_type" character varying(255), "uuid" uuid DEFAULT uuid_generate_v4(), "results" json, "submitted_at" timestamp, "created_at" timestamp, "updated_at" timestamp) [0m
|
180
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141013142552"]]
|
181
|
+
[1m[36m (69.0ms)[0m [1mCOMMIT[0m
|
182
|
+
Migrating to CreateReviewableQuestions (20141013145632)
|
183
|
+
[1m[35m (16.6ms)[0m BEGIN
|
184
|
+
[1m[36m (59.4ms)[0m [1mCREATE TABLE "reviewable_questions" ("id" serial primary key, "question_text" character varying(255), "question_type" character varying(255), "slug" character varying(255), "answer_options" character varying(255), "answer_min" integer, "answer_max" integer, "enabled" boolean, "created_at" timestamp, "updated_at" timestamp) [0m
|
185
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141013145632"]]
|
186
|
+
[1m[36m (37.4ms)[0m [1mCOMMIT[0m
|
187
|
+
Migrating to CreateProducts (20141013173317)
|
188
|
+
[1m[35m (16.4ms)[0m BEGIN
|
189
|
+
[1m[36m (48.6ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "title" character varying(255), "created_at" timestamp, "updated_at" timestamp) [0m
|
190
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141013173317"]]
|
191
|
+
[1m[36m (37.3ms)[0m [1mCOMMIT[0m
|
192
|
+
Migrating to CreateUsers (20141013174327)
|
193
|
+
[1m[35m (15.5ms)[0m BEGIN
|
194
|
+
[1m[36m (70.8ms)[0m [1mCREATE TABLE "users" ("id" serial primary key, "name" character varying(255), "created_at" timestamp, "updated_at" timestamp) [0m
|
195
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141013174327"]]
|
196
|
+
[1m[36m (26.5ms)[0m [1mCOMMIT[0m
|
197
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
198
|
+
[1m[36m (240.0ms)[0m [1mDROP DATABASE IF EXISTS "reviewable_dummy_development"[0m
|
199
|
+
[1m[35m (8575.9ms)[0m CREATE DATABASE "reviewable_dummy_development" ENCODING = 'unicode'
|
200
|
+
[1m[36mSQL (0.4ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
201
|
+
[1m[35mSQL (20.4ms)[0m CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
|
202
|
+
[1m[36m (68.4ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "title" character varying(255), "created_at" timestamp, "updated_at" timestamp) [0m
|
203
|
+
[1m[35m (52.7ms)[0m CREATE TABLE "reviewable_questions" ("id" serial primary key, "question_text" character varying(255), "question_type" character varying(255), "slug" character varying(255), "answer_options" character varying(255), "answer_min" integer, "answer_max" integer, "enabled" boolean, "created_at" timestamp, "updated_at" timestamp)
|
204
|
+
[1m[36m (53.6ms)[0m [1mCREATE TABLE "reviewable_reviews" ("id" serial primary key, "reviewable_object_id" integer, "reviewable_object_type" character varying(255), "reviewer_id" integer, "reviewer_type" character varying(255), "uuid" uuid DEFAULT uuid_generate_v4(), "results" json, "submitted_at" timestamp, "created_at" timestamp, "updated_at" timestamp) [0m
|
205
|
+
[1m[35m (36.5ms)[0m CREATE TABLE "users" ("id" serial primary key, "name" character varying(255), "created_at" timestamp, "updated_at" timestamp)
|
206
|
+
[1m[36m (16.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
207
|
+
[1m[35m (42.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
208
|
+
[1m[36m (0.8ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
209
|
+
[1m[35m (16.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141013174327')
|
210
|
+
[1m[36m (32.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141013173317')[0m
|
211
|
+
[1m[36m (3.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
212
|
+
[1m[35m (1.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
213
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
214
|
+
Migrating to EnableUuidOsspExtension (20141013142401)
|
215
|
+
[1m[35m (0.2ms)[0m BEGIN
|
216
|
+
[1m[36mSQL (15.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20141013142401"]]
|
217
|
+
[1m[35m (15.5ms)[0m COMMIT
|
218
|
+
Migrating to CreateReviewableReviews (20141013142552)
|
219
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
220
|
+
[1m[35mSQL (3.7ms)[0m CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
|
221
|
+
[1m[36m (5.3ms)[0m [1mCREATE TABLE "reviewable_reviews" ("id" serial primary key, "reviewable_object_id" integer, "reviewable_object_type" character varying(255), "reviewer_id" integer, "reviewer_type" character varying(255), "uuid" uuid DEFAULT uuid_generate_v4(), "results" json, "submitted_at" timestamp, "created_at" timestamp, "updated_at" timestamp) [0m
|
222
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141013142552"]]
|
223
|
+
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
|
224
|
+
Migrating to CreateReviewableQuestions (20141013145632)
|
225
|
+
[1m[35m (0.8ms)[0m BEGIN
|
226
|
+
[1m[36m (4.6ms)[0m [1mCREATE TABLE "reviewable_questions" ("id" serial primary key, "question_text" character varying(255), "question_type" character varying(255), "slug" character varying(255), "answer_options_string" character varying(255), "answer_min" integer, "answer_max" integer, "enabled" boolean, "created_at" timestamp, "updated_at" timestamp) [0m
|
227
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141013145632"]]
|
228
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
229
|
+
Migrating to CreateProducts (20141013173317)
|
230
|
+
[1m[35m (0.3ms)[0m BEGIN
|
231
|
+
[1m[36m (2.9ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "title" character varying(255), "created_at" timestamp, "updated_at" timestamp) [0m
|
232
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141013173317"]]
|
233
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
234
|
+
Migrating to CreateUsers (20141013174327)
|
235
|
+
[1m[35m (0.3ms)[0m BEGIN
|
236
|
+
[1m[36m (2.9ms)[0m [1mCREATE TABLE "users" ("id" serial primary key, "name" character varying(255), "created_at" timestamp, "updated_at" timestamp) [0m
|
237
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141013174327"]]
|
238
|
+
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
|
239
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
240
|
+
[1m[36m (134.0ms)[0m [1mDROP DATABASE IF EXISTS "reviewable_dummy_development"[0m
|
241
|
+
[1m[35m (1580.9ms)[0m CREATE DATABASE "reviewable_dummy_development" ENCODING = 'unicode'
|
242
|
+
[1m[36mSQL (0.5ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
243
|
+
[1m[35mSQL (19.1ms)[0m CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
|
244
|
+
[1m[36m (65.4ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "title" character varying(255), "created_at" timestamp, "updated_at" timestamp) [0m
|
245
|
+
[1m[35m (51.5ms)[0m CREATE TABLE "reviewable_questions" ("id" serial primary key, "question_text" character varying(255), "question_type" character varying(255), "slug" character varying(255), "answer_options_string" character varying(255), "answer_min" integer, "answer_max" integer, "enabled" boolean, "created_at" timestamp, "updated_at" timestamp)
|
246
|
+
[1m[36m (60.1ms)[0m [1mCREATE TABLE "reviewable_reviews" ("id" serial primary key, "reviewable_object_id" integer, "reviewable_object_type" character varying(255), "reviewer_id" integer, "reviewer_type" character varying(255), "uuid" uuid DEFAULT uuid_generate_v4(), "results" json, "submitted_at" timestamp, "created_at" timestamp, "updated_at" timestamp) [0m
|
247
|
+
[1m[35m (35.3ms)[0m CREATE TABLE "users" ("id" serial primary key, "name" character varying(255), "created_at" timestamp, "updated_at" timestamp)
|
248
|
+
[1m[36m (16.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
249
|
+
[1m[35m (33.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
250
|
+
[1m[36m (0.4ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
251
|
+
[1m[35m (15.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141013174327')
|
252
|
+
[1m[36m (31.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141013173317')[0m
|
253
|
+
[1m[36m (5074.8ms)[0m [1mDROP DATABASE IF EXISTS "reviewable_dummy_development"[0m
|
254
|
+
PG::ObjectInUse: ERROR: database "reviewable_dummy_development" is being accessed by other users
|
255
|
+
DETAIL: There are 2 other sessions using the database.
|
256
|
+
: DROP DATABASE IF EXISTS "reviewable_dummy_development"
|